Skip to content

kimegitee/niq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kimegitee

niq

Available utilities:

  • Cache function calls results on disk

Installation

pip install niq

Usage

from niq import cache

@cache
def f():
    pass

By 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():
    pass

Tests

Tests are available under tests/, use pytest to run them

About

On disk cache for Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages