Skip to main content

beatlyze

Python SDK for the Beatlyze audio analysis API.

Install

pip install beatlyze

Quick start

from beatlyze import Beatlyze

bz = Beatlyze("bz_your_api_key")

# Analyze from URL (blocks until complete)
result = bz.analyze_url("https://example.com/track.mp3")
print(result["bpm"])        # 128.4
print(result["key"])        # "A"
print(result["energy"])     # 0.78

# Analyze a local file
result = bz.analyze_file("./my-track.wav")

# Async: submit without waiting
job = bz.analyze_url("https://example.com/track.mp3", wait=False)
print(job["job_id"])  # check later with bz.get_analysis(job["job_id"])

# Batch (up to 10 URLs)
jobs = bz.analyze_batch([
    "https://example.com/a.mp3",
    "https://example.com/b.mp3",
])

# Check usage
usage = bz.get_usage()
print(f"{usage['count']}/{usage['limit']} analyses used this month")

The SDK targets the live production API at https://api.beatlyze.dev by default.

Result fields

Field Type Description
bpm float Tempo in beats per minute
key str Musical key (e.g. "A")
scale str "major" or "minor"
key_notation str Combined (e.g. "Am")
energy float 0.0 - 1.0
danceability float 0.0 - 1.0
valence float 0.0 - 1.0 (mood)
loudness_lufs float Integrated loudness
duration_seconds float Track duration
mood_tags list[str] e.g. ["energetic", "dark"]
genre_suggestions list[str] e.g. ["techno", "house"]

License

MIT

Metadata

Release files for beatlyze 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for beatlyze 0.1.1
File Size Uploaded Provenance Actions
beatlyze-0.1.1.tar.gz 4.2 kB Without provenance Details for beatlyze-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for beatlyze 0.1.1
File Interpreter ABI Platform Actions
beatlyze-0.1.1-py3-none-any.whl Python 3 none any Details for beatlyze-0.1.1-py3-none-any.whl

Total release size: 8.6 kB

Release files / beatlyze-0.1.1.tar.gz

Download URL beatlyze-0.1.1.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
62817aada48199704c706761fb23932698987693d9098e29990810de4ccaabe4
BLAKE2b-256 checksum
How to use checksums
15862dfefbb9d19949e2676393776e88b4dc375512786548627604b5bb292006
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.11

Release files / beatlyze-0.1.1-py3-none-any.whl

Download URL beatlyze-0.1.1-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2fdd12d2569ee3757dccae461738b6e60293e87a09a6c480e88436c9ce1fb179
BLAKE2b-256 checksum
How to use checksums
a6c8b673f69ac72d77c9f6f6ddc7fd7d5a989235b61d8e58a7704481cc711a65
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.11

Security for beatlyze 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page