shazam-cli
A small command-line tool for recognizing audio files with ShazamIO and writing Shazam metadata back to the file.
The package installs as shazam-cli, but the command-line executable is shazam.
Installation
For normal CLI usage, install with pipx:
pipx install shazam-cli
Or install with pip:
python -m pip install shazam-cli
Usage
Recognize an audio file and print the raw Shazam result:
shazam recognize path/to/audio.mp3
Write recognized metadata tags and rename the file to Artist - Title.ext:
shazam tag path/to/audio.mp3
Tag and rename every FLAC file in the current directory:
shazam tag *.flac
Write tags without renaming the file:
shazam tag --no-rename path/to/audio.mp3
Create a renamed copy instead of renaming the original file:
shazam tag --copy-renamed path/to/audio.mp3
Preview the match, tags, and rename path without writing files:
shazam tag --dry-run path/to/audio.mp3
Skip cover art:
shazam tag --no-cover path/to/audio.mp3
Fetch Shazam metadata by ID:
shazam track 123456789
shazam artist 123456789
Development
Install locally in editable mode:
python -m pip install -e .
Build distribution files:
python -m pip install -U build twine
python -m build
twine check dist/*
Publishing
This project includes a GitHub Actions workflow for PyPI Trusted Publishing. Configure a pending publisher on PyPI for:
- Project name:
shazam-cli - Owner:
bostrt - Repository:
shazam-cli - Workflow filename:
publish.yml - Environment name:
pypi
Then create a GitHub release to publish to PyPI.
Metadata
Release files for shazam-cli 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| shazam_cli-0.1.0.tar.gz | 57.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| shazam_cli-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 63.4 kB
Release files / shazam_cli-0.1.0.tar.gz
| Download URL | shazam_cli-0.1.0.tar.gz |
|---|---|
| Size | 57.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2f7928aa81cebc3b232fa88a1750dc0c145ed544d44d3c53f8984a7bd4844764
|
|
BLAKE2b-256 checksum How to use checksums |
49bdfa870b853a0d760a0daed20aca5629aefe4302317129b221e51fc738d82d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 2, 2026.
Transparency logRelease files / shazam_cli-0.1.0-py3-none-any.whl
| Download URL | shazam_cli-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e2711ed193c4ae11044b86e83fc6d173cc5f5450cce2c5d76d0403cede2f73d7
|
|
BLAKE2b-256 checksum How to use checksums |
bdd9e6f76608f5a88ce2546cf6617a3320ce2f117d89b499290faa4315287f87
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 2, 2026.
Transparency log