Metadata-Version: 2.4
Name: PyEL
Version: 0.0.2
Summary: This project aims to facilitate the execution of codes before and after a method using decorator.
Home-page: https://github.com/diogodilcl/PyEL
Author: Diogo Dil
Author-email: diogodicl@gmail.com
License: Apache License 2.0
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Libraries
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: home-page
Dynamic: license
Dynamic: summary

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`` :

.. code-block:: text

    pip install PyEL


A Simple Example
----------------

.. code-block:: python

    from pyel import PreEL

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



Example with variables
----------------------

.. code-block:: python

    from pyel import PreEL

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


Example with your code
----------------------

.. code-block:: python

    from pyel import PosEL

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