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.0a1.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.0a1-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file shazam.py-1.0.0a1.tar.gz.

File metadata

  • Download URL: shazam.py-1.0.0a1.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.0a1.tar.gz
Algorithm Hash digest
SHA256 27fd04eef50f84f694602f9017c138ae95ac4f4533faedc1a3d6b8140f453fd1
MD5 8ef179c8d3f28a7bffcd3a9c25be0c2c
BLAKE2b-256 6c15d600434ff4fadee80aacaa9027eb6a56312cad27b02fc961e563864ae7b3

See more details on using hashes here.

File details

Details for the file shazam.py-1.0.0a1-py3-none-any.whl.

File metadata

  • Download URL: shazam.py-1.0.0a1-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.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 7492ea316227f18e4fb3c63ee4b7539c5d6203b78a6827ea62d09410a715dc23
MD5 ff68c08659be5ecc69e015fa04ca692e
BLAKE2b-256 54d46aa1d0911694e51689cb6bb155df0d91dc003c6c5de02519c4c6ece0c4af

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