attribute
Attribute management made easy
Installation
pip install attribute
Usage
Custom Attribute
from attribute import Attribute
class Foo:
bar: str = "hello!"
>>> bar = Attribute("bar")
>>> bar.get(Foo)
"hello!"
Bundled Attribute
import attribute
class Foo:
pass
>>> attribute.name.get(Foo)
"Foo"