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 2.0.3

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 2.0.3
File Size Uploaded
PYB11Generator-2.0.3.tar.gz 75.8 kB Details

Built distribution (wheel)

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

Total release size: 111.5 kB

Release files / PYB11Generator-2.0.3.tar.gz

Download URL PYB11Generator-2.0.3.tar.gz
Size 75.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d044236e7260735739d1d4000313e788fbf4ce9b2b1e383543094028a5393fea
BLAKE2b-256 checksum
How to use checksums
1d0c71568b5bba8caa74053b564560d5cc68058020b47065b2dca3a70d6825f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.2

Release files / PYB11Generator-2.0.3-py3-none-any.whl

Download URL PYB11Generator-2.0.3-py3-none-any.whl
Size 35.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dc5957f0bd4f1c9d8b7b35ae70d7b75db76f8a7715afbf36f90855a685a3655f
BLAKE2b-256 checksum
How to use checksums
b0cdf58aeedd92d17404ff6afac79d06f5c20a191621597acd2bffb6cdc32de7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.2

Release history Release notifications | RSS feed

2.1.0

1 release file

This release

2.0.3 This release

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.0.12

1 release file

1.0.11

1 release file

1.0.10

3 release files

1.0.9

2 release files

1.0.8

1 release file

1.0.7

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