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.

Source Distribution

python-libdiscid-2.0.1.tar.gz (21.4 kB view details)

Uploaded Source

Built Distributions

python_libdiscid-2.0.1-cp39-cp39-win32.whl (49.6 kB view details)

Uploaded CPython 3.9 Windows x86

python_libdiscid-2.0.1-cp38-cp38-win32.whl (49.9 kB view details)

Uploaded CPython 3.8 Windows x86

python_libdiscid-2.0.1-cp37-cp37m-win32.whl (48.7 kB view details)

Uploaded CPython 3.7m Windows x86

python_libdiscid-2.0.1-cp36-cp36m-win32.whl (48.8 kB view details)

Uploaded CPython 3.6m Windows x86

File details

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

File metadata

  • Download URL: python-libdiscid-2.0.1.tar.gz
  • Upload date:
  • Size: 21.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for python-libdiscid-2.0.1.tar.gz
Algorithm Hash digest
SHA256 af934b506ea85a6d055c86997be95f072adc020fd9d455cbfcc93e0967462bb0
MD5 63c9416525a2a34ef82178ebbdf0fde9
BLAKE2b-256 709b8391e3fe51db7dee00a3b216ea4f5682d2329aa7ca94e010ae0730f5fdb6

See more details on using hashes here.

File details

Details for the file python_libdiscid-2.0.1-cp39-cp39-win32.whl.

File metadata

  • Download URL: python_libdiscid-2.0.1-cp39-cp39-win32.whl
  • Upload date:
  • Size: 49.6 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for python_libdiscid-2.0.1-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 8d01ccc79e8064e600ac834d5a356aba2737023ec3c687caf9d0072f122eecd4
MD5 3e47eeb9833e73d4751f5ad3fadd8897
BLAKE2b-256 b25b40464937373dcf2ac5422506501861f5f6f80565c629412fe1a7cece6240

See more details on using hashes here.

File details

Details for the file python_libdiscid-2.0.1-cp38-cp38-win32.whl.

File metadata

  • Download URL: python_libdiscid-2.0.1-cp38-cp38-win32.whl
  • Upload date:
  • Size: 49.9 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for python_libdiscid-2.0.1-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 01428987d71a6360bef3d95453949bfea0a96b1213999df467562abfa7b76c83
MD5 da33624e3c706eb7db70d7d5d1577154
BLAKE2b-256 402afe36b233fb4ce87699a6e000438d45f2e9c6c7f5ece9123b90b7238b7c5b

See more details on using hashes here.

File details

Details for the file python_libdiscid-2.0.1-cp37-cp37m-win32.whl.

File metadata

  • Download URL: python_libdiscid-2.0.1-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 48.7 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for python_libdiscid-2.0.1-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 799bc8bfc782ddd798f40a28188f6d5fb715ee46c9a3e27bcd6a2a2436efb721
MD5 e1478bd3eeb3f3b328ed41f899379d86
BLAKE2b-256 4470739aff09f0a0c05db6db84819ec705532b4a077b365f66841cd257f12906

See more details on using hashes here.

File details

Details for the file python_libdiscid-2.0.1-cp36-cp36m-win32.whl.

File metadata

  • Download URL: python_libdiscid-2.0.1-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 48.8 kB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for python_libdiscid-2.0.1-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 59a058fc4e0289c5754daeca3801690be1392326e6f15db9787781fb38e82b4b
MD5 8cbe00f4822c73f922c1c4b012a80edb
BLAKE2b-256 a1b5fbd579366646d6f88dcbd7f7363e7323e6eed9100820815789138f57a7d8

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