Skip to main content

Genius REST API Client

Project description

Genius Lyrics API Python Client

Travis (.org) Coverage Status

A Lightweight client for typed interaction with Genius API.

Examples

from geniuses import GeniusClient

client = GeniusClient("<your_token>")
songs = client.search("Cariñito los hijos")

print(songs[0].primary_artist.name)  # Los hijos del sol
print(songs[0].lyrics)  # Lloro por quererte ...

songs_from_artist = list(songs[0].primary_artist.get_songs())
print(songs_from_artist)  # [<Song(title=Cariñito, id=1949442)>, <Song(title=Si Me Quieres, id=2078361)>]

CLI

WIP

Development

This project uses tox for running tests and other things (style check, coverage reports).

It is recommended to install conda along with tox-conda for using tox. Afterwards, tox command will run all the steps for you.

This project strictly uses black as an opinionated code style. Any written line should comply with that (don’t forget to run black . for PRs).

License

Released under the Apache License.

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

geniuses-0.0.1.tar.gz (95.8 kB view hashes)

Uploaded Source

Built Distribution

geniuses-0.0.1-py3-none-any.whl (9.8 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