Décorateur pour ambiancer vos codes.
Project description
Nectarifere (latest available version: 2.0)
To use this decorator:
from nectarifere.nectar import nectar
@nectar
def your_function(*args, **kwargs):
blabla
Or:
from nectarifere.falzar import falzar
@falzar
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.3.1.tar.gz
(23.2 MB
view hashes)
Built Distribution
Close
Hashes for nectarifere-2.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 759f3619c15616ea8a8a927ba45653b60b40a1c226399fa3846d6b579d7891f6 |
|
MD5 | db0ab53d5cbfd489c32973564f14b582 |
|
BLAKE2b-256 | 0e50ee3714a16d7baa0554b1986ed7c33caee58dab018158f7afb7c4029a4c21 |