dectools 0.1.4
decorator toolkit library
DecTools provides a library of tools for creating Python decorators. It unifies usage between class decorators, decorators requiring arguments, and simple decorators. It also provides correct names, doc, and function signatures for decorated functions. Typical usage often looks like this:
@make_call_once
def register_callback(function):
gui.callback_create(function.__name__, function)
@make_call_before
def require_login(function, args, kwargs, page_name):
while not current_user_id():
...
@register
@require_login("Summary of Items")
def view_summary():
...
You can find manuals in docs/index.html.
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| dectools-0.1.4.tar.gz (md5) | Source | 2010-03-17 | 3MB | 533 | |
- Author: Charles Merriam
- Home Page: http://charlesmerriam.com/dectools/
- License: MIT License
- Requires decorator (>=3.1)
-
Categories
- Development Status :: 2 - Pre-Alpha
- Intended Audience :: Developers
- License :: OSI Approved :: MIT License
- Natural Language :: English
- Operating System :: OS Independent
- Programming Language :: Python
- Topic :: Software Development :: Libraries
- Topic :: Software Development :: Testing
- Topic :: Utilities
- Package Index Owner: CharlesMerriam
- DOAP record: dectools-0.1.4.xml
