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
@rem
def add(a, b):
import time
time.sleep(3)
return a + b
add(1, 2) # this will take 3 seconds
add(1, 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.2.tar.gz
(2.1 kB
view hashes)
Built Distribution
Close
Hashes for rememberer-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d791750c396d08104eba083e699b2aac572ef075bf4aae2a4882a23e87804aab |
|
MD5 | ce53190e6a9a61b9cb7140bcf5413483 |
|
BLAKE2b-256 | 71ee8478b40fc137bffa37ea9ff89a34cfb6ce6fb9d34c770ae906b36a8fdab6 |