Skip to main content

Small cache

Project description

small_cache

CI status
pip builds Pip Action Status
wheels Wheel Action Status

This repository contains a tiny project showing how to create C++ bindings using nanobind and scikit-build-core. It was derived from the corresponding pybind11 example project developed by @henryiii.

Furthermore, the bazel branch contains an example on how to build nanobind bindings extensions with Bazel using the nanobind-bazel project.

Installation

  1. Clone this repository
  2. Run pip install ./small_cache

Afterwards, you should be able to issue the following commands (shown in an interactive Python session):

>>> import small_cache
>>> small_cache.add(1, 2)
3

CI Examples

The .github/workflows directory contains two continuous integration workflows for GitHub Actions. The first one (pip) runs automatically after each commit and ensures that packages can be built successfully and that tests pass.

The wheels workflow uses cibuildwheel to automatically produce binary wheels for a large variety of platforms. If a pypi_password token is provided using GitHub Action's secrets feature, this workflow can even automatically upload packages on PyPI.

License

nanobind and this example repository are both provided under a BSD-style license that can be found in the LICENSE file. By using, distributing, or contributing to this project, you agree to the terms and conditions of this license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

small_cache-0.0.2.tar.gz (8.3 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

small_cache-0.0.2-cp314-cp314t-win_amd64.whl (598.6 kB view details)

Uploaded CPython 3.14tWindows x86-64

small_cache-0.0.2-cp314-cp314t-musllinux_1_2_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.14tmusllinux: musl 1.2+ x86-64

small_cache-0.0.2-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (699.1 kB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

small_cache-0.0.2-cp314-cp314t-macosx_11_0_arm64.whl (671.0 kB view details)

Uploaded CPython 3.14tmacOS 11.0+ ARM64

small_cache-0.0.2-cp312-abi3-win_amd64.whl (597.5 kB view details)

Uploaded CPython 3.12+Windows x86-64

small_cache-0.0.2-cp312-abi3-musllinux_1_2_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.12+musllinux: musl 1.2+ x86-64

small_cache-0.0.2-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (695.6 kB view details)

Uploaded CPython 3.12+manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

small_cache-0.0.2-cp312-abi3-macosx_11_0_arm64.whl (668.5 kB view details)

Uploaded CPython 3.12+macOS 11.0+ ARM64

small_cache-0.0.2-cp311-cp311-win_amd64.whl (599.1 kB view details)

Uploaded CPython 3.11Windows x86-64

small_cache-0.0.2-cp311-cp311-musllinux_1_2_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

small_cache-0.0.2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (697.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

small_cache-0.0.2-cp311-cp311-macosx_11_0_arm64.whl (670.5 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

File details

Details for the file small_cache-0.0.2.tar.gz.

File metadata

  • Download URL: small_cache-0.0.2.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for small_cache-0.0.2.tar.gz
Algorithm Hash digest
SHA256 e3e368aaec329e8b05df15f894d68d7ac336083740fda0a55d1d63e55738163f
MD5 4cc97a5051a89bff65ccb52d0483c06f
BLAKE2b-256 8828a56303131c0a6f181ded5a36fa5cd8c877c67300f6bcad5579f3e9587424

See more details on using hashes here.

File details

Details for the file small_cache-0.0.2-cp314-cp314t-win_amd64.whl.

File metadata

File hashes

Hashes for small_cache-0.0.2-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 72843171ebf4cd0c439bcc259d0dc7ff2589da26c091dfcf5fb3db104b636001
MD5 10352bfc6da4f328a9a365dc430eaf81
BLAKE2b-256 3138a428ada4587572d45749b3cb6f8aff8f416b1719b51ba7290fa016b178bd

See more details on using hashes here.

File details

Details for the file small_cache-0.0.2-cp314-cp314t-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for small_cache-0.0.2-cp314-cp314t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 1cf0bb5871675fa1108981504096cf31177de0e5f9f29f57870c362e9c3724dc
MD5 10ba627b39dadb89d07b65594b15f4d2
BLAKE2b-256 a79c3ac7725bbbc7b988be549497c879f560d1cf6597624376bc987866e7f85b

See more details on using hashes here.

File details

Details for the file small_cache-0.0.2-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for small_cache-0.0.2-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 bf9d8acd6b6cab8d8afe7ef9a3b68aef3b0c24130c9d8920f797d1bb15b64e2e
MD5 7789e23c683a06ed7e367d7246040b44
BLAKE2b-256 fe64523fa6e14ad7d20b0583af9b5ae4da56e5d23be630a806ac135bb350de7e

See more details on using hashes here.

File details

Details for the file small_cache-0.0.2-cp314-cp314t-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for small_cache-0.0.2-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2aef49822faadc823b963053b1063998f3bc7c93c8b3c7e1e6de87b80f662a03
MD5 a75309d494ce310c2e680fa2cc01388a
BLAKE2b-256 3bebbcbe1a7cdb3360bef0be3d208c06ca9db5f03cfe5376f3643dfae5e06c47

See more details on using hashes here.

File details

Details for the file small_cache-0.0.2-cp312-abi3-win_amd64.whl.

File metadata

  • Download URL: small_cache-0.0.2-cp312-abi3-win_amd64.whl
  • Upload date:
  • Size: 597.5 kB
  • Tags: CPython 3.12+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for small_cache-0.0.2-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 cd7ea80970667f0002b44dcb8e1b9c48305bfeec244d184f9ab0331ebe5e0751
MD5 a9715c8785c67f42d8d5759fc7fd6471
BLAKE2b-256 a347b1b60aa44077156561daa019d0c3284fe2b2dc939777f76c88ea4967f305

See more details on using hashes here.

File details

Details for the file small_cache-0.0.2-cp312-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for small_cache-0.0.2-cp312-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e03fd4068bbdc58d42090232ad3d70943ff0ba8302d73ade7ef62ed7298a9484
MD5 5c3075fcc80605c9a827c2b954ba9be4
BLAKE2b-256 11b20370a37ca39146b0bb843e12c80e099a6e22f3fab896836b2c409bac55d2

See more details on using hashes here.

File details

Details for the file small_cache-0.0.2-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for small_cache-0.0.2-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1484d4bed9031c90c6c8aa40b60cfaee4bf0c1f6d3982f7130014e99958f2420
MD5 513495485a305c707042f25a5c0148d6
BLAKE2b-256 d791fa71fb3c9f84156ab08ab875c22b73d1a438a2ff2089d3d36fd371d27b18

See more details on using hashes here.

File details

Details for the file small_cache-0.0.2-cp312-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for small_cache-0.0.2-cp312-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4c85f096b4d4b4f55ab3eeb6ab01743decb335f3a871b47b0c060a20949dd3bd
MD5 77d345fd575beaee10f7e8cb3fbc6797
BLAKE2b-256 35f7c9de8b88808c7374d47252663dc033b6cc5a5b6a1605a50ee82e7e4db7f4

See more details on using hashes here.

File details

Details for the file small_cache-0.0.2-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for small_cache-0.0.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d04fda0efb48041af3dcd6f0a9d83909d5748afe0d72b3212c8d637c338ac0f9
MD5 b3e94c57343b4320e2ac6b6291b9efb2
BLAKE2b-256 34cd776f0d5496b378c73fa0d86b33f87c39f5ecb6c0d8418f71baf75bbeea62

See more details on using hashes here.

File details

Details for the file small_cache-0.0.2-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for small_cache-0.0.2-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 71cde73ced487aa110e32f92474f4028d413bfff273622d6a6ee2b830f57fce4
MD5 8960b9f3933b215190106415e8cebac1
BLAKE2b-256 e87ab4448f3c4ef01d48c0f88a3ce89a0450642394bc20c3b77c6153a84167c0

See more details on using hashes here.

File details

Details for the file small_cache-0.0.2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for small_cache-0.0.2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7c223713eac9bd52a47f6ccad414492af72ac3422dc72f41d19dd9f754b3e94c
MD5 d533c3ba669cc7bf23169092449e30e5
BLAKE2b-256 2c54a38bdbf772dde66e121251356a2d07ae7860a5ccb098b731f2b638045074

See more details on using hashes here.

File details

Details for the file small_cache-0.0.2-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for small_cache-0.0.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a055c44d646d24679936054282df9ce4fe8c17eb826f4bbcc25a54b1ef57b3ce
MD5 38d2df6ebefc1749b28c3b7fce4a0c46
BLAKE2b-256 5bb68b1feaacc04a9d03e0e86c3eae1f807c6ad3279048bd8875d084afe605bc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page