dectools 0.1.4
pip install dectools
Latest version
Released:
decorator toolkit library
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT License)
- Author: Charles Merriam
Classifiers
- Development Status
- Intended Audience
- License
- Natural Language
- Operating System
- Programming Language
- Topic
Project description
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.
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT License)
- Author: Charles Merriam
Classifiers
- Development Status
- Intended Audience
- License
- Natural Language
- Operating System
- Programming Language
- Topic
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file dectools-0.1.4.tar.gz
.
File metadata
- Download URL: dectools-0.1.4.tar.gz
- Upload date:
- Size: 3.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca47183111fa5b603c6a00c9de33a760ef6c91c0f9c8d94271b7a7299e3cd664 |
|
MD5 | 4db65a7faa58c75f10093ca4e9845bd0 |
|
BLAKE2b-256 | 09eed4c6448ac8a61b50120a54b0561a555adbe18668b1fb58001eee40e3065d |