Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Make decorators with a before and after function

Project description

Simply make decorators with a before and after function

Included Files

  • easyDecorator/easyDecorator.py - Make decorators with a before and after function

Installation

Python must be installed in order for Menu to be imported. Install python at https://www.python.org/download/. In the terminal type “cd path/to/this/directory” and then “python setup.py install”. This will add the menu module to your site-packages.

How to Use

Import eastDecorator:

import easyDecorator as dec

Make a decorator with before/after functions:

@dec.decorator(before=beforeFunction,after=afterFunction)
def someFunc():
    pass

Decorate a function that doesn’t accept arguments so that it can:

@dec.giveArgs
def funcWithoutArgs():
    pass

Project details


Release history Release notifications

History Node

1.2

This version
History Node

1.1

History Node

1.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
Easy_Decorator-1.1.tar.gz (1.2 kB) Copy SHA256 hash SHA256 Source None Aug 9, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page