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.4.tar.gz (8.5 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.4-cp314-cp314t-win_amd64.whl (615.3 kB view details)

Uploaded CPython 3.14tWindows x86-64

small_cache-0.0.4-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.4-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (715.9 kB view details)

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

small_cache-0.0.4-cp314-cp314t-macosx_11_0_arm64.whl (687.8 kB view details)

Uploaded CPython 3.14tmacOS 11.0+ ARM64

small_cache-0.0.4-cp312-abi3-win_amd64.whl (614.2 kB view details)

Uploaded CPython 3.12+Windows x86-64

small_cache-0.0.4-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.4-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (712.2 kB view details)

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

small_cache-0.0.4-cp312-abi3-macosx_11_0_arm64.whl (685.3 kB view details)

Uploaded CPython 3.12+macOS 11.0+ ARM64

small_cache-0.0.4-cp311-cp311-win_amd64.whl (615.7 kB view details)

Uploaded CPython 3.11Windows x86-64

small_cache-0.0.4-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.4-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (714.6 kB view details)

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

small_cache-0.0.4-cp311-cp311-macosx_11_0_arm64.whl (687.2 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: small_cache-0.0.4.tar.gz
  • Upload date:
  • Size: 8.5 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.4.tar.gz
Algorithm Hash digest
SHA256 128a91db39a9b1d2ba29a05bf2ea73142d02614c5ce10f9b5d093d2ff13a4fbd
MD5 9fa2392c35574db8f807d093a5d71ff2
BLAKE2b-256 b453abef17a89e2e12943f861a818029d7e8d982bc9d60c866c5b5c5997a3c32

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for small_cache-0.0.4-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 df11f869dae67aa0075376ade84ce30aa01fee4236071aaa659e96f596d3eac3
MD5 9045d8ab7857774d20945313d253974c
BLAKE2b-256 7489688ae89cccd3ffde9b9e249dca573c40635474f359ea39f8ab608b6db0c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for small_cache-0.0.4-cp314-cp314t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 02a0d98c5f811f37f94e77c2c7d763956c26f796ec5422d64ae69987195e85c4
MD5 0706755f18f97da1f00dbab5f00d576e
BLAKE2b-256 fcee4a4cf4efb988e0ac8ec5d46ca6a90c4577942ba9cfa6b453c9ac0a52312d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for small_cache-0.0.4-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2ff2ec3e8c272487439eef828362d05f9498443a08e906a7e37ce8a7e5dcbc11
MD5 1b4dce55091f6e32cecde969f26594f6
BLAKE2b-256 b4824c25e4fda5e538310e8de65bfa4e3599db8f730f49f6e00b8bf4528a1813

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for small_cache-0.0.4-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 136c77394f6a534c0629411495b47675a5f5895f5b813e8badbec8df56246b66
MD5 f967fd04cbda36d66b2b3f8fb2e89fc8
BLAKE2b-256 0b46c10de93c5520aa99d85dee396eb951234073cf953c45e54c763d8e769537

See more details on using hashes here.

File details

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

File metadata

  • Download URL: small_cache-0.0.4-cp312-abi3-win_amd64.whl
  • Upload date:
  • Size: 614.2 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.4-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 3d013e5f07c536663a8c36c57f3519e84844466766b19bd99fe04bb83a14fa34
MD5 5b6f2b6121c8209ac0e798e2d29daba4
BLAKE2b-256 98129831764a4bf469e44fc907e0da5efa14ccc07f5d1497d460ddc99c043d57

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for small_cache-0.0.4-cp312-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e09f7d43460daeeb23051fc16faaf28eb7ac5d1ac52626addf2c0c02fe3a3c65
MD5 9a3e30bae6882f722e470457c6b0dd3a
BLAKE2b-256 56132043c388ca9a55ef55b3db9c4e585811de434e6f7fd17cb4ae12ab0fb55e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for small_cache-0.0.4-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 52fb2884a8477a1179106ede86f2b9176ef12299a8408c04a0453d2541602ce3
MD5 491e983955aac776299895e4f702fe99
BLAKE2b-256 3b0b37344aec9f647d17b799da5404fac385949c8044fc63ed886574ba391b3f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for small_cache-0.0.4-cp312-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e6ba1859562fa15f0fe7bfed34f19f86c8969894054a4babee116a109d6f6531
MD5 8924c1d112a5c7cb04211e3ea5fbc0bd
BLAKE2b-256 296804e6d49c26f1ef781d2917272faca328a047e003053d6665877305d6f117

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for small_cache-0.0.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d72df48e4e2c3a0dd2743dbc302da8f5d9684358d23ffe239d201a2fad36476f
MD5 9e248b58b92c4ee39a49c2b5925396dd
BLAKE2b-256 9d4e647fc613c6eb67b450b7085bdf9d51254689949d2effeab804552e7bff7f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for small_cache-0.0.4-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 aa078c0eef4ea688f4a563eeac9cb18971efe29d2b9b57a9329d6a547dce4369
MD5 7dac401da4c4dbf77a370858e4dcdd8e
BLAKE2b-256 f319d0b65d5028ebaaab877246221012987aac96d647dd9435142c567ff780a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for small_cache-0.0.4-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a537f5bef509795346f655f98769200bd6f93529c56760aed88c8b124625b99a
MD5 a8a029100770dad49c48c902bb528679
BLAKE2b-256 3e0e7fafbbda8b159471d70b26401af0a57e61e8a512adadc863435e021a57b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for small_cache-0.0.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 612f22dbcdcc6b86056f1dcf48457de2bb9682c05958731bf4c3e3c52e3c820d
MD5 98b05ce3a669b19e86f0cb62b6b91c43
BLAKE2b-256 09cf483e8cc611322c1cfa1f096dfeaa30411b4088a8643333f9e0d1d10c6f19

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