memorize tool
Project description
file memorize (under construction)
import mem
def add_str(s0, s1):
time.sleep(3)
return s0 + s1
# memorize tool [mem]
memorized_func = mem(
add_str, # 計算結果をメモ化したい関数
"add_str", # 関数識別用の文字列
mem_dir = "./" # メモの置き場所
)
ret_str = memorized_func("Hello", ", World!!\n")
print(ret_str)
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
mem-1.0.1.tar.gz
(2.9 kB
view details)
Built Distribution
mem-1.0.1-py3-none-any.whl
(3.6 kB
view details)
File details
Details for the file mem-1.0.1.tar.gz
.
File metadata
- Download URL: mem-1.0.1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdef22c69fa4f42c44ba7cd9d206d54c24d55a5353a9f1c6b0a201cfe883ad5f |
|
MD5 | 4adbfbc2c9f8b241d5c120a8139fd286 |
|
BLAKE2b-256 | a07a38f3ec73b2aa1745971283eff6af422336188ce6833de5ad4da1e04fe49a |
File details
Details for the file mem-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: mem-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0cde06844d7343b58e371c1143ae927f91c00cde3406d91e86f1845aed06960d |
|
MD5 | e5a4881725469e042f8fb607a02e5147 |
|
BLAKE2b-256 | 0ca45e0138cde2240c09db06992a503c60d6e76c05537e05bd127fa7bf673af2 |