This is a command-line tool to generate a set of standard playlists for Google Play Music libraries.
It’s currently in beta, and some knowledge of Python and comfort with the command line is required. Depending on interest, I will make it more user friendly. The author is using the tool and care is being taken not to make a mess in the library manipulated (I care about mine too), but USE AT YOUR OWN RISK.
Installation
You can either do a:
pip install GPM-Playlist-Generator
or if you’ve cloned this repo:
python setup.py install
Running the tool
Simply run:
gpm-playlistgen.py config.yaml
What it does
The default configuration captured in config.sample.yaml will log prompt you to log into your account via OAuth, download the list of tracks and playlists in your library, and do the following as per the playlist section in the configuration:
Generate a set of playlists grouping your tracks by month in which they’ve been added to your library (monthly_added)
Generate a sorted list of your most frequently played tracks (most_played)
The playlist generated will all have a name starting with “[PG]”. This is configurable.
If you rerun the tool, it will only regenerate the playlists that are needed (new tracks in monthly added, and most played).
I need help
Try:
gpm-playlistgen.py config.yaml
I want to report a problem or I have a cool idea for this tool
Please use the issue tracker.
FAQ
I don’t trust this tool
“No problem”. You can run it with the --dry-run option. It will not write anything to your account, simply show you what it would do.
I want to get rid of all those generated playlists
You can run:
gpm-playlistgen.py --delete-all-playlists config.yaml
The description field is used to check that this is a generated list, but I strongly advise to the the following first to see what it’s going to do:
gpm-playlistgen.py --delete-all-playlists config.yaml --dry-run
Credits
The heavy lifting is done by Simon Weber’s gmusicapi.
Metadata
Release files for GPM-Playlist-Generator 1.2.1
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 | |
|---|---|---|---|---|
| GPM-Playlist-Generator-1.2.1.tar.gz | 10.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| GPM_Playlist_Generator-1.2.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 26.2 kB
Release files / GPM-Playlist-Generator-1.2.1.tar.gz
| Download URL | GPM-Playlist-Generator-1.2.1.tar.gz |
|---|---|
| Size | 10.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
689aaf0d1f5a9065869ed9ba6b1e910844aaa669a2e3b47081c868671761cc29
|
|
BLAKE2b-256 checksum How to use checksums |
9e31ca4f36784b156167c264a190ac4f73cc809b6e8d0a3c05101c2db19a87aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.8.1
|
Release files / GPM_Playlist_Generator-1.2.1-py2.py3-none-any.whl
| Download URL | GPM_Playlist_Generator-1.2.1-py2.py3-none-any.whl |
|---|---|
| Size | 15.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
9ac12ec6695b808da38a22d2b73465520bf9cff3d837df3eee5cf59abc907722
|
|
BLAKE2b-256 checksum How to use checksums |
668dcd4acca63cf4c9a6ccbb88f54561769f0e348227dd351438759565abb1d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.8.1
|
Security for GPM-Playlist-Generator 1.2.1
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.