No project description provided
Project description
attributes
a python version attribute like attribute of csharp.
Usage
from attributes import Attribute
class Data(Attribute): # make your own attribute
def __init__(self, *args, **kwargs):
self.args = args
self.kwargs = kwargs
@Data(1, 2) # use your attribute
class SomeClass:
pass
data, = Attribute.get_attrs(SomeClass) # than load on runtime and use it.
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
attributes-0.1.0.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for attributes-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dafce62f33105df4e313795a073b018a6650f4aa61a848edab1392864f642b54 |
|
MD5 | 4b96f89c87d375be591b4b11b577b3c3 |
|
BLAKE2b-256 | 09122939bb3bd92e7d5267c8f0ac8415ba77f2038173a18259bd56d55a85b7f6 |