Skip to main content

powerful and useful decorations

Project description


I wrote some decorators that are commonly used in my daily work. And I gave an example if the decorator is often used.


Install and update using pip:

pip install  useful-decoration


from useful_decoration.decorations import element_mapping

class Person:

    def __init__(self, name): = name

    def calculate(self):
        return 10

if __name__ == '__main__':
    p = Person(name='frank')

    print(p.calculate())  # {'factor': 10}


Welcome, you can join this repo to enhance this repo together. you can pull request to me. please don’t hesitate to contact with me if you have any questions .

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

useful_decoration-1.1.5.tar.gz (5.7 kB view hashes)

Uploaded source

Built Distribution

useful_decoration-1.1.5-py3-none-any.whl (8.6 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page