Catalog PyPI
PACKAGE EXPLORERView in registry

advice

PyPI

Aspect-oriented programming

adviceaspectdecoratorsextensionimportjoinpointloggingorientedpatchingprogrammingtesting
Versions collected1
Direct dependencies0From release 0.1.0
Last observed20 Oct, 20:03 UTC

README

Version 0.1.0 documentation

Advice

Aspect-oriented programming

Usage

import advice


def multiply(context):
    print(context.args)
    print(context.kwargs)
    yield
    context.result *= 100


advice.register(
    handler=multiply,
    modules=advice.match(equals='math'),
    targets=advice.match(regexp='(sin|cos)')
)

Ok, let's check:

In [2]: import math

In [3]: math.cos(0)
(0,)
{}
Out[3]: 100.0

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.017 Aug 20180

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
orsinium/advice

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 20:03 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:bea86ba3c0b3698fb51cf2d668e36c716bb8b9a8ac96480035e4b5b817072c00