Genplis: a music playlist generator
Genplis generates M3U playlists from a collection of music files by looking at their tags and audio properties, applying user-defined filters, and ordering the results.
Filters are written in .m3ug files using a small language called M3UG. Put a
filter file in your collection, run genplis, and a matching .m3u playlist
appears next to it. There is no manual list to maintain: add music, run again,
and the playlist updates.
It scratches my own itch where I have a local music collection curated over 30 years and I wanted playlists like "my favorite songs", "80s music", or "musicals" without updating them by hand.
Requirements
Python 3.12 or later. Python 3.10 and 3.11 might work, but they are untested and unsupported.
Install
With uv:
uv tool install genplis
With pipx:
pipx install genplis
You can also pip install genplis inside a virtual environment.
Verify the installation with genplis --version.
Quick start
Create a filter in your music collection, for example
~/Music/Favorites.m3ug:
# four-star metal
genre ~ "Metal"
*rating >= 4
Then scan the collection:
genplis ~/Music
Genplis reads the tags of every supported audio file, caches them in SQLite,
applies the filter, and writes ~/Music/Favorites.m3u if anything matched.
Later runs only re-read files that changed. See the
usage guide
for common commands and troubleshooting.
To regenerate just one playlist without processing the other filters in the
collection, select the filter with --filter:
genplis ~/Music --filter ~/Music/Favorites.m3ug
To see which tags a file actually has (useful when writing filters):
genplis ~/Music/some-song.mp3
To inventory every tag in the collection, or every value of one tag:
genplis --tag-stats ~/Music
genplis -t genre ~/Music
Rating scales vary between players, so check a real file before trusting a
rule. Genplis tries its best to calculate a normalized *rating, if it doesn't
work for you open an issue asking for
support.
AI agents
Using an AI agent? Run genplis --install-skill for Codex/OpenCode or
genplis --install-skill claude for Claude Code. The bundled skill teaches
your agent to inspect your library and write and validate M3UG filters.
See the agent guide.
Documentation
Visit the Genplis website for the documentation index and copyable, downloadable M3UG examples. The guides below are the same Markdown sources used by the website.
| Guide | Contents |
|---|---|
| Usage | Common commands, tag inspection, playlist behavior, troubleshooting, cache cleaning |
| Configuration | Config locations, precedence, all settings and defaults, cache invalidation |
| M3UG reference | Rule syntax, operators, ordering, dedupe, limits, includes, filter debugging |
| Tags | Tag names and units, multi-value rules, ratings, statistics, missing tags |
| AI agents | Install the portable skill or use the agent instructions directly |
| Scheduling | Systemd and cron setup, logs, missed runs, troubleshooting |
| Development | Contributor setup, checks, architecture, website, releases, roadmap |
| Examples | Ready-to-copy .m3ug filters and config.ini |
| Changelog | Notable changes in each release |
Acknowledgments
Genplis uses the tinytag library for parsing tags in audio files. It was chosen for being a pure Python library with no additional dependencies.
License
GPL-3.0-or-later: GNU General Public License, either version 3 or (at your option) any later version.
Metadata
Release files for genplis 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| genplis-1.0.0.tar.gz | 323.8 kB | Without provenance | Details for genplis-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| genplis-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for genplis-1.0.0-py3-none-any.whl |
Total release size: 420.8 kB
Release files / genplis-1.0.0.tar.gz
| Download URL | genplis-1.0.0.tar.gz |
|---|---|
| Size | 323.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
48b69b3d3f3adb72b28422529c42a24116ecea484c26e57498a396841d761cb9
|
|
BLAKE2b-256 checksum How to use checksums |
ce61c952b5a0b2f6e57604e447adaf01fde2a14a419301a71c9b4600554d62f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / genplis-1.0.0-py3-none-any.whl
| Download URL | genplis-1.0.0-py3-none-any.whl |
|---|---|
| Size | 97.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
200e29de6420ef1ff94a986d818ee0efec7782aca9d3c83d8b4beeb59690473e
|
|
BLAKE2b-256 checksum How to use checksums |
b0ee44187831c39d69302208fd513c20ec3d975d95e4e7fa2a6086ce51c42699
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for genplis 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.