Skip to main content

A media playlist library for Python

Project description

nextsong is a library and command line executable 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 file (XSD under development)
  • 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.3.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

nextsong-1.0.3-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nextsong-1.0.3.tar.gz
  • Upload date:
  • Size: 10.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.3.tar.gz
Algorithm Hash digest
SHA256 ae3eec2ab38c5c06e8963289e7ec5a90ba78f24f494799254f81e36029bd2f23
MD5 868e1624534e70dd4389022b41b99f74
BLAKE2b-256 869f4d3168dbed151f093607ee0f4fc768e565a4cbabc59652fcbcc630235f66

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nextsong-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 11.5 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5308079db8b25da2ca0dc64de0aabc97e2cfac9a42c3c994c294192bfd595e56
MD5 da03f0403e7fa4749dd652dce12fe588
BLAKE2b-256 cca394b95d4e702c188817beb8ee9ab1a0082abf1b393c53b69dbbfc176ed1e9

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