Skip to main content

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.

Metadata

Release files for python-libdiscid 2.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-libdiscid 2.0.3
File Size Uploaded
python-libdiscid-2.0.3.tar.gz 20.2 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for python-libdiscid 2.0.3
File
python_libdiscid-2.0.3-cp311-cp311-win32.whl CPython 3.11 CPython 3.11 Windows x86-32 Details
python_libdiscid-2.0.3-cp310-cp310-win32.whl CPython 3.10 CPython 3.10 Windows x86-32 Details
python_libdiscid-2.0.3-cp39-cp39-win32.whl CPython 3.9 CPython 3.9 Windows x86-32 Details
python_libdiscid-2.0.3-cp38-cp38-win32.whl CPython 3.8 CPython 3.8 Windows x86-32 Details

Total release size: 228.9 kB

Release files / python-libdiscid-2.0.3.tar.gz

Download URL python-libdiscid-2.0.3.tar.gz
Size 20.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f681053ebd7406dc7e11cf702afaa5a2d595a0db2de5a026c8c3fa5539eb5750
BLAKE2b-256 checksum
How to use checksums
b6a8f9a5ca2585fc81c65f9ed9e53c7e34ef29ce8bdd8735772e99a1ef015e05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.17

Release files / python_libdiscid-2.0.3-cp311-cp311-win32.whl

Download URL python_libdiscid-2.0.3-cp311-cp311-win32.whl
Size 52.3 kB
Tags CPython 3.11 Windows x86-32
SHA-256 checksum
How to use checksums
588b60fbf40280b0a132727f4b9f65239f0f2f6bc63be6430841e34a0fed68ab
BLAKE2b-256 checksum
How to use checksums
cfda695007263e9330d9ba2d4683c60c13f35593eb1c7d4776dde17c61d4a3ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.17

Release files / python_libdiscid-2.0.3-cp310-cp310-win32.whl

Download URL python_libdiscid-2.0.3-cp310-cp310-win32.whl
Size 52.2 kB
Tags CPython 3.10 Windows x86-32
SHA-256 checksum
How to use checksums
672646e313fa0ccaeb532560a03ee0e76288a406869cdc3825c55c38c53ade97
BLAKE2b-256 checksum
How to use checksums
56617bf7f36d0cf3353af17b3601bc75ea591e2795075fe2241cf3a438fb01f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.17

Release files / python_libdiscid-2.0.3-cp39-cp39-win32.whl

Download URL python_libdiscid-2.0.3-cp39-cp39-win32.whl
Size 52.2 kB
Tags CPython 3.9 Windows x86-32
SHA-256 checksum
How to use checksums
fb3beead4d654a6c7de144c2be8efbc6478eb4e3387818d6a3321693f608df9d
BLAKE2b-256 checksum
How to use checksums
742d852ee362b2ef53442d432bf315f343c4c9dc602ead2d934b56c6232af9ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.17

Release files / python_libdiscid-2.0.3-cp38-cp38-win32.whl

Download URL python_libdiscid-2.0.3-cp38-cp38-win32.whl
Size 52.1 kB
Tags CPython 3.8 Windows x86-32
SHA-256 checksum
How to use checksums
5cab55da31b3b3b5f47e4e6a85193d238c9d0e0038d2627960e12f26a3b591b9
BLAKE2b-256 checksum
How to use checksums
85e94bad0a3d36fc6fe20ea9abc0236f86dbc0f69254ebcdbad9130120198dca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.17

Release history Release notifications | RSS feed

2.1

1 release file

This release

2.0.3 This release

5 release files

2.0.2

4 release files

2.0.1

5 release files

2.0

5 release files

1.2

1 release file

1.1

1 release file

1.0

1 release file

0.4.1

4 release files

0.4

4 release files

0.3.1

4 release files

0.3

4 release files

0.2.0

4 release files

0.1.2

1 release file

0.1.1

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page