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 hashes)