Skip to main content

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


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.0a0.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shazam.py-1.0.0a0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

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

Hashes for shazam.py-1.0.0a0.tar.gz
Algorithm Hash digest
SHA256 e911898b9a47dd82b43663f12d8691d75b5b8300c5b1f6621f8f01592606336a
MD5 bbd984b53c745eef0235bc9c8390cc0f
BLAKE2b-256 513b6499118d885b1edb81ef8a73c8701d753b7268f66c513965637c39909bdd

See more details on using hashes here.

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

Hashes for shazam.py-1.0.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 43d0b0e76dcf1de6b6fc429f95de79ca464206c197b27f5f0b819fb6403f05ae
MD5 e5210a8e58f2e7da4be5dcbc416c0ead
BLAKE2b-256 3e75e6630c58d8fc12b70249a3563b73290347dd01d171695d23d0e83cec91dc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page