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.1.tar.gz
(23.2 MB
view hashes)
Built Distribution
nectarifere-2.1-py3-none-any.whl
(23.2 MB
view hashes)
Close
Hashes for nectarifere-2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b3cefcea7013ce33a59e38e0efdbf0b42ca2d5b15ab8fb925ea537423f0a61e |
|
MD5 | a2fb87d09b34390f7a7d05001fcb244f |
|
BLAKE2b-256 | 80400880caa0d2eb614d76ec3e9f34646f42ea120e5a8996bbc86be8a6fb1215 |