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 details)

Uploaded Source

Built Distribution

geniuses-0.0.1-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file geniuses-0.0.1.tar.gz.

File metadata

  • Download URL: geniuses-0.0.1.tar.gz
  • Upload date:
  • Size: 95.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/41.6.0.post20191101 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.7

File hashes

Hashes for geniuses-0.0.1.tar.gz
Algorithm Hash digest
SHA256 92dbcba68fe881fc4801402ed8fac54e873dcbcee741ff4998d3ac41df656022
MD5 f5e7ac192351a2be219db7db18e0c652
BLAKE2b-256 5fd7bdd3a9f946e6b46a72d1e270828accef2a15ebb80dd2f4faf34568406230

See more details on using hashes here.

File details

Details for the file geniuses-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: geniuses-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/41.6.0.post20191101 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.7

File hashes

Hashes for geniuses-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4473570a7c990ae4aad85ba828b78e6a39c9226a3ec79dc1afbbe97582e17efd
MD5 91e3da6f4d5e83ad13d484d4401d0c8e
BLAKE2b-256 b193a78b108aac97ef246ff9bb67f38a9676f1cfedffd9f98e01d705a1133c5e

See more details on using hashes here.

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