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)
Release files for asyncio-cache 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| asyncio_cache-0.0.1.tar.gz | 5.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| asyncio_cache-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.2 kB
Release files / asyncio_cache-0.0.1.tar.gz
| Download URL | asyncio_cache-0.0.1.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
47dde01a991d01a21283838e9449ce7f0c5667e4a3392c8c157f9bb0706078cb
|
|
BLAKE2b-256 checksum How to use checksums |
541e81b5c631b45c0d918c08259e934663ac1bc6311f91bf560da70eefa3af66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / asyncio_cache-0.0.1-py3-none-any.whl
| Download URL | asyncio_cache-0.0.1-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b1b0d9d90fa63f572846d68bb4ad9f99705fe89c8105ca26f2eafd10ff1dcccb
|
|
BLAKE2b-256 checksum How to use checksums |
7c68bb49f8c2498112f11216cc05be7c47fb0e98775b7e844c2bb38e6b21c3d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|