Skip to main content

This project aims to facilitate the execution of codes before and after a method using decorator.

Project description

This project aims to facilitate the execution of codes before and after a method using decorator. the Decorator @PreEL and @PosEL accept as input codes to run, you can use simple codes as a logging or else more complex codes written by you.

Installing

Install and update using pip :

pip install PyEL

A Simple Example

from pyel import PreEL

@PreEL('logging.info("Potato")')
def function():
    pass

Example with variables

from pyel import PreEL

@PreEL('logging.error("Log:{}".format(#param))')
def function(param):
    pass

Example with your code

from pyel import PosEL

@PosEL('yourpackage.subpackage.yourfunction(#param)')
def function(param):
    pass

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 PyEL, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size PyEL-0.0.2-py3-none-any.whl (6.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size PyEL-0.0.2.tar.gz (2.2 kB) 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