Décorateur pour ambiancer vos codes.
Project description
Nectarifere
To use this decorator:
from nectarifere.nectar import nectar
@nectar
def your_function(*args, **kwargs):
blabla
To create your own decorator:
from nectarifere.extracteur import ExtracteurDeJus
class mydecorator(ExtracteurDeJus):
def __init__(self, function):
super().__init__(function) #Superclass constructor
self.myattribute = 42.
def success(self):
print(self.myattribute)
def failure(self):
print(1/self.myattribute)
@mydecorator
def whateverfunctionyouwant(args):
...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nectarifere-2.0.1.tar.gz
(23.2 MB
view hashes)
Built Distribution
Close
Hashes for nectarifere-2.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db7b79f9ac1a5111354fe90a768e0e81d70dfbc7a6bd971f785286f50c2591ea |
|
MD5 | b01c1474623fa71a85f9627cf4886684 |
|
BLAKE2b-256 | 06f18ce07d52459e2ca04924fe94c633a4f49b2ece53b79039e06785a550a2e1 |