Skip to main content

Python binding of Libdiscid

Project description

Python-discid implements Python bindings for MusicBrainz Libdiscid. This module works with Python 2 >= 2.6, or Python 3 >= 3.1. 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 "id: %s" % disc.id  # Python 2
print("id: %s" % disc.id) # Python 3

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.2.0.tar.gz (30.8 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: discid-1.2.0.tar.gz
  • Upload date:
  • Size: 30.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.2

File hashes

Hashes for discid-1.2.0.tar.gz
Algorithm Hash digest
SHA256 cd9630bc53f5566df92819641040226e290b2047573f2c74a6e92b8eed9e86b9
MD5 88cbe833957062f9cb163a72884931d2
BLAKE2b-256 d5fac8856ae3eb53393445d84589afbd49ded85527563a7c0457f4e967d5b7af

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page