You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

vagalume

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vagalume

Python wrapper for Vagalume API


Maintainers
1

Readme

python-vagalume

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:

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
    print result.song.lyric
    print
    
    translation = result.get_translation_to('pt-br')
    if not translation:
        print 'Translation not found'
    else:
        print translation.name
        print translation.lyric

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc