Music APIs Python Wrapper
Project description
MusicAPy
Music API Python wrapper, currently supports limited API.
- Supported API
- JioSaavn
Installation
-
Using pip and git
python3 -m pip install git+https://github.com/dmdhrumilmistry/MusicAPy
-
Using pypi
python3 -m pip install MusicAPy
Usage
-
Jio Saavn API
-
From Script
from musicapy.saavn_api import SaavnAPI # create API obj api = SaavnAPI() ## Search Services # Search Song data = api.search_song('song_name') # Search Album data = api.search_album('album_name') # Search All data = api.search_all('song_or_album_name') ## Song Services # get song link saavn_song_link = 'https://www.jiosaavn.com/song/song_name/id' # create identifier identifier = api.create_identifier(link, 'song') # get trending songs trending_songs = api.get_trending() # get latest charts charts = api.get_charts() # get song link from identifier song_link = api.get_song_link(identifier) # get song details details = api.get_song_details(identifier) # get song lyrics lyrics = api.get_song_lyrics(identifier) # get download links download_links = api.get_download_links(identifier) ## Albums Service # get song details album_details = api.get_album_details(identifier) # get album songs download links data = api.generate_album_download_links(identifier)
-
From Command Line
python3 -m musicapy.saavn_api -h
Command Line Output
usage: __main__.py [-h] [-t] [-c] [-d] [-l LINK] [-aD] [-a] [-sS SEARCH_SONG_QUERY] [-sA SEARCH_ALBUM_QUERY] [-sa SEARCH_ALL_QUERY] options: -h, --help show this help message and exit -t, --trending get trending songs -c, --charts get charts -d, --download generate download links -l LINK, --link LINK link of song or album -aD, --album-details get album details from link -a, --album get album download links -sS SEARCH_SONG_QUERY, --search-song SEARCH_SONG_QUERY search song by name -sA SEARCH_ALBUM_QUERY, --search-album SEARCH_ALBUM_QUERY search album by name -sa SEARCH_ALL_QUERY, --search-all SEARCH_ALL_QUERY search album or song by name
-
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
MusicAPy-1.0.0.tar.gz
(7.8 kB
view details)
Built Distribution
File details
Details for the file MusicAPy-1.0.0.tar.gz
.
File metadata
- Download URL: MusicAPy-1.0.0.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f78d082506eec50b94b552d3d786991ba023a47c2db592f2876394bf2786f006 |
|
MD5 | 2dba3892deca5c54a50179c8ae4a5e04 |
|
BLAKE2b-256 | 74a172321bbc2699152e0ebf42cbe3eced05b62da82945465f5e2b45c0f40548 |
File details
Details for the file MusicAPy-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: MusicAPy-1.0.0-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7bfe47041610ecb92b88addbfcc60996b064716a5c3216fe956d050c56718db |
|
MD5 | e458b1cdafa59a6164815661767009c5 |
|
BLAKE2b-256 | 6a98e44f60b3f3d3c83b6a07c4677018d57fbd928bc5b179253ec24687e5d67f |