Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

nanobind example

Example creating a Python binding for C++ with nanobind. Based on the nanobind docs.

Using the bindings

$ uv venv --python 3.12
$ uv pip install borco-nanobind-example
$ uv run python
>>> import borco_nanobind_example as ex
>>> ex.Dog("Max").bark()
'Max: woof!'
>>> ex.the_answer
42
>>> ex.add(3)
4
>>> ex.add(3, 4)
7

Release files for borco-nanobind-example 0.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 borco-nanobind-example 0.0.3
File Size Uploaded
borco_nanobind_example-0.0.3.tar.gz 9.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for borco-nanobind-example 0.0.3
File Interpreter ABI Platform
borco_nanobind_example-0.0.3-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details

Total release size: 57.6 kB

Release files / borco_nanobind_example-0.0.3.tar.gz

Download URL borco_nanobind_example-0.0.3.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
746a02854ce1b7a7487eff2c0a19bf0df69679736bad60cb05696d4f06a51a29
BLAKE2b-256 checksum
How to use checksums
d00578e27e55aee51292f0045493619f50cf67f35a9d846621046e3cd9ce17e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.5

Release files / borco_nanobind_example-0.0.3-cp312-abi3-win_amd64.whl

Download URL borco_nanobind_example-0.0.3-cp312-abi3-win_amd64.whl
Size 48.3 kB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
8d92dbff162cd34aff6f271142af5ba3dbcf88c0043afea4bafb448fcf4a5d17
BLAKE2b-256 checksum
How to use checksums
9cd792dc02eba1b097712b50b926667f71eae8958e440a916c23e3a051751fc9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.5

Release history Release notifications | RSS feed

This release

0.0.3 This release

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