DecTools

Decorator toolkit library
Download

DecTools Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Price:
  • FREE
  • Publisher Name:
  • Charles Merriam
  • Publisher web site:
  • http://charlesmerriam.com/

DecTools Tags


DecTools Description

Decorator toolkit library DecTools project 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_oncedef register_callback(function): gui.callback_create(function.__name__, function)@make_call_beforedef 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. Requirements: · Python


DecTools Related Software