Kryten playlist management service - handles video queue and playlist operations
Project description
"# Kryten Playlist
Kryten playlist management service - handles video queue and playlist operations 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
- Install dependencies:
poetry install
- Copy the example configuration:
cp config.example.json config.json
- Edit
config.jsonwith your settings:
{
"nats_url": "nats://localhost:4222",
"nats_subject_prefix": "cytube",
"service_name": "kryten-playlist"
}
Usage
Running the Service
Using Poetry:
poetry run kryten-playlist --config config.json
Using the startup script (PowerShell):
.\start-playlist.ps1
Using the startup script (Bash):
./start-playlist.sh
Command Line Options
--config PATH: Path to configuration file (default:/etc/kryten/playlist/config.json)--log-level LEVEL: Set logging level (DEBUG, INFO, WARNING, ERROR)
Event Handling
The service currently listens for:
- queue: Video queue events
- delete: Video deletion events
- moveVideo: Video position changes
- setTemp: Temporary video status changes
Development
Running Tests
poetry run pytest
Linting
poetry run ruff check .
Formatting
poetry run black .
License
MIT License - see LICENSE file for details "
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kryten_playlist-0.1.0.tar.gz.
File metadata
- Download URL: kryten_playlist-0.1.0.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4593a295ca30189ff01bb78cd594271e5d034f260fe4213920afc65c14fcfed
|
|
| MD5 |
b05a72148ac980f1a871392f930e4b69
|
|
| BLAKE2b-256 |
3beaf0e63319ee97b909c3718e26260661b72e3e5b107ab6a43087f73b0e192a
|
Provenance
The following attestation bundles were made for kryten_playlist-0.1.0.tar.gz:
Publisher:
python-publish.yml on grobertson/kryten-playlist
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kryten_playlist-0.1.0.tar.gz -
Subject digest:
a4593a295ca30189ff01bb78cd594271e5d034f260fe4213920afc65c14fcfed - Sigstore transparency entry: 761129004
- Sigstore integration time:
-
Permalink:
grobertson/kryten-playlist@48ffa9b271c5d28086221c36942a71a06153c7f4 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/grobertson
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@48ffa9b271c5d28086221c36942a71a06153c7f4 -
Trigger Event:
release
-
Statement type:
File details
Details for the file kryten_playlist-0.1.0-py3-none-any.whl.
File metadata
- Download URL: kryten_playlist-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7cd87e1364a6054080fa6c10b14a61b3904c83029943f71e70e0c4d52a5ef8ff
|
|
| MD5 |
7701b5d9cf3229649af30c6b308b4e92
|
|
| BLAKE2b-256 |
fe1b7300e3b1bb8a76c352745bdfd11eae8056539717b66c75dc5db82b5a61a6
|
Provenance
The following attestation bundles were made for kryten_playlist-0.1.0-py3-none-any.whl:
Publisher:
python-publish.yml on grobertson/kryten-playlist
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kryten_playlist-0.1.0-py3-none-any.whl -
Subject digest:
7cd87e1364a6054080fa6c10b14a61b3904c83029943f71e70e0c4d52a5ef8ff - Sigstore transparency entry: 761129012
- Sigstore integration time:
-
Permalink:
grobertson/kryten-playlist@48ffa9b271c5d28086221c36942a71a06153c7f4 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/grobertson
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@48ffa9b271c5d28086221c36942a71a06153c7f4 -
Trigger Event:
release
-
Statement type: