Make-like system for caching Python function results. Compatible with keras.
Project description
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
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
quiche-0.3.2.tar.gz
(7.3 kB
view details)
File details
Details for the file quiche-0.3.2.tar.gz
.
File metadata
- Download URL: quiche-0.3.2.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6845d6756e5b2e42ac9952b0c1ced9e31bc5631494507da0bd955533334f6005 |
|
MD5 | 09f2f04f201b39965f400720bf4cc89e |
|
BLAKE2b-256 | b65a5f908da8e1e9ee2bb3452cd4ff32ef00671258b8d9e55748ef4d610bddab |