powerful and useful decorations
Project description
useful-decoration
Description
I wrote some decorators that are commonly used in my work. And give an example if the decorator is used.
Installing
Install and update using pip:
pip install useful-decoration
Simples
from useful_decoration.decorations import element_mapping
class Person:
def __init__(self, name):
self.name = name
@element_mapping(factor_name="factor")
def calculate(self):
return 10
if __name__ == '__main__':
p = Person(name='frank')
print(p.calculate()) # {'factor': 10}
Links
pypi address https://pypi.org/project/useful-decoration/
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
Built Distribution
Close
Hashes for useful_decoration-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00c08806bf2958c18f4262e2c7e628f6b1f2346331722a4318114f29f64fd3c3 |
|
MD5 | 92280e59957ea910586685636985752f |
|
BLAKE2b-256 | 7b8f62f289e1d7b9f6379ad6e3d2d7eb0792bd235898fd725cb3ddf81457bd66 |