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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for python_libdiscid-0.4-py3.3-win32.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdc37cda83bba77fd6f406a495a52da0e0a392909c5b6b00f0212dc5c269d8c3 |
|
MD5 | c5be8ab3638056367a2972a02e8bdf48 |
|
BLAKE2b-256 | 210d54a297aeb3e2f9e6ee064bfaba7d3c1eec88dd8d590dab99e371e33affc0 |
Hashes for python_libdiscid-0.4-py3.2-win32.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86e1251532772cb99a439b535d8212499238b8e67ea7d75a9439bf3e070b20c9 |
|
MD5 | 66498637e74897c0a1d24813b9b16e3b |
|
BLAKE2b-256 | a03689706acb6d7d773f4e499b680c22dd72470ef68ec3f6b0f11e983930402e |
Hashes for python_libdiscid-0.4-py2.7-win32.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0ca0ffde5af9f5d2ab2bd95d959eba6d0c73d6b7cc9aebe665d068eba185ac6 |
|
MD5 | e2a1b06381aca006d73d1e9c96a78fec |
|
BLAKE2b-256 | acdbff1277f1d6d803e70d023c216e96c218c7957dd4cd4e73594e4819d4d438 |