Skip to main content

Python Aspect Oriented Programming

Project description

This library aims to improve python aspects oriented programming efficiency among several existing library.

Installation

pip install b3j0f.aop

Examples

>>> from b3j0f.aop.advice import weave
>>> def function_to_intercept():
>>>    return 1
>>> weave(function_to_intercept, lambda adviceexecutor: advoceexecutor.proceed(), 1)
>>> assert function_to_intercept(), (1, 1)

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

b3j0f.aop-0.4.2.tar.gz (11.5 kB view hashes)

Uploaded Source

Supported by

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