A simple Python client for Vagalume API. Also a command-line utility to search
song lyrics and translations.
## Install
$ pip install vagalume
## Usage
You can use it from the **command line**:
$ vagalume lyric 'radiohead' 'there, there'
With the -t flag, you can find translations (by default to pt-br):
$ vagalume lyric 'radiohead' 'there, there' -t
But is possible to define another language supported by API ('fr', 'en', 'pt-br', 'pt', 'nl', 'de', 'jp', 'it' or 'es'):
$ vagalume lyric 'radiohead' 'there, there' -t es
Also, you can use the **module** on your own code:
```python
from vagalume import lyrics
artist_name = 'radiohead'
song_name = 'there, there'
result = lyrics.find(artist_name, song_name)
if result.is_not_found():
print 'Song not sound'
else:
print result.song.name
print result.artist.name
print result.song.lyric
translation = result.get_translation_to('pt-br')
if not translation:
print 'Translation not found'
else:
print translation.name
print translation.lyric
```
Metadata
Release files for vagalume 0.0.5
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 |
|---|---|---|---|---|
| vagalume-0.0.5.tar.gz | 4.0 kB | Without provenance | Details for vagalume-0.0.5.tar.gz |
Release files / vagalume-0.0.5.tar.gz
| Download URL | vagalume-0.0.5.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b67ad9ad5845c4d350d5529515be0ec1817cf2d8d9a7ce142961ec87a282a51d
|
|
BLAKE2b-256 checksum How to use checksums |
ddf89e0dd547b28a8ceb26b6d4252221191e857ecb6fd99ac5d3164f011d3a82
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for vagalume 0.0.5
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.