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.

Source Distribution

PyEL-0.0.2.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PyEL-0.0.2-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file PyEL-0.0.2.tar.gz.

File metadata

  • Download URL: PyEL-0.0.2.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

File hashes

Hashes for PyEL-0.0.2.tar.gz
Algorithm Hash digest
SHA256 d13d57964ae6815bf5e6eea370fc8439b2cc34ea3a6af0cd6bfda69860e870c9
MD5 095fdcd5bbb4284911fec7c13cf76a5f
BLAKE2b-256 9d650c00885d5420cd629eb87a7892a651337aa02954f8ce9c7196fcfc0bdf49

See more details on using hashes here.

File details

Details for the file PyEL-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: PyEL-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

File hashes

Hashes for PyEL-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2f0917d990fb443282673ff2c7016c52086f0af94444d403774bcf438ea78718
MD5 558b9d03ee7755fe598dc613f2b0c915
BLAKE2b-256 b73211a529219841b9fb8d25f74ebacbd5199eeec0ec06a60a8bd4b07fe7f96e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page