Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

taisc-0.0.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

taisc-0.0.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

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

Hashes for taisc-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c8e3f900970643f5e6ac6045acc6ef9f022fe424ae9e5d6e4232b743bbe7ae36
MD5 038257912cba995ee0bd6b51c1fa4e6f
BLAKE2b-256 926fd57f1dc4a318d2aadb81f9af0ef6946114b5aba9d958e86dd797cfdf8136

See more details on using hashes here.

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

Hashes for taisc-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ec5edc29ce11fc91a5f0aa2c3e487c558dcafb3147f4984565ec7bac99b881ee
MD5 3c9015942f4d78847525ec4704add47c
BLAKE2b-256 ac49668209811b94179ffbd1d7a4fe234ce36150a8a890cc59a8417a82eb2c83

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page