C parser and bindings automation for Python.
Fork of https://launchpad.net/pyclibrary.
PyCLibrary includes 1) a pure-python C parser and 2) an automation library that uses C header file definitions to simplify the use of c bindings. The C parser currently processes all macros, typedefs, structs, unions, enums, function prototypes, and global variable declarations, and can evaluate typedefs down to their fundamental C types + pointers/arrays/function signatures. Pyclibrary can automatically build c structs/unions and perform type conversions when calling functions via cdll/windll.
PyCLibrary tries to present a ffi agnostic API to allow using different bindings. For the time being only the ctypes based backend is implemented but a cffi backend should be possible to implement (the rational for it would be that the CParser can be used on raw header files which are not always well supported by the cffi parser).
However if you need to manipulate the C object coming back from the library which cannot simply be mapped to Python object your code will most likely not be backend independent so it is discouraged to try to switch between backends.
Metadata
Release files for pyclibrary 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyclibrary-0.3.0.tar.gz | 583.7 kB | With provenance | Details for pyclibrary-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyclibrary-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for pyclibrary-0.3.0-py3-none-any.whl |
Total release size: 1.1 MB
Release files / pyclibrary-0.3.0.tar.gz
| Download URL | pyclibrary-0.3.0.tar.gz |
|---|---|
| Size | 583.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8a3eaa9ab728c11b077644275af4e05ca24ddcad491f47eb45b75db6be52c654
|
|
BLAKE2b-256 checksum How to use checksums |
9c3e791a63041d3d237c591b5bf4a50d46d0de7e62a16a0ab8173d2d7e8c79a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 3, 2025.
Transparency logRelease files / pyclibrary-0.3.0-py3-none-any.whl
| Download URL | pyclibrary-0.3.0-py3-none-any.whl |
|---|---|
| Size | 562.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b704145eee612d88f0623b4d6a68ea65af77b34aa2d92ed75c61ef3592edc3a1
|
|
BLAKE2b-256 checksum How to use checksums |
562f5b214a00afd5407d7e174a35e8244174f6f4445a0a9f0a55cafd209af963
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 3, 2025.
Transparency logSecurity for pyclibrary 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pyclibrary-0.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 3, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.