A python library for asyncio caches (like functools cache and lru_cache)
Project description
asyncio-cache
A python library for asyncio caches (like functools cache and lru_cache)
Installation
Install the last released version using pip
:
python3 -m pip install --user -U asyncio-cache
Or install the latest version from sources:
git clone git@github.com:matan1008/asyncio-cache.git
cd asyncio-cache
python3 -m pip install --user -U -e .
Usage
The usage is similar to functools.cache
and functools.lru_cache
usage:
from asyncio_cache import cache
@cache
async def cached_read(reader):
return await reader.read(100)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
asyncio_cache-0.0.1.tar.gz
(5.5 kB
view details)
Built Distribution
File details
Details for the file asyncio_cache-0.0.1.tar.gz
.
File metadata
- Download URL: asyncio_cache-0.0.1.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47dde01a991d01a21283838e9449ce7f0c5667e4a3392c8c157f9bb0706078cb |
|
MD5 | 1d7d92b8b8749a1fdefb8e0fb05c55a0 |
|
BLAKE2b-256 | 541e81b5c631b45c0d918c08259e934663ac1bc6311f91bf560da70eefa3af66 |
File details
Details for the file asyncio_cache-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: asyncio_cache-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1b0d9d90fa63f572846d68bb4ad9f99705fe89c8105ca26f2eafd10ff1dcccb |
|
MD5 | ede375a7ae4dbf7684b698aee1ad9358 |
|
BLAKE2b-256 | 7c68bb49f8c2498112f11216cc05be7c47fb0e98775b7e844c2bb38e6b21c3d7 |