Fully reverse engeenired shazam api
Project description
shazam.py
Python library for the Shazam API. This library is based off of ShazamAPI by Numenorean but some added features.
Install
pip3 install shazam.py
You'll also need to have ffmpeg installed and added to PATGH.
Usage
Synchronous Shazam:
from shazam import Shazam
mp3_file_content_to_recognize = open('a.mp3', 'rb').read()
with Shazam(mp3_file_content_to_recognize) as results:
for res in results:
print(res) # current offset & shazam response to recognize requests
Asynchronous operations are also supported:
from shazam import AsyncShazam
mp3_file_content_to_recognize = open('a.mp3', 'rb').read()
async with AsyncShazam(mp3_file_content_to_recognize) as results:
async for res in results:
print(res)
There is also support for using your own session objects and using Shazam
and AsyncShazam
outside of
a context manager.
Credits to:
https://github.com/Numenorean/ShazamAPI (and by proxy, https://github.com/marin-m/SongRec)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
shazam.py-1.0.0a1.tar.gz
(10.3 kB
view hashes)
Built Distribution
Close
Hashes for shazam.py-1.0.0a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7492ea316227f18e4fb3c63ee4b7539c5d6203b78a6827ea62d09410a715dc23 |
|
MD5 | ff68c08659be5ecc69e015fa04ca692e |
|
BLAKE2b-256 | 54d46aa1d0911694e51689cb6bb155df0d91dc003c6c5de02519c4c6ece0c4af |