Skip to main content

Libdiscid Python bindings

Python-discid implements Python bindings for MusicBrainz Libdiscid. This module supports Python 3 >= 3.10. Libdiscid >= 0.2.2 is needed.

Libdiscid’s main purpose is the calculation of an identifier of audio discs (disc ID) to use for the MusicBrainz database.

That identifier is calculated from the TOC of the disc, similar to the freeDB CDDB identifier. Libdiscid can calculate MusicBrainz disc IDs and freeDB disc IDs. Additionally the MCN of the disc and ISRCs from the tracks can be extracted.

This module is a close binding that offloads all relevant data storage and calculation to Libdiscid. On the other hand it gives a pythonic API and uses objects and exceptions.

The official API documentation can be found at readthedocs.org

For more information on Libdiscid see libdiscid.

For more information about the calculation of these disc IDs see Disc ID Calculation.

Usage

# this will load Libdiscid
import discid

disc = discid.read()  # use default device
print(f"id: {disc.id}")

See also the examples.py.

License

This module is released under the GNU Lesser General Public License Version 3. See COPYING.LESSER for details.

Bugs

You can submit tickets at GitHub.

Release files for discid 1.4.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 discid 1.4.2
File Size Uploaded
discid-1.4.2.tar.gz 36.8 kB Details

Built distribution (wheel)

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

Total release size: 52.2 kB

Release files / discid-1.4.2.tar.gz

Download URL discid-1.4.2.tar.gz
Size 36.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0cbb4b96949c68cbc63c9fc4585ef9b7ec2b9d39e23bce0b4db5d61c6f7b81e6
BLAKE2b-256 checksum
How to use checksums
b31e2ff9fc64a72764ed2efe9de3518b54125693ef2d05f7bcc547845a549cff
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 Jul 10, 2026.

Transparency log

Release files / discid-1.4.2-py3-none-any.whl

Download URL discid-1.4.2-py3-none-any.whl
Size 15.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0d4f854ce31ecef2bc978d6fbca624998a081c068cac8389a3656fff1a56ca32
BLAKE2b-256 checksum
How to use checksums
01220d0c056d1ae3bca547906268e0f3de9afe65d46f5fd7c16bfef40fdb89b3
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 Jul 10, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.4.2 This release

2 release files

1.4.1

1 release file

1.4.0

1 release file

1.3.0

1 release file

1.2.0

1 release file

1.1.1

1 release file

1.1.0

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.0

1 release file

0.5.0

1 release file

0.4.0

1 release file

0.3.0

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.0

1 release file

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