python-cachebox
Port variant v13
Summary Memoizing and caching library (3.13)
Package version 5.2.3
Homepage https://github.com/awolverp/cachebox
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants v14
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 16 MAY 2026, 11:47:46 UTC
Port created 16 MAY 2026, 11:47:46 UTC
Subpackage Descriptions
single
# Cachebox *The fastest caching Python library written in Rust* [**Releases**] | [**Benchmarks**] | [**Issues**] [License] [Release] [Python Versions] [Downloads]
------- ### What does it do? You can easily perform powerful caching operations in Python as fast as possible. This can make your application a lot faster and it can be a good choice in complex applications. **Ideal for optimizing large-scale applications** with efficient, low-overhead caching. **Key Features:** - ๐Ÿš€ Extremely fast (10-50x faster than other caching libraries -- [*benchmarks*]) - ๐Ÿ“Š Minimal memory footprint (50% of standard dictionary memory usage) - ๐Ÿ”ฅ Full-featured and user-friendly - ๐Ÿงถ Completely thread-safe - ๐Ÿ”ง Tested and correct - **\[R\]** written in Rust for maximum performance - ๐Ÿค Compatible with Python 3.9+ (PyPy and CPython) - ๐Ÿ“ฆ Supports 7 advanced caching algorithms ### Page Contents - โ“ [**When do I need caching and `cachebox`?**] - ๐ŸŒŸ [**Why `cachebox`?**] - ๐Ÿ”ง [**Installation**] - ๐Ÿ’ก [**Preview**] - ๐ŸŽ“ [**Getting started**] - โœ๏ธ [**Incompatible changes**] - ๐Ÿ“Œ [**Tips & Notes**] ### When do I need caching and `cachebox`? - ๐Ÿ“ˆ **Frequent Data Access** \ If you need to access the same data multiple times, caching can help reduce the number of database queries or API calls, improving performance. - ๐Ÿ’Ž **Expensive Operations** \ If you have operations that are computationally expensive, caching can help reduce the number of times these operations need to be performed. - ๐Ÿš— **High Traffic Scenarios** \ If your application handles high traffic, caching can help reduce the load on your server by reducing the number of requests that need to be processed. - #๏ธโƒฃ **Web Page Rendering** \ If you are rendering web pages, caching can help reduce the time it takes to generate the page by caching the results of expensive rendering operations. Caching HTML pages can speed up the delivery of static content. - ๐Ÿšง **Rate Limiting** \ If you have a rate limiting system in place, caching can help reduce the number of requests that need to be processed by the rate limiter. Also, caching can help you to manage rate limits imposed by third-party APIs by reducing the number of requests sent. - ๐Ÿค– **Machine Learning Models** \ If your application frequently makes predictions using the same input data, caching the results can save computation time. ### Why `cachebox`? - **โšก Rust** \ It uses the *Rust* language for high-performance. - **๐Ÿงฎ SwissTable** \ It uses Google's high-performance SwissTable hash map. Credit to [hashbrown]. - **โœจ Low memory usage** \ It has very low memory usage. - **โญ Zero Dependency** \ As we said, `cachebox` is written in Rust so you don't have to install any other dependecies. - **๐Ÿงถ Thread safe** \ It's completely thread-safe and uses locks to prevent problems. - **๐Ÿ‘Œ Easy To Use** \ You only need to import it and choose a cache implementation to use. It will behave like a dictionary. - **๐Ÿšซ Avoids Cache Stampede** \ It avoids [cache stampede] by using a distributed lock system.
Configuration Switches (platform-specific settings discarded)
PY313 ON Build using Python 3.13 PY314 OFF Build using Python 3.14
Package Dependencies by Type
Build (only) python-maturin:single:v13
rust:single:std
python313:dev:std
python-pip:single:v13
python-setuptools:single:v13
python-wheel:single:v13
python-build:single:v13
python-installer:single:v13
autoselect-python:single:std
Build and Runtime python313:primary:std
Runtime (only) ravensys-gcc:libs:std (single subpackage)
Download groups
main mirror://PYPI/c/cachebox
cr01 mirror://CRATES/autocfg:1.4.0
cr02 mirror://CRATES/bitflags:2.9.0
cr03 mirror://CRATES/cc:1.2.40
cr04 mirror://CRATES/cfg-if:1.0.3
cr05 mirror://CRATES/fastrand:2.3.0
cr06 mirror://CRATES/find-msvc-tools:0.1.4
cr07 mirror://CRATES/hashbrown:0.14.5
cr08 mirror://CRATES/heck:0.5.0
cr09 mirror://CRATES/indoc:2.0.6
cr10 mirror://CRATES/libc:0.2.171
cr11 mirror://CRATES/libmimalloc-sys:0.1.44
cr12 mirror://CRATES/lock_api:0.4.14
cr13 mirror://CRATES/memoffset:0.9.1
cr14 mirror://CRATES/mimalloc:0.1.48
cr15 mirror://CRATES/once_cell:1.21.3
cr16 mirror://CRATES/parking_lot:0.12.5
cr17 mirror://CRATES/parking_lot_core:0.9.12
cr18 mirror://CRATES/portable-atomic:1.11.0
cr19 mirror://CRATES/proc-macro2:1.0.94
cr20 mirror://CRATES/pyo3:0.27.1
cr21 mirror://CRATES/pyo3-build-config:0.27.1
cr22 mirror://CRATES/pyo3-ffi:0.27.1
cr23 mirror://CRATES/pyo3-macros:0.27.1
cr24 mirror://CRATES/pyo3-macros-backend:0.27.1
cr25 mirror://CRATES/python3-dll-a:0.2.14
cr26 mirror://CRATES/quote:1.0.40
cr27 mirror://CRATES/redox_syscall:0.5.10
cr28 mirror://CRATES/scopeguard:1.2.0
cr29 mirror://CRATES/shlex:1.3.0
cr30 mirror://CRATES/smallvec:1.14.0
cr31 mirror://CRATES/syn:2.0.100
cr32 mirror://CRATES/target-lexicon:0.13.2
cr33 mirror://CRATES/unicode-ident:1.0.18
cr34 mirror://CRATES/unindent:0.2.4
cr35 mirror://CRATES/windows-link:0.2.0
Distribution File Information
b1f68246685aa739bbbd2734befb1465363a1e1042407c154feadb065f17a099 63686 rust/crates/cachebox-5.2.3.tar.gz ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26 17712 rust/crates/autocfg-1.4.0.tar.gz 5c8214115b7bf84099f1309324e63141d4c5d7cc26862f97a0a857dbefe165bd 47654 rust/crates/bitflags-2.9.0.tar.gz e1d05d92f4b1fd76aad469d46cdd858ca761576082cd37df81416691e50199fb 91094 rust/crates/cc-1.2.40.tar.gz 2fd1289c04a9ea8cb22300a459a72a385d7c73d3259e2ed7dcb2af674838cfa9 8719 rust/crates/cfg-if-1.0.3.tar.gz 37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be 15076 rust/crates/fastrand-2.3.0.tar.gz 52051878f80a721bb68ebfbc930e07b65ba72f2da88968ea5c06fd6ca3d3a127 30817 rust/crates/find-msvc-tools-0.1.4.tar.gz e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1 141498 rust/crates/hashbrown-0.14.5.tar.gz 2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea 11517 rust/crates/heck-0.5.0.tar.gz f4c7245a08504955605670dbf141fceab975f15ca21570696aebe9d2e71576bd 17164 rust/crates/indoc-2.0.6.tar.gz c19937216e9d3aa9956d9bb8dfc0b0c8beb6058fc4f7a4dc4d850edf86a237d6 785246 rust/crates/libc-0.2.171.tar.gz 667f4fec20f29dfc6bc7357c582d91796c169ad7e2fce709468aefeb2c099870 451625 rust/crates/libmimalloc-sys-0.1.44.tar.gz 224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965 29249 rust/crates/lock_api-0.4.14.tar.gz 488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a 9032 rust/crates/memoffset-0.9.1.tar.gz e1ee66a4b64c74f4ef288bcbb9192ad9c3feaad75193129ac8509af543894fd8 4742 rust/crates/mimalloc-0.1.48.tar.gz 42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d 34534 rust/crates/once_cell-1.21.3.tar.gz 93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a 46735 rust/crates/parking_lot-0.12.5.tar.gz 2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1 34110 rust/crates/parking_lot_core-0.9.12.tar.gz 350e9b48cbc6b0e028b0473b114454c6316e57336ee184ceab6e53f72c178b3e 181258 rust/crates/portable-atomic-1.11.0.tar.gz a31971752e70b8b2686d7e46ec17fb38dad4051d94024c88df49b667caea9c84 52391 rust/crates/proc-macro2-1.0.94.tar.gz 37a6df7eab65fc7bee654a421404947e10a0f7085b6951bf2ea395f4659fb0cf 1172212 rust/crates/pyo3-0.27.1.tar.gz f77d387774f6f6eec64a004eac0ed525aab7fa1966d94b42f743797b3e395afb 35565 rust/crates/pyo3-build-config-0.27.1.tar.gz 2dd13844a4242793e02df3e2ec093f540d948299a6a77ea9ce7afd8623f542be 78517 rust/crates/pyo3-ffi-0.27.1.tar.gz eaf8f9f1108270b90d3676b8679586385430e5c0bb78bb5f043f95499c821a71 8918 rust/crates/pyo3-macros-0.27.1.tar.gz 70a3b2274450ba5288bc9b8c1b69ff569d1d61189d4bff38f8d22e03d17f932b 82521 rust/crates/pyo3-macros-backend-0.27.1.tar.gz d381ef313ae70b4da5f95f8a4de773c6aa5cd28f73adec4b4a31df70b66780d8 103489 rust/crates/python3-dll-a-0.2.14.tar.gz 1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d 31063 rust/crates/quote-1.0.40.tar.gz 0b8c0c260b63a8219631167be35e6a988e9554dbd323f8bd08439c8ed1302bd1 30226 rust/crates/redox_syscall-0.5.10.tar.gz 94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49 11619 rust/crates/scopeguard-1.2.0.tar.gz 0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64 18713 rust/crates/shlex-1.3.0.tar.gz 7fcf8323ef1faaee30a44a340193b1ac6814fd9b7b4e88e9d4519a3e4abe1cfd 35561 rust/crates/smallvec-1.14.0.tar.gz b09a44accad81e1ba1cd74a32461ba89dee89095ba17b32f5d03683b1b1fc2a0 297947 rust/crates/syn-2.0.100.tar.gz e502f78cdbb8ba4718f566c418c52bc729126ffd16baee5baa718cf25dd5a69a 27923 rust/crates/target-lexicon-0.13.2.tar.gz 5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512 47743 rust/crates/unicode-ident-1.0.18.tar.gz 7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3 7422 rust/crates/unindent-0.2.4.tar.gz 45e46c0661abb7180e7b9c281db115305d49ca1709ab8242adf09666d2173c65 6170 rust/crates/windows-link-0.2.0.tar.gz
Ports that require python-cachebox:v13
python-deepdiff:v13 Deep difference and search of any object (3.13)