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.2.2.tar.gz
(4.9 kB
view hashes)