Skip to main content

songsrc

Lean song acquisition from Genius and LRCLIB. Dependencies: httpx and beautifulsoup4, nothing else.

from songsrc import GeniusClient, acquire_song, fetch_synced_lyrics, parse_lrc

with GeniusClient() as client:  # GENIUS_ACCESS_TOKEN switches to the official API
    song = acquire_song(
        client, {"id": 12345}
    )  # metadata, lyrics, referents with annotations

rows = parse_lrc(fetch_synced_lyrics(track="Burn", artist="Hamilton")["syncedLyrics"])
rows[0].start_s, rows[0].end_s, rows[0].text  # one [start, end) window per line

acquire_song returns the record Hamilton's data/songs/*.json is made of, so its keys are stable. The Genius client throttles (0.34 s) and retries 429/5xx with backoff. Genius's tokenless path is behind Cloudflare for non-browsers: set GENIUS_ACCESS_TOKEN for the official API.

Used by griot (research adapters) and Hamilton (hamilton_genius).

Metadata

Release files for songsrc 0.0.2

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

Source distribution (sdist)

Source distribution for songsrc 0.0.2
File Size Uploaded Provenance Actions
songsrc-0.0.2.tar.gz 9.7 kB Without provenance Details for songsrc-0.0.2.tar.gz

Built distribution (wheel)

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

Total release size: 20.8 kB

Release files / songsrc-0.0.2.tar.gz

Download URL songsrc-0.0.2.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
738dfe6a646669700c6e4643a26b9a2d3d2c6cec185636e7e695308ec5831f8d
BLAKE2b-256 checksum
How to use checksums
5d2d1bc55ba5ced1f8a92a723598fcabb898a2d4f07becf5937663689ffa2473
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / songsrc-0.0.2-py3-none-any.whl

Download URL songsrc-0.0.2-py3-none-any.whl
Size 11.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fa732290ba2961c5869bbb5ea47889198d30891fe597a8cb13bcfb445871d42d
BLAKE2b-256 checksum
How to use checksums
b444b7f0a0440735ca23bc99b7f7cd4285d03051b20a4736bfda91a0715dfbfd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for songsrc 0.0.2

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.0.2 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