Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tombulled/attribute

Attribute management made easy
https://github.com/tombulled/attribute

attribute python

Last synced: 23 days ago
JSON representation

Attribute management made easy

Awesome Lists containing this project

README

        

# attribute
Attribute management made easy

## Installation
```console
pip install attribute
```

## Usage
### Custom Attribute
```python
from attribute import Attribute

class Foo:
bar: str = "hello!"
```
```python
>>> bar = Attribute("bar")
>>> bar.get(Foo)
"hello!"
```

### Bundled Attribute
```python
import attribute

class Foo:
pass
```
```python
>>> attribute.name.get(Foo)
"Foo"
```