Metadata-Version: 2.4
Name: sonnerrise-web
Version: 0.1.0
Summary: Flask web interface for Sonnerrise
Author-email: Konstantin Boyandin <developer@boyandin.com>
License: MIT
Requires-Python: >=3.11
Description-Content-Type: text/markdown
Requires-Dist: flask>=3.0.0
Requires-Dist: flask-wtf>=1.2.0
Requires-Dist: wtforms>=3.1.0
Requires-Dist: sonnerrise-core
Requires-Dist: sonnerrise-personas
Requires-Dist: sonnerrise-definitions
Requires-Dist: sonnerrise-tracks
Requires-Dist: sonnerrise-promo
Requires-Dist: sonnerrise-calendar
Requires-Dist: sonnerrise-tools
Provides-Extra: dev
Requires-Dist: pytest>=7.0.0; extra == "dev"
Requires-Dist: pytest-cov>=4.0.0; extra == "dev"

# Sonnerrise Web

Flask web interface for the Sonnerrise track management suite.

## Features

- **Dashboard**: Overview with quick stats and upcoming events
- **Personas**: Manage Suno personas with style and comments
- **Definitions**: Create and edit track definitions with all Suno parameters
- **Tracks**: Manage tracks with links, events, and cover art
- **Promotions**: Create promotional materials for tracks
- **Calendar**: View track events in monthly/weekly formats
- **Tools**: Export/import database backups

## Installation

```bash
pip install sonnerrise-web
```

## Usage

### Running the development server

```bash
sonnerrise-web --debug
```

Options:
- `--host`: Host to bind to (default: 127.0.0.1)
- `--port`: Port to bind to (default: 5000)
- `--debug`: Enable debug mode

### Using in Python

```python
from sonnerrise_web import create_app

app = create_app()
app.run(debug=True)
```

## Configuration

The web interface uses the shared Sonnerrise configuration from `sonnerrise.yaml`:

```yaml
database:
  type: mysql
  host: localhost
  port: 3306
  name: sonnerrise
  user: sonnerrise
  password: your-password

web:
  secret_key: your-secret-key
```

## Docker

Run with Docker Compose (from project root):

```bash
docker-compose up -d
```

Access the web interface at http://localhost:5000

## Development

```bash
# Install dependencies
pip install -e ".[dev]"

# Run tests
pytest

# Run with debug mode
sonnerrise-web --debug
```

## License

MIT
