A Python wrapper around the Genius API for large scale applications
Project description
Installation
pip install fastgenius
Usage
>>> import fastgenius
>>> genius = fastgenius.Genius('client_access_token')
>>> genius.get_artist('Madonna')
Artist(Madonna)
>>> genius.get_artist('Madona')
Artist(Madona (D’Lamotta))
>>> genius.get_artist(['Madonna', 'TuPac'])
{'Madonna': Artist(Madonna), 'TuPac': Artist(2Pac)}
>>> artists = genius.get_artist(['Madonna', 'TuPac'])
>>> artists['Madonna'].songs
[]
>>> artists = genius.get_artist(['Madonna', 'TuPac'], get_songs=True)
>>> artists['Madonna'].songs
[Song(Madonna - Into the Groove (Extended Remix)),
Song(Leo The Kind - Material Girl),
Song(Madonna - Masterpiece - MDNA World Tour / Live 2012),
Song(Genius Polska Tłumaczenia - Madonna & Quavo - Future),
...]
>>> artists['Madonna'].songs[0].lyrics
"\\nAnd you can dance\\nFor inspiration\\nCome on\\nI'm waiting\\nCome, ..."
>>> big_syke = genius.get_artist('Big Syke', get_songs=True)
>>> len(big_syke.songs)
78
>>> big_syke = genius.get_artist('Big Syke', get_songs=True, primary_artist_only=True)
>>> len(big_syke.songs)
17
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fastgenius-0.0.3.tar.gz
(27.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fastgenius-0.0.3.tar.gz.
File metadata
- Download URL: fastgenius-0.0.3.tar.gz
- Upload date:
- Size: 27.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0.post20201207 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3bd36083606cbdb8b782e15a75e2f2f74469f2c4e1e22ccbac235afc98456984
|
|
| MD5 |
3ba5f0bd6c180a90b29a873e64caf5d2
|
|
| BLAKE2b-256 |
8206d14a5caa4f39ea51c7c0162de4a7008c02218e350c2f828f52bf8dca6864
|
File details
Details for the file fastgenius-0.0.3-py3-none-any.whl.
File metadata
- Download URL: fastgenius-0.0.3-py3-none-any.whl
- Upload date:
- Size: 51.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0.post20201207 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f70f1e831397fb0acae529b4cce0013760254ab116185028f7bbfe929f0d361c
|
|
| MD5 |
8f3727db29e792ee1c0b3e0740e2a84d
|
|
| BLAKE2b-256 |
b47ae252ee5e91b6a7ae37542631b5dd0caac17db4dcb83597091b3e14989f79
|