Python decorator toolkit library for easy
License
merriam/dectools
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
======== DecTools ======== 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.
About
Python decorator toolkit library for easy
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published