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


Release history Release notifications

History Node

1.0

This version
History Node

0.4.1

History Node

0.4

History Node

0.3.1

History Node

0.3

History Node

0.2.0

History Node

0.1.2

History Node

0.1.1

History Node

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
python_libdiscid-0.4.1-py2.7-win32.egg (50.7 kB) Copy SHA256 hash SHA256 Egg 2.7 Jan 3, 2014
python_libdiscid-0.4.1-py3.2-win32.egg (51.5 kB) Copy SHA256 hash SHA256 Egg 3.2 Jan 3, 2014
python_libdiscid-0.4.1-py3.3-win32.egg (52.3 kB) Copy SHA256 hash SHA256 Egg 3.3 Jan 3, 2014
python-libdiscid-0.4.1.tar.gz (56.6 kB) Copy SHA256 hash SHA256 Source None Jan 3, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page