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.3.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.3-cp314-cp314t-win_amd64.whl (616.6 kB view details)

Uploaded CPython 3.14tWindows x86-64

small_cache-0.0.3-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.3-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (717.0 kB view details)

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

small_cache-0.0.3-cp314-cp314t-macosx_11_0_arm64.whl (688.5 kB view details)

Uploaded CPython 3.14tmacOS 11.0+ ARM64

small_cache-0.0.3-cp312-abi3-win_amd64.whl (615.4 kB view details)

Uploaded CPython 3.12+Windows x86-64

small_cache-0.0.3-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.3-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (713.5 kB view details)

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

small_cache-0.0.3-cp312-abi3-macosx_11_0_arm64.whl (686.3 kB view details)

Uploaded CPython 3.12+macOS 11.0+ ARM64

small_cache-0.0.3-cp311-cp311-win_amd64.whl (617.1 kB view details)

Uploaded CPython 3.11Windows x86-64

small_cache-0.0.3-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.3-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (716.0 kB view details)

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

small_cache-0.0.3-cp311-cp311-macosx_11_0_arm64.whl (688.2 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: small_cache-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 4fee7d905f8ce74a8f73d3888080b823f027daa726bbe76d426981aab24bff14
MD5 e2770edb816ef77738847e7a438b224e
BLAKE2b-256 9ce6879c3136c0f428a25a021118d9f4e71782c859a7c18e4f0a066cae23d22c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for small_cache-0.0.3-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 686df9fc1f89b3ec5140d2b0ec4289fb1fe58a7fc1f83cdc133beb3ea177d6e3
MD5 bfedb4243b61c8856dd1f7a9e0778879
BLAKE2b-256 d16ce45b5ae307c1141fe36ce75d9b97b7a4cca1af214bce11edd2277db04f56

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for small_cache-0.0.3-cp314-cp314t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 7b627fd0163154e8eb0fc7e3f64773363a1d29b30f3567da63fba22e51cfc720
MD5 3e6ce9f6b4cb533ab000e7f078331171
BLAKE2b-256 6aee89a2affb8967289cd5c8b5378f54a15b631dc754976e83cf856d41783d88

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for small_cache-0.0.3-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 31dfb8b1420241a836403d22cb5f70e369532dace3a0fd073ee7e6d31b2ea538
MD5 a154054f595456eb82882fd2185c1d8b
BLAKE2b-256 4f04ce063e0737b213e23b56aaae572eed0edd656d84d5eac65ec7eeca21f1a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for small_cache-0.0.3-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b3711eb5f1beb746c9a21b6626aad2a2f820b2db1508683b0f48922d1c8965e3
MD5 47af7f465155a447f12d5999d3ea73e1
BLAKE2b-256 98a1a23a4465c0b5812c82a460f9244f0b9b66f727fcf849a691dac7cf496688

See more details on using hashes here.

File details

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

File metadata

  • Download URL: small_cache-0.0.3-cp312-abi3-win_amd64.whl
  • Upload date:
  • Size: 615.4 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.3-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 fce79445041004f054fe2e506e60eda974cd28c5b5cefa62f4d2f5e8694d2333
MD5 de40df7c9cf745e391bea21ddd3acd9d
BLAKE2b-256 357d30c539a84d5b1b7afb9e4a5b435f6418de27b66a91bd4637a1db5e118d7e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for small_cache-0.0.3-cp312-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 98b3026fb70c57f89a73ca38200dc4f263074514c1b97e932c302456887c9b82
MD5 f5de2a69625773be5738ad99ad30a120
BLAKE2b-256 dc9111281114e5231efb02ffc9110fe7e13507ac0216cc98209f46d01d246111

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for small_cache-0.0.3-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f68541a1974b96a61f18e3eab5adf18fd9a8ae36abd1c4e39529a10c04fcbf45
MD5 26a87ba04aa01a9a2cf7595d32836976
BLAKE2b-256 6441af7391c7c0e639f3cdc346d17ad8d7ebba5d11b388d613a785ace78323d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for small_cache-0.0.3-cp312-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d9346528ef3928052635e783129422d26194aece023fa3b708083f50f9b519d3
MD5 06f44045fa611a3f0560ed8651ba295e
BLAKE2b-256 ef1706bab2474685994b8911a57f785e638608aa8836754d15f82603c91fbccb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for small_cache-0.0.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 81a381ccfb3f9f7489c1abce9535b31fd98f371532775f1ba8914077b83222b1
MD5 7f44caaac4fae8d35630363d9b34e91f
BLAKE2b-256 e66318aca224ab2ae21c6f3d3c9848938c3799598743a2d4687a141e4be6d0b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for small_cache-0.0.3-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 5320fd6ce9d9667695dc1ae92339a4d03c750e59b48d57083c141f0a61db85ba
MD5 471b73291c38c1fde73a9ed34fff0c66
BLAKE2b-256 d163dd29ce38b9a43af31429a7846bcc7cf2a27d86f09ee68e25e751db857424

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for small_cache-0.0.3-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 efe166a459cc46cff83c69d9f71abeafa6d82438d4d60061ba2a32e0085bdf9e
MD5 508a71e3d2ba79ad6dfa611bd2124a61
BLAKE2b-256 6f156cf995092bbd6bd2699edee970f65d2c4f40c2288cb49fc38ba45be4476e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for small_cache-0.0.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cb25f9628f0a90f0b1b52ea47139a7f246eb11efa566a9c0dd94370d74b61eb7
MD5 80c6d17527d4f47415bc01aa4015e323
BLAKE2b-256 9598edc4cf601c3ca64fda0c98b30aecc598dbcf7b8cdc7c64b22174a7bbf75d

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