Skip to content

tombulled/attribute

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"