Skip to main content

Python bindings for libdiscid

Project description

python-libdiscid implements Python bindings for libdiscid using Cython. Both Python 2 (>= 2.6) and 3 (>= 3.1) are supported.

Dependencies

  • libdiscid

  • Cython (>= 0.15)

Note that the tarballs come with pre-built C source for the Cython module. So Cython is only required if one builds python-libdiscid from the git repository or if one wants to change anything in the Cython module.

Quick installation guide

python-libdiscid is available in some distributions:

  • Debian/Ubuntu: apt-get install python-libdiscid (Python 2) or apt-get install python3-libdiscid (Python 3)

python-libdiscid can be installed via pip:

pip install python-libdiscid

or by running:

python setup.py install

If you just want to try it locally, run:

python setup.py build_ext -i

and hack right away. You can also run:

python setup.py build

but please make sure that build/lib.* is in sys.path before the source folder.

A note for Windows users

There are eggs available from PyPI that don’t require the extension module to be built. If these are used, it is still required to drop a working discid.dll in C:\WINDOWS\system32 (or wherever it can be found).

Usage

from libdiscid import read

disc = read("/dev/cdrom")
print "id: %s" % (disc.id, )

License

python-libdiscid is release under the Expat license. Check LICENSE for details.

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

python-libdiscid-0.4.1.tar.gz (56.6 kB view details)

Uploaded Source

Built Distributions

python_libdiscid-0.4.1-py3.3-win32.egg (52.3 kB view details)

Uploaded Source

python_libdiscid-0.4.1-py3.2-win32.egg (51.5 kB view details)

Uploaded Source

python_libdiscid-0.4.1-py2.7-win32.egg (50.7 kB view details)

Uploaded Source

File details

Details for the file python-libdiscid-0.4.1.tar.gz.

File metadata

File hashes

Hashes for python-libdiscid-0.4.1.tar.gz
Algorithm Hash digest
SHA256 fd368165e3671c5c10ff01d8ac54dcbb5e961d3a4ea335fc9a23f37a280bec49
MD5 5d292eb0a78209543d8d4bba4953d99e
BLAKE2b-256 cd7fd4c8b38a0204a89297189675d88bc3ce0d313a365087dd555ba100aee52e

See more details on using hashes here.

File details

Details for the file python_libdiscid-0.4.1-py3.3-win32.egg.

File metadata

File hashes

Hashes for python_libdiscid-0.4.1-py3.3-win32.egg
Algorithm Hash digest
SHA256 d82683964f093daef275988187423442b6b722eeac98c4ba0d2f8a18cdd0d6ba
MD5 9267daec9fc7edac592a989ddb1bd702
BLAKE2b-256 b100ac03649eded601b1ca45d22c9793db951c4fc6821b0ea48e94cb192ed297

See more details on using hashes here.

File details

Details for the file python_libdiscid-0.4.1-py3.2-win32.egg.

File metadata

File hashes

Hashes for python_libdiscid-0.4.1-py3.2-win32.egg
Algorithm Hash digest
SHA256 b7d2a059d942fba3dcdc4521610a81a5c0f97b146b184ed6c238a5b7dd5dfad9
MD5 76a83a86acf2e04b442b055d69077a51
BLAKE2b-256 848a4cfad74d1b21c12824560abaa55dff1bc0eacf2d6313bd57542945516fb5

See more details on using hashes here.

File details

Details for the file python_libdiscid-0.4.1-py2.7-win32.egg.

File metadata

File hashes

Hashes for python_libdiscid-0.4.1-py2.7-win32.egg
Algorithm Hash digest
SHA256 5b319bf108ee62382549056f8dad24aca74a6f78e5f8aa5d988d40cadf6ab241
MD5 f5d5e66365e0cab97ff3a9cd80682d1d
BLAKE2b-256 60313a368459cd72882b0110fba62ce12c5903c7d66d86d3e9916071ba3b879b

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