Metadata-Version: 2.4
Name: nectarifere
Version: 3.0.1
Summary: Décorateur pour ambiancer tes codes.
Author: Simon Dupourque
Author-email: Xan Astiasarain <xan.astia@live.fr>
Maintainer: Xan Astiasarain
Keywords: kaamelott
Classifier: Development Status :: 5 - Production/Stable
Classifier: Programming Language :: Python :: 3.14
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: playsound3
Requires-Dist: pillow
Dynamic: license-file

# 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):
        ...
    
