nanobind is a small binding library that exposes C++ types in Python and vice versa. It is reminiscent of Boost.Python and pybind11 and uses near-identical syntax. In contrast to these existing tools, nanobind is more efficient: bindings compile in a shorter amount of time, produce smaller binaries, and have better runtime performance.
More concretely, benchmarks show up to ~4× faster compile time, ~5× smaller binaries, and ~10× lower runtime overheads compared to pybind11. nanobind also outperforms Cython in important metrics (3-12× binary size reduction, 1.6-4× compilation time reduction, similar runtime performance).
Please see the following links for tutorial and reference documentation in HTML and PDF formats.
Metadata
Release files for nanobind 3.1.0
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 | Actions |
|---|---|---|---|---|
| nanobind-3.1.0.tar.gz | 1.1 MB | Without provenance | Details for nanobind-3.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nanobind-3.1.0-py3-none-any.whl | Python 3 | none | any | Details for nanobind-3.1.0-py3-none-any.whl |
Total release size: 1.5 MB
Release files / nanobind-3.1.0.tar.gz
| Download URL | nanobind-3.1.0.tar.gz |
|---|---|
| Size | 1.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6661e3dc1434d78781ccf7913442d90361dab395c3424efadb63bbb6ddea7ea3
|
|
BLAKE2b-256 checksum How to use checksums |
c71fe28fae715401e8f57400e72aeaff4fde12046d31828164f34f61f0816da8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Release files / nanobind-3.1.0-py3-none-any.whl
| Download URL | nanobind-3.1.0-py3-none-any.whl |
|---|---|
| Size | 316.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
96984dbe8154ffb86e653b1b60aaeed6985c710c5e75ad0279eb87943c66292d
|
|
BLAKE2b-256 checksum How to use checksums |
36c16fd56f7a02a478d54a1a3e6000eccd34b446b1c45cbf0d002fe5d2937126
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Security for nanobind 3.1.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.