Attributee
Attributee is a Python library for declarative object initialization. Input arguments are defined as class attributes and automatically processed when an object is created. It is useful for small configuration and data-model classes where validation, defaults, and nested values should be declared alongside the class definition.
The library is deliberately small and evolves around practical configuration and data-modeling needs.
Installation
Install the latest release from PyPI:
python -m pip install attributee
Simple use case
from attributee import Attributee, String, Float
class Model(Attributee):
# Simply list the attributes of the object ...
name = String(default="noname")
value1 = Float()
value2 = Float(default=0, val_min=-10, val_max=10)
# ... no constructor needed
# default arguments assigned
model1 = Model(value1=10)
# automatic type conversion where possible
model2 = Model(value1=10, value2="5")
Declared attributes can provide defaults, type conversion, validation, and read-only behavior. The package also includes nested models, containers, serialization helpers, and additional primitive types.
Supported Python versions
Attributee supports Python 3.6 and newer. Continuous integration currently tests Python 3.9 through 3.12.
Development
Run the test suite from a checkout with:
python -m unittest attributee.tests -v
Build distributions locally with:
python -m pip install build
python -m build
Documentation
I am working on it.
Authors
Luka Čehovin Zajc
License
The library is available under the simplified BSD license.
Metadata
Release files for attributee 0.1.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| attributee-0.1.11.tar.gz | 12.6 kB | With provenance | Details for attributee-0.1.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| attributee-0.1.11-py3-none-any.whl | Python 3 | none | any | Details for attributee-0.1.11-py3-none-any.whl |
Total release size: 26.3 kB
Release files / attributee-0.1.11.tar.gz
| Download URL | attributee-0.1.11.tar.gz |
|---|---|
| Size | 12.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6c7d7dfe8a559a3010814ebbb4b5dc32af0075f6d337ddfdec40913aa615f48c
|
|
BLAKE2b-256 checksum How to use checksums |
2abd444c20eb9059aa7a57b41366346cabc210e286ef2a911cc104074a45e55e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logRelease files / attributee-0.1.11-py3-none-any.whl
| Download URL | attributee-0.1.11-py3-none-any.whl |
|---|---|
| Size | 13.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
51fe90c5b434079b69e395ff29a37c62ecf99b73661ec97558f2fbe1c5c5c158
|
|
BLAKE2b-256 checksum How to use checksums |
06159745af57781f93bce86e14122ebde102e4617852c2f8a0457a78ca43311c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logSecurity for attributee 0.1.11
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for attributee-0.1.11.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.