semvec/pypi-packages huggingface dataset:
sonnerrise-personas 0.1.0
Personas module for Sonnerrise - Suno persona definitions
Requires Python: >=3.11

# sonnerrise-personas

Personas module for the Sonnerrise suite - manages Suno persona definitions.

## Features

- Create and manage Suno personas (voice/style references)
- Link personas to parental tracks
- Full CRUD operations via Python API or CLI

## Installation

```bash
pip install sonnerrise-personas
```

## Usage

### Python API

```python
from sonnerrise_core import load_config, get_database
from sonnerrise_personas import PersonaRepository, PersonaCreate

config = load_config()
db = get_database(config)
db.create_tables()

repo = PersonaRepository(db)

# Create a persona
persona = repo.create(PersonaCreate(
    name="Epic Narrator",
    style_of_music="deep male voice, dramatic, orchestral",
))

# List personas
personas = repo.list(page=1, per_page=20)

# Search by name
results = repo.search("narrator")

# Update
repo.update(persona.id, PersonaUpdate(name="Epic Voice"))

# Delete
repo.delete(persona.id)
```

### CLI

```bash
# List all personas
sonnerrise-personas list

# Create a new persona
sonnerrise-personas create --name "Epic Voice" --style "dramatic, orchestral"

# Show persona details
sonnerrise-personas show 1

# Update a persona
sonnerrise-personas update 1 --name "New Name"

# Delete a persona
sonnerrise-personas delete 1

# Search personas
sonnerrise-personas search "voice"
```

## Persona Fields

| Field | Type | Description |
|-------|------|-------------|
| name | string (max 48 chars) | Persona name (required) |
| style_of_music | string (max 1000 chars) | Style description (optional) |
| parental_track_id | integer | Reference to parent track (optional) |
| comments | text (max 32KB) | Additional notes (optional) |
flamehaven-tensor-canon 0.1.3
Universal tensor validation and drift detection for PyTorch (NumPy optional).
Requires Python: >=3.10
Keywords: pytorch, numpy, validation, drift-detection, mmd

# Flamehaven Tensor Canon

> "Data is not just numbers; it is a structural covenant."

Flamehaven Tensor Canon is a small library for:

- Structural validation (shapes and optional dtypes)
- Distribution drift detection (MMD-based)

PyTorch is required. NumPy support is optional.

## Installation

```bash
pip install flamehaven-tensor-canon
```

Enable NumPy support:

```bash
pip install flamehaven-tensor-canon[numpy]
```

## Quick start (validation)

```python
import torch
from tensor_canon import validate

spec = "batch channels 224 224"
data = torch.randn(32, 3, 224, 224)

validate(data, spec, key="input_layer")
```

## Drift detection

```python
import torch
from tensor_canon.validator import engine

torch.manual_seed(42)
golden = torch.randn(100, 5)
engine.check_drift("embeddings", golden, register_golden=True)

current = golden + torch.randn_like(golden) * 0.01
drift = engine.check_drift("embeddings", current)
print("drift:", drift)
```

## Development

```bash
pip install -e .[dev,numpy]
ruff check .
pytest -q
```

## Docker

```bash
docker build -t tensor-canon .
docker run --rm tensor-canon
```

## Release notes and security

- See `CHANGELOG.md` for release notes.
- See `SECURITY.md` for vulnerability reporting.

## License

MIT. See `LICENSE`.
sonnerrise-core 0.1.0
Core module for Sonnerrise - config loader and database abstraction
Requires Python: >=3.11

# sonnerrise-core

Core module for the Sonnerrise suite - Suno track management and promotion planning.

## Features

- **YAML Configuration**: Load configuration from YAML files with environment variable overrides
- **Database Abstraction**: Plugin-based database interface supporting MySQL and SQLite
- **Base Models**: SQLAlchemy base models with common fields and timestamps

## Installation

```bash
pip install sonnerrise-core
```

## Usage

### Configuration

```python
from sonnerrise_core import load_config

# Load from default locations or environment
config = load_config()

# Load from specific file
config = load_config("path/to/config.yaml")
```

### Environment Variables

- `SONNERRISE_DB_PLUGIN`: Database plugin (mysql, sqlite)
- `SONNERRISE_DB_HOST`: Database host
- `SONNERRISE_DB_PORT`: Database port
- `SONNERRISE_DB_USER`: Database user
- `SONNERRISE_DB_PASSWORD`: Database password
- `SONNERRISE_DB_NAME`: Database name
- `SONNERRISE_WEB_HOST`: Web server host
- `SONNERRISE_WEB_PORT`: Web server port
- `SONNERRISE_WEB_DEBUG`: Enable debug mode
- `SONNERRISE_WEB_SECRET_KEY`: Flask secret key

### Database

```python
from sonnerrise_core import load_config, get_database

config = load_config()
db = get_database(config)

# Test connection
if db.test_connection():
    print("Connected!")

# Use sessions
with db.session() as session:
    # Perform database operations
    pass
```

### CLI

```bash
# Create default configuration
sonnerrise-core init-config

# Test database connection
sonnerrise-core test-db

# Initialize database tables
sonnerrise-core init-db

# Show current configuration
sonnerrise-core show-config
```

## Configuration File Example

```yaml
database:
  plugin: mysql
  host: localhost
  port: 3306
  user: sonnerrise
  password: secret
  database: sonnerrise
  charset: utf8mb4

web:
  host: 0.0.0.0
  port: 5000
  debug: false
  secret_key: change-me-in-production
```