Store function results across executions using cache files
Project description
File Memoizer
This Python package makes it easy to store function results across executions using cache files.
Prerequisites
Installation is via pip
:
pip install file-memoizer
Usage
Basic usage is as follows:
import file_memoizer
file_memoizer.memoize()
def double(n):
return 2 * n
class Arithmetic():
@staticmethod
@file_memoizer.memoize()
def triple(n):
return 3 * n
@file_memoizer.memoize()
def multiply(self, x, y):
return x * y
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
file_memoizer-0.1.0.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for file_memoizer-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2253b2f18047aa4007f34e2337b9d733228ddf2b31dd270762dd2cde9aacad63 |
|
MD5 | 0ff7a47923ba1dcd1ec4e5d65ac55b44 |
|
BLAKE2b-256 | b5eb6404187d74696e8b06f14cc6fc9c2337a7238022d0b60404228f707a2f3e |