Skip to main content

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

  1. Install dependencies:
poetry install
  1. Copy the example configuration:
cp config.example.json config.json
  1. Edit config.json with 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

kryten_playlist-0.1.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kryten_playlist-0.1.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

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

Hashes for kryten_playlist-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a4593a295ca30189ff01bb78cd594271e5d034f260fe4213920afc65c14fcfed
MD5 b05a72148ac980f1a871392f930e4b69
BLAKE2b-256 3beaf0e63319ee97b909c3718e26260661b72e3e5b107ab6a43087f73b0e192a

See more details on using hashes here.

Provenance

The following attestation bundles were made for kryten_playlist-0.1.0.tar.gz:

Publisher: python-publish.yml on grobertson/kryten-playlist

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kryten_playlist-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for kryten_playlist-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7cd87e1364a6054080fa6c10b14a61b3904c83029943f71e70e0c4d52a5ef8ff
MD5 7701b5d9cf3229649af30c6b308b4e92
BLAKE2b-256 fe1b7300e3b1bb8a76c352745bdfd11eae8056539717b66c75dc5db82b5a61a6

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page