pygccxml is a specialized XML reader that reads the output from CastXML. It provides a simple framework to navigate C++ declarations, using Python classes.
Using pygccxml you can:
Parse C++ source code
Create a code generator
Generate UML diagrams
Build code analyzers
…
Installation
Install instructions can be found here.
Compatibility
pygccxml is compatible with Python 3.9, 3.10, 3.11, 3.12, 3.13 and pypy3.
Documentation and examples
The documentation can be found here, examples can be found here. You can also run an example JupyterLab Notebook using Binder, or view it using nbviewer:
If you want to know more about the API provided by pygccxml, read the query interface document or the API documentation.
A FAQ is also available and may answer some of your questions.
License
Contact us
For issues with pygccxml you can open an issue here.
For issues with CastXML you can open an issue here.
You can contact us through the CastXML mailing list.
Branches
The stable version can be found on the master branch.
The develop branch contains the latest improvements but can be unstable. Pull Requests should be done on the develop branch.
Testing
Running the test suite is done with:
pytest tests
Metadata
Release files for pygccxml 3.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pygccxml-3.0.2.tar.gz | 129.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pygccxml-3.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 252.2 kB
Release files / pygccxml-3.0.2.tar.gz
| Download URL | pygccxml-3.0.2.tar.gz |
|---|---|
| Size | 129.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e1a8c738765f4eb2819cc7439975631f838e59a1cf3fa49896e0a1967c5e2bee
|
|
BLAKE2b-256 checksum How to use checksums |
5eefe2752b28eb259e5ecc82dd1c4063cb0289969fae414d33445b533cc97ea3
|
| 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 Mar 16, 2025.
Transparency logRelease files / pygccxml-3.0.2-py3-none-any.whl
| Download URL | pygccxml-3.0.2-py3-none-any.whl |
|---|---|
| Size | 122.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2993d449320a4ccd1a8deb5b3bf2d9752a1af950b7352361936ea8317d6ef265
|
|
BLAKE2b-256 checksum How to use checksums |
b08b0bf5ff3b381a9435973ab3756c84e0a9db1d0b89b9902272182b2f155157
|
| 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 Mar 16, 2025.
Transparency log