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
Built Distribution
File details
Details for the file nextsong-1.0.2.tar.gz
.
File metadata
- Download URL: nextsong-1.0.2.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc739ca8cdf3c9fd059802e4d11d470f52d039d67dec096d860584ede56afe07 |
|
MD5 | d0d1f70054c08b4d214b7820cfcfc84b |
|
BLAKE2b-256 | ed442fbe02085fd63e91628c82523f230ff1915ab4235251183c18801cdcfc62 |
File details
Details for the file nextsong-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: nextsong-1.0.2-py3-none-any.whl
- Upload date:
- Size: 9.2 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23ae73a1ee6bd6ef54aa79849cfb37bd9ea6cddd50fa7c2d9430c89c57d74dcf |
|
MD5 | 6efb1a5dae0a18f6e86b8a78f7033c6a |
|
BLAKE2b-256 | 4945cabb1d498405631ee87505a7423f3cf9da6ab96efd40ce4eee40bc1a7e7d |