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 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.1.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: nextsong-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 2da90398f7f8682aa5605547b224265431c3dbfd9fe3952dc4fb8b87d36bbc1e
MD5 927fcaaaf28f5ed0b12060d40293104f
BLAKE2b-256 2ef31295b4f97db9bc6cb00c1ade5a9b48efc2fa4b8e655fd8917a6cfa413f50

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nextsong-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9d4e375b3f7e2858e885ca2b1e00f46283d84d98aaf9db5e13c4927275371516
MD5 7cd243c3767640ab0eeccc7318466830
BLAKE2b-256 bb27da986b5f7f5905b6266a0d037f773ae589cdec50e1e77e528cb7ec799cd5

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