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.5.tar.gz (8.1 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.5-cp314-cp314t-win_amd64.whl (606.3 kB view details)

Uploaded CPython 3.14tWindows x86-64

small_cache-0.0.5-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.5-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (709.0 kB view details)

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

small_cache-0.0.5-cp314-cp314t-macosx_11_0_arm64.whl (678.9 kB view details)

Uploaded CPython 3.14tmacOS 11.0+ ARM64

small_cache-0.0.5-cp312-abi3-win_amd64.whl (604.6 kB view details)

Uploaded CPython 3.12+Windows x86-64

small_cache-0.0.5-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.5-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (705.5 kB view details)

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

small_cache-0.0.5-cp312-abi3-macosx_11_0_arm64.whl (676.3 kB view details)

Uploaded CPython 3.12+macOS 11.0+ ARM64

small_cache-0.0.5-cp311-cp311-win_amd64.whl (606.4 kB view details)

Uploaded CPython 3.11Windows x86-64

small_cache-0.0.5-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.5-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (707.9 kB view details)

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

small_cache-0.0.5-cp311-cp311-macosx_11_0_arm64.whl (678.4 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: small_cache-0.0.5.tar.gz
  • Upload date:
  • Size: 8.1 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.5.tar.gz
Algorithm Hash digest
SHA256 61804cfc33e6980db2bbb1638226610a701463befe9268255611080c5231415f
MD5 d2ad0aeaacc28a2d3d205b56e6ae1fce
BLAKE2b-256 cb35195d5bd22434f14e5aa56d97463450bbe2600ca59fcb53ad693c74d99707

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for small_cache-0.0.5-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 981d116f63c461efc432b380f3b2070f618cf73829056f9408d21128a8840bad
MD5 92c62fecaed4d3a2452ca7bf91178159
BLAKE2b-256 1dbc7f91429ff8e9bb77426a8c9afd7ddf16e388cad5be34c0da028017c63817

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for small_cache-0.0.5-cp314-cp314t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 fc4aada272c30e7f538521c53d16a276833fe29259c10c7e57c1c302ea8503f5
MD5 193c2676d89b5929ab76152d98fd7b8f
BLAKE2b-256 e2acb089b733e9f17942548e1f13dfd9aaa098b5503bc20b2a83d039420a59b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for small_cache-0.0.5-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6a68dd902b6fdf7a519306d1b07bde0155bbb805d49e399914a0bb4d8ed9d5ea
MD5 d2a07872a3b920e31a10baa996c8a7df
BLAKE2b-256 d837046297b1443d370f9c3f125a631a362ebc0044dc7e56939b198a8b5eb011

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for small_cache-0.0.5-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 377f81590bd4a3af16a468b0cdb8f4ec81769dcb4336c76528fa9a93dc36d3d9
MD5 fcae7f41609dff748902b0919c1f29aa
BLAKE2b-256 fd82aa7fe7fa0bea8e8d74d16ac7eea54b93d2dc444aeb725e485cd72c84afee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: small_cache-0.0.5-cp312-abi3-win_amd64.whl
  • Upload date:
  • Size: 604.6 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.5-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 ad77b86cc4e744973633dd5a7f0144845259f41f9992e23ab6cc3c62419d3af0
MD5 375eadff6aec77ac9eaf8ec651477f62
BLAKE2b-256 bab73aa653a97c6812926c4d4b7ca2ceb6b59d118feca72df2c8be3de497f507

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for small_cache-0.0.5-cp312-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 5e6a185a5fdbe1d2597efcc244286d7968f1fef20eb13698481b93b987c98b54
MD5 372cc719ed707167ce45625b6004a2a8
BLAKE2b-256 ca29250772753f0ce15edcbfb225db48a3e73bf1b4d8a7e16b38256372ceb710

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for small_cache-0.0.5-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ec220d8487a52fc9aa8be6d628811a17d8233056434e46b3ffd8a4fc5b314018
MD5 104d009d16d991327c55600c25aec2c3
BLAKE2b-256 6b95ce91501fb0b6c2788afd4f424676014558c5c7387e8d0aa6e79b97d80ca4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for small_cache-0.0.5-cp312-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7d3ec0eb6022ec4d6df215b432620f42c857aed4b4ff117086c2a0481777141f
MD5 a32d2f6965b5060fa3ddd8ad7843c374
BLAKE2b-256 db193af15c6a8241b4da039c399eac022766ab427ce50bf71c02aa77a9c665e4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for small_cache-0.0.5-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 737208a367e373b0e0158e12712718b57753c1269662b1b06f684f9fc9fe7504
MD5 7bfa4097736c82f3c4d711d420134ea9
BLAKE2b-256 9cdf952e2c0eb19fb736a08cf31c2db9220e1d386be2fe4ccb4ef2a60ef76c7e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for small_cache-0.0.5-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 9557309613e11c3cd372727a01892cc0e410a4d51f1624164edf08c6b1418265
MD5 344575f4a0205a8a77a0b92ff5af400f
BLAKE2b-256 a0c800b1c72032250337c662a1df52f4ceb50025b0a50a5e2bcf6f455b7adfd5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for small_cache-0.0.5-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a90a8c1442323c81351beffaa51aafbaf617e2201b2f2506b1284accf210ea78
MD5 f5850a07820424cdc5351c4bd1b55169
BLAKE2b-256 b9b992228dc1adf6843b73b93d9cab885a2e21782836dcfedc970d2b4a7a2d38

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for small_cache-0.0.5-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 171c705b6942738d9e23aace1ac0cafaf778a9a9a98d0771d9c2ccccae44222f
MD5 53f64b5f11d37e08a1f51c7653e44b86
BLAKE2b-256 1a9813ca0ff1cc465e66b2419be4e0b0189449cd78f1d5360247826a0dca1b82

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