Skip to main content

PYB11Generator

PYB11Generator is a python based code generator that creates pybind11 code for binding C++ libraries as extensions in Python. PYB11Generator parses input that is very close to writing the desired interface in native python, turning this into the corresponding pybind11 C++ code.

Note, since PYB11Generator blindly generates C++ pybind11 code, it is essential to understand the pybind11 package itself as well! In other words, be sure to read and understand the pybind11 documentation before trying to go too far with PYB11Generator. The purpose of PYB11Generator is to reduce the burden of writing and maintaining redundant code when working with pybind11 (such as the trampoline classes), and provide a natural syntax for those already familiar with writing interfaces in Python. However, since the generated pybind11 code produced by PYB11Generator is what is actually compiled by a C++ compiler to create the corresponding python package, any errors reported by the compiler will refer to this generated code, and require understanding pybind11 itself to properly interpret.

Documentation

PYB11Generator is documented at readthedocs.

Note the source for this documentation is embedded in the PYB11Generator repository under docs/.

Contributions

Although a great deal of the functionality of pybind11 is available via PYB11Generator, there are certainly missing pieces and improvements that can be made. Contributions are welcome, and should be provided as pull requests to the main repository. Note all contributions must be provided under the same license for distribution (in this case the BSD license).

License

PYB11Generator is released under the BSD license.

LLNL-CODE-767799

Metadata

Release files for PYB11Generator 2026.5.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 PYB11Generator 2026.5.0
File Size Uploaded Provenance
pyb11generator-2026.5.0.tar.gz 966.7 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 999.0 kB

Release files / pyb11generator-2026.5.0.tar.gz

Download URL pyb11generator-2026.5.0.tar.gz
Size 966.7 kB
Tags Source
SHA-256 checksum
How to use checksums
aedb6c0603f26bb5884ae5ad8946ff57b0cec94e64f3c9e8d05e1f7311f71187
BLAKE2b-256 checksum
How to use checksums
ed35e45f334bb7b18fddf6c77859f84a51546949338009a6edda939efaff43e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.2

Release files / pyb11generator-2026.5.0-py3-none-any.whl

Download URL pyb11generator-2026.5.0-py3-none-any.whl
Size 32.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d924e897eee7593bde0b1e039741f92c72d2bdfbde5c8b847ed1b3de7c41907b
BLAKE2b-256 checksum
How to use checksums
33ba889447a235fbd300eb1cdbcfb7913cafe455bc4f1aade232d9184e325dfa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.2

Security for PYB11Generator 2026.5.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.

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.

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