cached(function) - cache function
Project description
Install
github.com: pip install git+git://github.com/russianidiot/cached.py.git
pypi.python.org: pip install cached
download: [ -e requirements.txt ] && pip install -r requirements.txt; python setup.py install
Usage
from cached import *
def func(*args,**kwags):
print('log')
return "result"
>>> cached(func)("arg")
log
'result'
cached(func)("arg") # cached :)
'result'
Feedback
- Chat with me (english/russian)
russianidiot.github.io/python/ - my Python packages
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
cached-0.0.4.tar.gz
(4.7 kB
view details)
File details
Details for the file cached-0.0.4.tar.gz.
File metadata
- Download URL: cached-0.0.4.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f76a96d81009214fb15064e4a2f565ea429ac272e2a2da2d99b74df58c38b337
|
|
| MD5 |
912a335d82d90abd52ed3928af6fd2e5
|
|
| BLAKE2b-256 |
252ffd25dd06a714099b84c7b16db0ed10359091386e371147297037d57abf58
|