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.3.tar.gz (11.7 kB view details)

Uploaded Source

File details

Details for the file b3j0f.aop-0.3.tar.gz.

File metadata

  • Download URL: b3j0f.aop-0.3.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for b3j0f.aop-0.3.tar.gz
Algorithm Hash digest
SHA256 4c9627b54c37636a31b7988cf7d869de17b762df45fca8b853900b819b26fbc1
MD5 3aae15c84d013a9ff4a8ecefeac3cf8a
BLAKE2b-256 fd93348283ab5b3312430ef3596c0450898190c6f9b87d1498d4861a06d6d64d

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