Skip to main content

Python binding of Libdiscid

Project description

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.

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

discid-1.4.2.tar.gz (36.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

discid-1.4.2-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

Details for the file discid-1.4.2.tar.gz.

File metadata

  • Download URL: discid-1.4.2.tar.gz
  • Upload date:
  • Size: 36.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for discid-1.4.2.tar.gz
Algorithm Hash digest
SHA256 0cbb4b96949c68cbc63c9fc4585ef9b7ec2b9d39e23bce0b4db5d61c6f7b81e6
MD5 c574f4d65b42eb6965fd0374276792ca
BLAKE2b-256 b31e2ff9fc64a72764ed2efe9de3518b54125693ef2d05f7bcc547845a549cff

See more details on using hashes here.

Provenance

The following attestation bundles were made for discid-1.4.2.tar.gz:

Publisher: build.yaml on metabrainz/python-discid

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file discid-1.4.2-py3-none-any.whl.

File metadata

  • Download URL: discid-1.4.2-py3-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for discid-1.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0d4f854ce31ecef2bc978d6fbca624998a081c068cac8389a3656fff1a56ca32
MD5 ae3ff32bc82ffaffbb61907453510735
BLAKE2b-256 01220d0c056d1ae3bca547906268e0f3de9afe65d46f5fd7c16bfef40fdb89b3

See more details on using hashes here.

Provenance

The following attestation bundles were made for discid-1.4.2-py3-none-any.whl:

Publisher: build.yaml on metabrainz/python-discid

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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