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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file shazam.py-1.0.0a0.tar.gz.
File metadata
- Download URL: shazam.py-1.0.0a0.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e911898b9a47dd82b43663f12d8691d75b5b8300c5b1f6621f8f01592606336a
|
|
| MD5 |
bbd984b53c745eef0235bc9c8390cc0f
|
|
| BLAKE2b-256 |
513b6499118d885b1edb81ef8a73c8701d753b7268f66c513965637c39909bdd
|
File details
Details for the file shazam.py-1.0.0a0-py3-none-any.whl.
File metadata
- Download URL: shazam.py-1.0.0a0-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43d0b0e76dcf1de6b6fc429f95de79ca464206c197b27f5f0b819fb6403f05ae
|
|
| MD5 |
e5210a8e58f2e7da4be5dcbc416c0ead
|
|
| BLAKE2b-256 |
3e75e6630c58d8fc12b70249a3563b73290347dd01d171695d23d0e83cec91dc
|