Metadata-Version: 2.4
Name: kryten-webui
Version: 0.1.1
Summary: Kryten web interface service - provides web dashboard and control panel
License: MIT
License-File: LICENSE
Keywords: cytube,moderation,chat,nats,microservices
Author: Kryten Robot Team
Requires-Python: >=3.10,<4.0
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Communications :: Chat
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: kryten-py (>=0.6.0,<0.7.0)
Project-URL: Documentation, https://github.com/grobertson/kryten-webui/blob/main/README.md
Project-URL: Homepage, https://github.com/grobertson/kryten-webui
Project-URL: Repository, https://github.com/grobertson/kryten-webui
Description-Content-Type: text/markdown

"# Kryten WebUI

Kryten web interface service - provides web dashboard and control panel for CyTube.

## Features

- Real-time chat message monitoring
- User tracking and management
- Event-driven architecture using NATS
- Extensible moderation rules

## Installation

### Prerequisites

- Python 3.10 or higher
- Poetry
- NATS server running
- kryten-py library

### Setup

1. Install dependencies:
```bash
poetry install
```

2. Copy the example configuration:
```bash
cp config.example.json config.json
```

3. Edit `config.json` with your settings:
```json
{
  "nats_url": "nats://localhost:4222",
  "nats_subject_prefix": "cytube",
  "service_name": "kryten-webui"
}
```

## Usage

### Running the Service

Using Poetry:
```bash
poetry run kryten-webui --config config.json
```

Using the startup script (PowerShell):
```powershell
.\start-webui.ps1
```

Using the startup script (Bash):
```bash
./start-webui.sh
```

### Command Line Options

- `--config PATH`: Path to configuration file (default: `/etc/kryten/webui/config.json`)
- `--log-level LEVEL`: Set logging level (DEBUG, INFO, WARNING, ERROR)

## Event Handling

The service currently listens for:

- **chatMsg**: Chat messages for dashboard display
- **usercount**: User count updates
- **playlist**: Playlist updates for dashboard

## Development

### Running Tests

```bash
poetry run pytest
```

### Linting

```bash
poetry run ruff check .
```

### Formatting

```bash
poetry run black .
```

## License

MIT License - see LICENSE file for details
" 

