Skip to main content
https://github.com/MatthieuDartiailh/pyclibrary/workflows/Continuous%20Integration/badge.svg https://github.com/MatthieuDartiailh/pyclibrary/workflows/Documentation%20building/badge.svg https://codecov.io/gh/MatthieuDartiailh/pyclibrary/branch/master/graph/badge.svg Documentation Status Latest Version Supported Python versions Wheel Status License

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)

Source distribution for pyclibrary 0.3.0
File Size Uploaded
pyclibrary-0.3.0.tar.gz 583.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyclibrary 0.3.0
File Interpreter ABI Platform
pyclibrary-0.3.0-py3-none-any.whl Python 3 none any Details

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 log

Release 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 log

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

1 release file

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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