Simple flexible cache that utilises sqlite3 to store temporary data.
Project description
Taisc
Simple persistent caching mechanism
INSTALLING
How to install Taisc.
pip install taisc
USING
How to use Taisc to fetch and store cache data. If data is stored in the cache, then the decorated function is not run.
from src.taisc import cache
@cache
def foo(key: str):
return key * 2
WARNING
Taisc pickles and unpickles values in order to store as BLOB in the sqlite3 database.
The pickle module states:
Warning: The pickle module is not secure. Only unpickle data you trust.
It is possible to construct malicious pickle data which will execute arbitrary code during unpickling. Never unpickle data that could have come from an untrusted source, or that could have been tampered with.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file taisc-0.0.1.tar.gz.
File metadata
- Download URL: taisc-0.0.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8e3f900970643f5e6ac6045acc6ef9f022fe424ae9e5d6e4232b743bbe7ae36
|
|
| MD5 |
038257912cba995ee0bd6b51c1fa4e6f
|
|
| BLAKE2b-256 |
926fd57f1dc4a318d2aadb81f9af0ef6946114b5aba9d958e86dd797cfdf8136
|
File details
Details for the file taisc-0.0.1-py3-none-any.whl.
File metadata
- Download URL: taisc-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec5edc29ce11fc91a5f0aa2c3e487c558dcafb3147f4984565ec7bac99b881ee
|
|
| MD5 |
3c9015942f4d78847525ec4704add47c
|
|
| BLAKE2b-256 |
ac49668209811b94179ffbd1d7a4fe234ce36150a8a890cc59a8417a82eb2c83
|