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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file python-libdiscid-2.0.3.tar.gz
.
File metadata
- Download URL: python-libdiscid-2.0.3.tar.gz
- Upload date:
- Size: 20.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f681053ebd7406dc7e11cf702afaa5a2d595a0db2de5a026c8c3fa5539eb5750 |
|
MD5 | f7ae90cfff90ffcb3332540e7a209997 |
|
BLAKE2b-256 | b6a8f9a5ca2585fc81c65f9ed9e53c7e34ef29ce8bdd8735772e99a1ef015e05 |
File details
Details for the file python_libdiscid-2.0.3-cp311-cp311-win32.whl
.
File metadata
- Download URL: python_libdiscid-2.0.3-cp311-cp311-win32.whl
- Upload date:
- Size: 52.3 kB
- Tags: CPython 3.11, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 588b60fbf40280b0a132727f4b9f65239f0f2f6bc63be6430841e34a0fed68ab |
|
MD5 | c40f0c2c80f20c7aab08a42d5b0ac35d |
|
BLAKE2b-256 | cfda695007263e9330d9ba2d4683c60c13f35593eb1c7d4776dde17c61d4a3ee |
File details
Details for the file python_libdiscid-2.0.3-cp310-cp310-win32.whl
.
File metadata
- Download URL: python_libdiscid-2.0.3-cp310-cp310-win32.whl
- Upload date:
- Size: 52.2 kB
- Tags: CPython 3.10, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 672646e313fa0ccaeb532560a03ee0e76288a406869cdc3825c55c38c53ade97 |
|
MD5 | 555ef2f19ad02eb98bda09fbd2896140 |
|
BLAKE2b-256 | 56617bf7f36d0cf3353af17b3601bc75ea591e2795075fe2241cf3a438fb01f0 |
File details
Details for the file python_libdiscid-2.0.3-cp39-cp39-win32.whl
.
File metadata
- Download URL: python_libdiscid-2.0.3-cp39-cp39-win32.whl
- Upload date:
- Size: 52.2 kB
- Tags: CPython 3.9, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb3beead4d654a6c7de144c2be8efbc6478eb4e3387818d6a3321693f608df9d |
|
MD5 | bfa0d114b3a41105e7fe58f163073642 |
|
BLAKE2b-256 | 742d852ee362b2ef53442d432bf315f343c4c9dc602ead2d934b56c6232af9ba |
File details
Details for the file python_libdiscid-2.0.3-cp38-cp38-win32.whl
.
File metadata
- Download URL: python_libdiscid-2.0.3-cp38-cp38-win32.whl
- Upload date:
- Size: 52.1 kB
- Tags: CPython 3.8, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5cab55da31b3b3b5f47e4e6a85193d238c9d0e0038d2627960e12f26a3b591b9 |
|
MD5 | 94bfe808a561b39abeb7de380c4f93a9 |
|
BLAKE2b-256 | 85e94bad0a3d36fc6fe20ea9abc0236f86dbc0f69254ebcdbad9130120198dca |