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.
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 | |
|---|---|---|---|
| nanobind-3.1.0.tar.gz | 1.1 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nanobind-3.1.0-py3-none-any.whl | Python 3 | none | any | Details |
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
|