Name | lrucache-rs JSON |
Version |
1.4.0
JSON |
| download |
home_page | None |
Summary | Dict-like LRUCache in Rust for Python |
upload_time | 2024-12-21 22:18:37 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.9 |
license | None |
keywords |
cache
caching
lru
lrucache
mapping
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# lrucache-rs
[![PyPI - Python Version](https://shields.monicz.dev/pypi/pyversions/lrucache-rs)](https://pypi.org/project/lrucache-rs)
[![Liberapay Patrons](https://shields.monicz.dev/liberapay/patrons/Zaczero?logo=liberapay&label=Patrons)](https://liberapay.com/Zaczero/)
[![GitHub Sponsors](https://shields.monicz.dev/github/sponsors/Zaczero?logo=github&label=Sponsors&color=%23db61a2)](https://github.com/sponsors/Zaczero)
An efficient LRU cache written in Rust with Python bindings. Unlike other LRU cache implementations, this one behaves like a Python dictionary and does not wrap around a function.
## Installation
Pre-built binary wheels are available for Linux, macOS, and Windows, with support for both x64 and ARM architectures.
```sh
pip install lrucache-rs
```
## Basic usage
```py
from lrucache_rs import LRUCache
cache: LRUCache[str, int] = LRUCache(maxsize=2)
cache['1'] = 1
cache['2'] = 2
cache['3'] = 3
assert cache.get('1') is None
assert cache.get('2') == 2
assert cache.get('3') == 3
```
Raw data
{
"_id": null,
"home_page": null,
"name": "lrucache-rs",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "cache, caching, lru, lrucache, mapping",
"author": null,
"author_email": "Kamil Monicz <kamil@monicz.dev>",
"download_url": "https://files.pythonhosted.org/packages/e6/8e/a7dbfb51b7dbe82456c0e1b12c399bf2580c6e47af7a2ff8480e4f69ef2a/lrucache_rs-1.4.0.tar.gz",
"platform": null,
"description": "# lrucache-rs\n\n[![PyPI - Python Version](https://shields.monicz.dev/pypi/pyversions/lrucache-rs)](https://pypi.org/project/lrucache-rs)\n[![Liberapay Patrons](https://shields.monicz.dev/liberapay/patrons/Zaczero?logo=liberapay&label=Patrons)](https://liberapay.com/Zaczero/)\n[![GitHub Sponsors](https://shields.monicz.dev/github/sponsors/Zaczero?logo=github&label=Sponsors&color=%23db61a2)](https://github.com/sponsors/Zaczero)\n\nAn efficient LRU cache written in Rust with Python bindings. Unlike other LRU cache implementations, this one behaves like a Python dictionary and does not wrap around a function.\n\n## Installation\n\nPre-built binary wheels are available for Linux, macOS, and Windows, with support for both x64 and ARM architectures.\n\n```sh\npip install lrucache-rs\n```\n\n## Basic usage\n\n```py\nfrom lrucache_rs import LRUCache\n\ncache: LRUCache[str, int] = LRUCache(maxsize=2)\ncache['1'] = 1\ncache['2'] = 2\ncache['3'] = 3\nassert cache.get('1') is None\nassert cache.get('2') == 2\nassert cache.get('3') == 3\n```\n\n",
"bugtrack_url": null,
"license": null,
"summary": "Dict-like LRUCache in Rust for Python",
"version": "1.4.0",
"project_urls": {
"Issues": "https://github.com/Zaczero/lrucache-rs/issues",
"Repository": "https://github.com/Zaczero/lrucache-rs"
},
"split_keywords": [
"cache",
" caching",
" lru",
" lrucache",
" mapping"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "23ef6cefef6ac876b8f5a5c6542cb2f45daee91d0c25756f2f21e5013b3825d6",
"md5": "5970f7cef522eb179ee73885f88be208",
"sha256": "10c212e664ad56eeedc3d95d72fc21e9f20ede02f2af0a54f06a65d7209b84c6"
},
"downloads": -1,
"filename": "lrucache_rs-1.4.0-cp39-abi3-macosx_10_12_x86_64.whl",
"has_sig": false,
"md5_digest": "5970f7cef522eb179ee73885f88be208",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 245638,
"upload_time": "2024-12-21T22:18:23",
"upload_time_iso_8601": "2024-12-21T22:18:23.346719Z",
"url": "https://files.pythonhosted.org/packages/23/ef/6cefef6ac876b8f5a5c6542cb2f45daee91d0c25756f2f21e5013b3825d6/lrucache_rs-1.4.0-cp39-abi3-macosx_10_12_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "5b6696753a181f5c6ad0a41506f4b90c9dbccd946cc92748e223590f5d15f6aa",
"md5": "e661a82f6354f9c75d6b8e1ffda10d08",
"sha256": "2ab969387591d8e652823d38aad37a9a152feafde8fe9f61856c4fa919c48392"
},
"downloads": -1,
"filename": "lrucache_rs-1.4.0-cp39-abi3-macosx_11_0_arm64.whl",
"has_sig": false,
"md5_digest": "e661a82f6354f9c75d6b8e1ffda10d08",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 238329,
"upload_time": "2024-12-21T22:18:24",
"upload_time_iso_8601": "2024-12-21T22:18:24.799888Z",
"url": "https://files.pythonhosted.org/packages/5b/66/96753a181f5c6ad0a41506f4b90c9dbccd946cc92748e223590f5d15f6aa/lrucache_rs-1.4.0-cp39-abi3-macosx_11_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "2847176a16b93237efa1bfd050590ffa5dd1b6f218c748a12ba11ef760b144e4",
"md5": "8fb55be84338d9b94be34737ad7a29ca",
"sha256": "5e23611dfe533419cd1112102b57fcd8ff5420d9f091eebe3bd3d26c4f2bf840"
},
"downloads": -1,
"filename": "lrucache_rs-1.4.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
"has_sig": false,
"md5_digest": "8fb55be84338d9b94be34737ad7a29ca",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 238083,
"upload_time": "2024-12-21T22:18:26",
"upload_time_iso_8601": "2024-12-21T22:18:26.214743Z",
"url": "https://files.pythonhosted.org/packages/28/47/176a16b93237efa1bfd050590ffa5dd1b6f218c748a12ba11ef760b144e4/lrucache_rs-1.4.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c1fb0caa0be1d68115f31ae3848919891683e7c3eb992d9c3edd6ca0752d8a35",
"md5": "8daf7857a0d59fa6dcb33bff887cb3b3",
"sha256": "de81fad1260e51ebe92835771c005f1898ad04ddd91102f84d38ca3594064dd6"
},
"downloads": -1,
"filename": "lrucache_rs-1.4.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "8daf7857a0d59fa6dcb33bff887cb3b3",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 249567,
"upload_time": "2024-12-21T22:18:28",
"upload_time_iso_8601": "2024-12-21T22:18:28.116501Z",
"url": "https://files.pythonhosted.org/packages/c1/fb/0caa0be1d68115f31ae3848919891683e7c3eb992d9c3edd6ca0752d8a35/lrucache_rs-1.4.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "642835303d152d10f4ca12bbb55b0a8651cae62b4f7d286c13cc3d8a738ac408",
"md5": "175349b6df3cae002b219a5efe380cdd",
"sha256": "0311f6ceb1354f1f6fbb8b3ad4cd61d870e920f1463da7f44995538659af6944"
},
"downloads": -1,
"filename": "lrucache_rs-1.4.0-cp39-abi3-musllinux_1_2_aarch64.whl",
"has_sig": false,
"md5_digest": "175349b6df3cae002b219a5efe380cdd",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 450531,
"upload_time": "2024-12-21T22:18:30",
"upload_time_iso_8601": "2024-12-21T22:18:30.842562Z",
"url": "https://files.pythonhosted.org/packages/64/28/35303d152d10f4ca12bbb55b0a8651cae62b4f7d286c13cc3d8a738ac408/lrucache_rs-1.4.0-cp39-abi3-musllinux_1_2_aarch64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "46ab12014caeee810ae2546379bd2b46b746cf85f19431cdec37de2d89c62e1f",
"md5": "c12e2ceb39ceca113d6429cb8cf2e047",
"sha256": "1f885cc0865d34338ba96fce466ca1dab0a1b10897faf96adc53871752a1fa7a"
},
"downloads": -1,
"filename": "lrucache_rs-1.4.0-cp39-abi3-musllinux_1_2_x86_64.whl",
"has_sig": false,
"md5_digest": "c12e2ceb39ceca113d6429cb8cf2e047",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 444529,
"upload_time": "2024-12-21T22:18:33",
"upload_time_iso_8601": "2024-12-21T22:18:33.666846Z",
"url": "https://files.pythonhosted.org/packages/46/ab/12014caeee810ae2546379bd2b46b746cf85f19431cdec37de2d89c62e1f/lrucache_rs-1.4.0-cp39-abi3-musllinux_1_2_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c8077c0e96378f338a1e1d29e9906b5cf03360c4e9f100df68b26472fedc39ad",
"md5": "ab7cf777280683eb210857e5ab2bc7e9",
"sha256": "8ad1b5c13397aa5477b49cd84fb0138829ba45f83c10211e9ddc0230e398776c"
},
"downloads": -1,
"filename": "lrucache_rs-1.4.0-cp39-abi3-win_amd64.whl",
"has_sig": false,
"md5_digest": "ab7cf777280683eb210857e5ab2bc7e9",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 139082,
"upload_time": "2024-12-21T22:18:36",
"upload_time_iso_8601": "2024-12-21T22:18:36.296270Z",
"url": "https://files.pythonhosted.org/packages/c8/07/7c0e96378f338a1e1d29e9906b5cf03360c4e9f100df68b26472fedc39ad/lrucache_rs-1.4.0-cp39-abi3-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e68ea7dbfb51b7dbe82456c0e1b12c399bf2580c6e47af7a2ff8480e4f69ef2a",
"md5": "102fe78d220a5fad0f316003659a8c2d",
"sha256": "573d73fc20fa97222ea817e24c796f3e96bd9513dfcf3f83f8125d4190668d54"
},
"downloads": -1,
"filename": "lrucache_rs-1.4.0.tar.gz",
"has_sig": false,
"md5_digest": "102fe78d220a5fad0f316003659a8c2d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 16853,
"upload_time": "2024-12-21T22:18:37",
"upload_time_iso_8601": "2024-12-21T22:18:37.593683Z",
"url": "https://files.pythonhosted.org/packages/e6/8e/a7dbfb51b7dbe82456c0e1b12c399bf2580c6e47af7a2ff8480e4f69ef2a/lrucache_rs-1.4.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-21 22:18:37",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Zaczero",
"github_project": "lrucache-rs",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "lrucache-rs"
}