Declaro
The Functional Python Stack
Pure functions. Typed data. No class magic.
Vision
Declaro is a collection of tools for developers who believe:
- Data is just data - Dicts and TypedDicts, not objects with hidden state
- Functions transform data - Pure functions with no side effects
- Types should be explicit - Declared upfront, enforced everywhere
- Testing should be trivial - Same input, same output, always
Packages
| Package | Description | Status |
|---|---|---|
declaro-persistum |
Schema-first database toolkit | In development |
declaro-ximenez |
Type enforcement with memorable errors | Planned |
declaro-api |
FastAPI integration | Planned |
Installation
# Install everything
pip install declaro[all]
# Or pick what you need
pip install declaro-persistum
pip install declaro-ximenez
pip install declaro-api
Philosophy
# Not this (classes, state, magic)
class User(BaseModel):
email: str
@validator("email")
def validate_email(cls, v):
...
# This (data, functions, clarity)
User = TypedDict("User", {"email": str})
def validate_user(user: dict) -> list[Error]:
return check_email(user.get("email", ""))
Links
License
MIT
Metadata
Release files for declaro 0.0.1
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 |
|---|---|---|---|---|
| declaro-0.0.1.tar.gz | 2.4 kB | Without provenance | Details for declaro-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| declaro-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for declaro-0.0.1-py3-none-any.whl |
Total release size: 5.5 kB
Release files / declaro-0.0.1.tar.gz
| Download URL | declaro-0.0.1.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
82cf322b7c27045457854825a20490b4d19d65972d2452629ea962134d553841
|
|
BLAKE2b-256 checksum How to use checksums |
db6af1bd54776cf4ab4fad0d181156f928c8fbaf8306d86c0bbdc754cec4738e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.13
|
Release files / declaro-0.0.1-py3-none-any.whl
| Download URL | declaro-0.0.1-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9e7aa2c0a0276bcfdf977e9830a740c97b83a1df4f5683f1bd184e2814db8c75
|
|
BLAKE2b-256 checksum How to use checksums |
14a5d39c7c82d6bbbf10e1d87b2572beb723b517580b1f844055ac31d2a39eff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.13
|
Security for declaro 0.0.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.