Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/tombulled/attribute
- Owner: tombulled
- License: mit
- Created: 2021-11-16T21:57:01.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-17T14:00:39.000Z (over 2 years ago)
- Last Synced: 2024-11-01T06:09:40.131Z (about 2 months ago)
- Topics: attribute, python
- Language: Python
- Homepage: https://pypi.org/project/attribute/
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# attribute
Attribute management made easy## Installation
```console
pip install attribute
```## Usage
### Custom Attribute
```python
from attribute import Attributeclass Foo:
bar: str = "hello!"
```
```python
>>> bar = Attribute("bar")
>>> bar.get(Foo)
"hello!"
```### Bundled Attribute
```python
import attributeclass Foo:
pass
```
```python
>>> attribute.name.get(Foo)
"Foo"
```