kwcache - make cache easy
import asyncio
from kwcache import kwcache
@kwcache(max_key_call=5)
def test(*args, **kwargs):
print('test')
return args, kwargs
for i in range(15):
test(1, "1", test=1)
test(2, "2", test=2)
test(3, "3", test=3)
@kwcache(max_key_call=5)
async def atest(*args, **kwargs):
print('test')
return args, kwargs
for i in range(15):
asyncio.run(atest(1, "1", test=1))
asyncio.run(atest(2, "2", test=2))
asyncio.run(atest(3, "3", test=3))
Metadata
Release files for kwcache 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| kwcache-0.0.3.tar.gz | 7.2 kB | Without provenance | Details |
Release files / kwcache-0.0.3.tar.gz
| Download URL | kwcache-0.0.3.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b11756552617006dfd38738d5cd6e4baef071d7436e199ed41e7afb52ea7fab5
|
|
BLAKE2b-256 checksum How to use checksums |
8d42d84ee002678452f8d7b8a3dffa4ec9f7c3fec368497a30e8aae69ed2fc81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.11.12
|
Security for kwcache 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.