8000 GitHub - mobalt/memofn: A python library for memoizing functions for quick debugging/translations
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

mobalt/memofn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MemoFN

A python library for memoizing functions for quick debugging/translations.

Usage

from memofn import memofn, load_cache, save_cache

def fib(n):
    if n < 2:
        return n
    return fib(n-1) + fib(n-2)

load_cache('fib.cache.pkl')
mfib = memofn(expire_in_days=9)(fib)
mfib(10)
save_cache('fib.cache.pkl')

About

A python library for memoizing functions for quick debugging/translations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0