Python module for caching the results of functions on disk and/or in memory and reusing them as-needed instead of recomputing them all the time.
pip install quiche
should work, after which:
from quiche import dep
@dep.task((), "base")
def base():
return 7
@dep.task(("base",), "plus_one")
def plus_one(base):
return base + 1
@dep.task(("plus_one",), "times_two")
def times_two(val):
return val*2
ts, val = dep.create("times_two")
print("(7 + 1) * 2 is", val)
should print:
(7 + 1) * 2 is 16
Release files for quiche 0.3.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 | |
|---|---|---|---|
| quiche-0.3.2.tar.gz | 7.3 kB | Details |
Release files / quiche-0.3.2.tar.gz
| Download URL | quiche-0.3.2.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6845d6756e5b2e42ac9952b0c1ced9e31bc5631494507da0bd955533334f6005
|
|
BLAKE2b-256 checksum How to use checksums |
b65a5f908da8e1e9ee2bb3452cd4ff32ef00671258b8d9e55748ef4d610bddab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |