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

Uploaded Source

Built Distribution

nextsong-1.0.2-py3-none-any.whl (9.2 kB view hashes)

Uploaded Python 3

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