Skip to main content

decorator toolkit library

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:

def register_callback(function):
      gui.callback_create(function.__name__, function)

def require_login(function, args, kwargs, page_name):
     while not current_user_id():

@require_login("Summary of Items")
def view_summary():

You can find manuals in docs/index.html.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for dectools, version 0.1.4
Filename, size File type Python version Upload date Hashes
Filename, size dectools-0.1.4.tar.gz (3.7 MB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page