attribute

Attribute management made easy


Keywords
python, attribute
License
MIT
Install
pip install attribute==0.1.4

Documentation

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"