PxdGen
PxdGen is a tool which uses Clang to convert C/C++ header files to Cython pxd files. It has two modes of operation: single-file mode and directory mode. Single file mode is well suited for C/C++ libraries that consolodate all definitions into a single header, while directory mode is better suited for large projects with many independent headers. There are some examples which use PxdGen on C/C++ libraries in the tests folder.
Installation
pip install pxdgen
Requirements
- Clang - The version of libclang.(dll/so/dylib) on your system should match the version of the Python bindings to Clang. If it is not found by the standard library search path on your system, PxdGen allows you to point it to the library with -L.
Bugs/Limitations
- Experimental C++ support
Usage
pxdgen [-h] [-o OUTPUT] [-p RELPATH] [-r] [-x LANGUAGE] [-I INCLUDE] [-L LIBS] [-v] [-f FLAGS] header
A tool that converts C/C++ headers to pxd files
positional arguments:
header Path to C/C++ header file or project directory to parse
optional arguments:
-h, --help show this help message and exit
-o OUTPUT, --output OUTPUT
Path to output file or directory (defaults to stdout)
-p RELPATH, --relpath RELPATH
Relative path to parse from (defaults to pwd)
-r, --recursive Include declarations from all nested headers
-x LANGUAGE, --language LANGUAGE
Force Clang to use the specified language for interpretation
-I INCLUDE, --include INCLUDE
Add a directory to Clang's include path
-L LIBS, --libclang-path LIBS
Specify the path to a directory containing libclang and its dependencies
-v, --verbose Print the status of the application to stdout
-f FLAGS, --flag FLAGS
Set a flag to further tune the program output
Metadata
Release files for pxdgen 1.1.1
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 | |
|---|---|---|---|---|
| pxdgen-1.1.1.tar.gz | 31.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pxdgen-1.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 67.2 kB
Release files / pxdgen-1.1.1.tar.gz
| Download URL | pxdgen-1.1.1.tar.gz |
|---|---|
| Size | 31.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eef84d8abec738efc7261f3517d8621dd03e9c3a0eb57226fa42291468b488fa
|
|
BLAKE2b-256 checksum How to use checksums |
cc8bc06c72f49a304fc5ad2464f8d5590d1c06d6c925be18558e2140400fda6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.9
|
Release files / pxdgen-1.1.1-py3-none-any.whl
| Download URL | pxdgen-1.1.1-py3-none-any.whl |
|---|---|
| Size | 35.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b967cc5a8d27847b3d5fc096d77c1e0f939f689d5fc80a47c40e0d9b8d900ae1
|
|
BLAKE2b-256 checksum How to use checksums |
b169eab3d19a9ae74bfcb2dfa8151d7f4d81842bff8b6c75e581ad0810e921a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.9
|
Security for pxdgen 1.1.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.