测试发布包功能
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.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad7cfa412578edd53f00542d76f46656c910f348f3174849cad62fc54460ac19 |
|
MD5 | 116684d091bab8c75c9352692081c34d |
|
BLAKE2b-256 | 9a9c51484d44558d39e06eba8bfcbbac17f4ad23bc82c343b59587d253ac608a |