Skip to main content

Python bindings for libdiscid

Reason this release was yanked:

Broken python_requires

Project description

libdiscid Python bindings

python-libdiscid implements Python 3 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.tar.gz (21.3 kB view details)

Uploaded Source

Built Distributions

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

Uploaded CPython 3.9 Windows x86

python_libdiscid-2.0-cp38-cp38-win32.whl (49.8 kB view details)

Uploaded CPython 3.8 Windows x86

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

Uploaded CPython 3.7m Windows x86

python_libdiscid-2.0-cp36-cp36m-win32.whl (48.7 kB view details)

Uploaded CPython 3.6m Windows x86

File details

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

File metadata

  • Download URL: python-libdiscid-2.0.tar.gz
  • Upload date:
  • Size: 21.3 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.tar.gz
Algorithm Hash digest
SHA256 48c4fd0fd42e7e00eacaada8fa3cd613deaefac01f4f424e2f753c68491108be
MD5 65a82aaa1de6cc807d58b7a2f3d390a8
BLAKE2b-256 fd4ddd5867c95821b9378605d10a922650fed78877b375a5c02aaf5ddcf0de42

See more details on using hashes here.

File details

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

File metadata

  • Download URL: python_libdiscid-2.0-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-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 eda627035bd99ec8a1c7821bb390cb55a222a24f77df2c74cc75868911fd807c
MD5 4c6ee0fabc9c5e9fd42eb439884697b0
BLAKE2b-256 f7691e9639f72d8c71924118f5d0d0df69c577e7028c9fb9b9a5b3cd22322f65

See more details on using hashes here.

File details

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

File metadata

  • Download URL: python_libdiscid-2.0-cp38-cp38-win32.whl
  • Upload date:
  • Size: 49.8 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-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 24ab4050c02a03f1dc5e2be6140b5901b9742f22de72c560ba50b02e094d052c
MD5 d0b517781323020e824d9f0502b8da6a
BLAKE2b-256 2ca6f1c3ea35379517987fb6b5136f1aabeba5e8cb441e3b1a727ecfe5ca54ff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: python_libdiscid-2.0-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-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 bdbdabdf2f6e4cbf6f611b7e985a08f16d32bc9f55b134dcf6f3d15d5958bc30
MD5 3926faacdeaaea6097a28a477ddf7079
BLAKE2b-256 c8f9adf356efb6292ed28711c5d82e47f9a9c8113f354b44a1c56c18d95ece32

See more details on using hashes here.

File details

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

File metadata

  • Download URL: python_libdiscid-2.0-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 48.7 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-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 d9e8902e66b1cc06f2ac926b5ef54cc393d75e8174615fef5ed7fea75e477bb5
MD5 9b739af163ea8f1b608dc76ea595e5fa
BLAKE2b-256 1f29e9ebfcb9927a51f12019f08b515b16ce29a398c40b3bc79c00c3aa199b6a

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