Skip to main content

Python bindings for libdiscid

Project description

libdiscid Python bindings

python-libdiscid implements Python >= 3.6 bindings for libdiscid using Cython.

Dependencies

  • libdiscid
  • Cython (>= 0.15, optional)
  • pkgconfig (optional)

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.

If pkgconfig is installed, setup.py uses libdiscid's pkg-config information to set include directories, libraries to link, etc.

Quick installation guide

python-libdiscid is available in some distributions:

  • Debian/Ubuntu: apt-get install python3-libdiscid (Python 3)
  • Fedora: dnf install python3-libdiscid (Python 3)

python-libdiscid can be installed via pip:

$ pip install python-libdiscid

or by running:

$ python3 setup.py install

If you just want to try it locally, run:

$ python3 setup.py build_ext -i

and hack right away. You can also run:

$ python3 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: {}".format(disc.id))

License

python-libdiscid is released under the MIT license. Check LICENSE for details.

Tidelift

Security contact information

To report a security vulnerability, please use the Tidelift security contact. Tidelift will coorindate the fix and disclosure.

Commercial support

cwcwidth and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source packages you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact packages you use. Learn more.

Project details


Download files

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

Files for python-libdiscid, version 2.0.1
Filename, size File type Python version Upload date Hashes
Filename, size python_libdiscid-2.0.1-cp39-cp39-win32.whl (49.6 kB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size python_libdiscid-2.0.1-cp38-cp38-win32.whl (49.9 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size python_libdiscid-2.0.1-cp37-cp37m-win32.whl (48.7 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size python_libdiscid-2.0.1-cp36-cp36m-win32.whl (48.8 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size python-libdiscid-2.0.1.tar.gz (21.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page