Rememberer is a tool to help your functions remember their previous results.
Project description
remember
Rememberer is a tool to help your functions remember their previous results.
Installation
pip install rememberer
Usage
from rememberer import rem
def add(a, b):
import time
time.sleep(3)
return a + b
rem(add, 1, b=2) # this will take 3 seconds
rem(add, 1, b=2) # this will take ~0 seconds
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
rememberer-0.1.3.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for rememberer-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5c61c7e5feb90a618955aa51797da6ebf22cac727730d15094e683dc562016e |
|
MD5 | 97847d6fb8fcfca27fc437541fa2eaaf |
|
BLAKE2b-256 | 01568d512c2a8acad6868554855f04be61be15ba1371a2d783d70fe458569fa9 |