Skip to content

The idea of this project is to facilitate the execution of codes before and after methods using decorator.

License

Notifications You must be signed in to change notification settings

diogodilcl/PyEL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyEL

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

About

The idea of this project is to facilitate the execution of codes before and after methods using decorator.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages