Skip to content

MechanisM/python-yamusic

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python YaMusic Readme

This library for using yandex music in python. Library depends on PySide(Qt for python), but it use only QtScript, if anyone find good and less library for js - i rewrite app.

Usage

Import search app::
>>> from yamusic.app import Search, cursor
Now you need to init Qt application::
>>> from PySide.QtCore import QCoreApplication
>>> import sys
>>> app = QCoreApplication(sys.argv)
Cursor can search artists::
>>> cursor.search(Search.TYPE_ARTISTS, 'query')
Albums::
>>> cursor.search(Search.TYPE_ALBUMS, 'query')
And tracks::
>>> cursor.search(Search.TYPE_TRACKS, 'query')
If single=True, search return one item::
>>> cursor.search(Search.TYPE_TRACKS, 'query', single=True)

Else - return iterator. For getting data from albums and artists use:

>>> artist.get_albums()
>>> artist.get_tracks()
>>> album.get_tracks()
For opening track like file use::
>>> track.open()

About

Python yandex music Library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published