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.1.tar.gz (8.2 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.1-cp312-abi3-win_amd64.whl (563.7 kB view details)

Uploaded CPython 3.12+Windows x86-64

small_cache-0.0.1-cp312-abi3-musllinux_1_2_x86_64.whl (1.1 MB view details)

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

small_cache-0.0.1-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (661.1 kB view details)

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

small_cache-0.0.1-cp312-abi3-macosx_11_0_arm64.whl (638.6 kB view details)

Uploaded CPython 3.12+macOS 11.0+ ARM64

small_cache-0.0.1-cp311-cp311-win_amd64.whl (565.2 kB view details)

Uploaded CPython 3.11Windows x86-64

small_cache-0.0.1-cp311-cp311-musllinux_1_2_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

small_cache-0.0.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (663.3 kB view details)

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

small_cache-0.0.1-cp311-cp311-macosx_11_0_arm64.whl (640.2 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for small_cache-0.0.1.tar.gz
Algorithm Hash digest
SHA256 62c0b9a2c8083989d2d42dcccdcda066893a4daa4ebbe7c7f9583f2564daa4db
MD5 38ffc68966750371a544a67560a5e0fd
BLAKE2b-256 19f0fd3c346b56497f3f8d0b598e0ccbfeeee716e686a2f48ee41d4a78b31963

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for small_cache-0.0.1-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 76a8635c0231612b9edd6561d6ef793cefaef5300bf0ab58610a6876c2515c95
MD5 ed5027ecc4829668a1df9fa1ad2ce54b
BLAKE2b-256 f98fc971f16d54f238a41f7d8d8194fd1b09348e148542fa457b231d7fa0412e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for small_cache-0.0.1-cp312-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 0981f87c8647bc3e5d052989758a863dea27779c46c0507ea42c2e0203b6e90e
MD5 6c58722d22f6b2372364649df283c23c
BLAKE2b-256 709354799b157e7fc30d9190f6bda6e222fc40ede70d29e190a4ebfe5bd0e5e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for small_cache-0.0.1-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 51d6d61e9b9e675fe99ddb08a7978b672cd7210849112a44c56112ecea6ff89b
MD5 489772b2cb7e8daeb46815c5f8e3d237
BLAKE2b-256 1786e5b091874f5748d7b0cf2cb19ce675f72b5f9823ec91e8dcfdba5efb048d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for small_cache-0.0.1-cp312-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1ac07a01d2eb770066379cf95a015e5a8b8a73ae2fe73c5972673f6a1f9a7553
MD5 e151c9d49ab0ec2ad171ffe1b2e89aab
BLAKE2b-256 5982f657a4662f34124baece24e98f18a70daf5425b3ea19c26159ee5733d748

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for small_cache-0.0.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6db1acbce7bd327a6f9b636f2284cc25a89714242c71c330d8954ed1f605a4eb
MD5 d666f4543a2c6cc3d2fae5efbd0a1a65
BLAKE2b-256 866bc1ca772c62782f27f12e1a90552115140f6312e346879a65695d3b31304c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for small_cache-0.0.1-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 401c27249ec993f1a7d6dfb9adf0e0461d81195731c4eda17d5a2248393ee1b0
MD5 8cb094cc1e87a989f10d5371c68263b6
BLAKE2b-256 ea12d8e2af2879530876830e95149345f8ac5cbd68228dc9e0081f0e88e0e8d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for small_cache-0.0.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 27b8936489bd794e699c96570e09ef9cc0e6f90a45138b83e4458b63b431ea87
MD5 6b5cee583a9f60b479c4e784deec1428
BLAKE2b-256 6d49ab5988db41a8054bb56e3c638b28a753500e6d715ead9867f2dc70a8cd5f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for small_cache-0.0.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a6f30efd356529f663a80bbcb81146034890437324bb15bb99c131de359458ff
MD5 413e73c16bb16661ab109f35c7cdf5d1
BLAKE2b-256 fd7f3747f22cb9c67c6e2958f4dbb6f53d1159e2583606036ba1af950122235d

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