timecache
Decorator to cache function return values based on time.
Install
pip3 install ftimecache
Usage
from ftimecache import ftimecache
@ftimecache(weeks=1, days=2, hours=3, minutes=4, seconds=5, milliseconds=6, microseconds=7)
def your_function(*args, **kwargs):
# do something
# OR
from datetime import timedelta
@ftimecache(timedelta=timedelta(weeks=1, ...))
def your_function(*args, **kwargs):
# do something
Metadata
Release files for ftimecache 0.0.2
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 | Actions |
|---|---|---|---|---|
| ftimecache-0.0.2.tar.gz | 2.5 kB | Without provenance | Details for ftimecache-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ftimecache-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for ftimecache-0.0.2-py3-none-any.whl |
Total release size: 7.9 kB
Release files / ftimecache-0.0.2.tar.gz
| Download URL | ftimecache-0.0.2.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e170849c9e59708f166b17c7e73ef14ad571f9525721da86fad0c225d0595731
|
|
BLAKE2b-256 checksum How to use checksums |
d3437d25afe36f3fcfc5e57d43698b5139f3c2e8b0b9672c52dc673d48f0a05c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
|
Release files / ftimecache-0.0.2-py3-none-any.whl
| Download URL | ftimecache-0.0.2-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9ca9c671d3df46a445c9c8618c439d4843f58d7c7140713a0a0784f834fe9fa8
|
|
BLAKE2b-256 checksum How to use checksums |
1c27336f3a49f5e1e6d801755e52fc574941ebd4f776de06daac4df7a87f0716
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
|
Security for ftimecache 0.0.2
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.