Available utilities:
- Cache function calls results on disk
pip install niqfrom niq import cache
@cache
def f():
passBy default the cache decorator saves the function result in ~/.niq and loads it if environment variable NIQ_CACHE is set to 1.
You can customize cache location with the cache_dir parameter
@cache(cache_dir='/path/to/custom/cache_dir')
def f():
passTests are available under tests/, use pytest to run them