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.2.tar.gz
(23.2 MB
view hashes)
Built Distribution
Close
Hashes for nectarifere-2.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 884d6e1d119757a8e16e5b2c57493db72949b86e4c2c13886c618b3ca1ecfa7a |
|
MD5 | cc1fa615255ded238a4ad2f34ec4a63b |
|
BLAKE2b-256 | 52aa4ab725aad0d29cbc22f539df08d522369b7d6f78a9259eb9894e0fc6cc19 |