Skip to main content

A media playlist library for Python

Project description

nextsong is a library to support creating media playlists with a complex nested structure. It was developed to be used with ezstream's playlist scripting capability.

Features

  • Recursive tree-based structure, where each node is also a playlist with various options for sampling songs
  • Command-line executable that prints the next song in the playlist
  • Save and load playlists using a validated XML schema
  • Pickleable playlist state

Usage

See tests/cases/examples for usage examples. For help on the command line tool, invoke

nextsong --help

Installation

Requires Python 3.7 or higher

From PyPi

Install using pip:

python3 -m pip install nextsong

From source

This process may only work in a Linux environment. First install build dependencies:

python3 -m pip install build

Building the distribution:

git clone https://gitlab.com/samflam/nextsong.git
cd nextsong
make

To install, you can pip install the built wheel in dist or simply run

make install

Testing

From the top level, do:

make test

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

nextsong-1.0.0.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

nextsong-1.0.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file nextsong-1.0.0.tar.gz.

File metadata

  • Download URL: nextsong-1.0.0.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/21.8.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.0

File hashes

Hashes for nextsong-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a43f12375fa849e31ec138f5893ad1440db11d189eb12cb62f5035d2f6ebdc2f
MD5 aca2fefcb8fb45b2c30fc468cb07a648
BLAKE2b-256 e09c5195054fe933a46ba7dbbeeff1e0aad5c4e4d31b3364253823e166adc94d

See more details on using hashes here.

File details

Details for the file nextsong-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: nextsong-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/21.8.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.0

File hashes

Hashes for nextsong-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f1384ef4ddf5d384f8428fa11230863bfab1efdca24662b617e8d50f25ab7cf9
MD5 35f077ce6603aa6c0e0d4205892678c3
BLAKE2b-256 aaf686470ac437b7a1f1667bac9ef3cf548dd0a1aa1ea6224a00158a04b82fae

See more details on using hashes here.

Supported by

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