krons
Spec-based composable framework for building type-safe systems.
Installation
pip install krons
Features
- Spec/Operable: Type-safe field definitions with validation, defaults, and DB metadata
- Node: Polymorphic content containers with DB serialization
- Services: Unified service interfaces (iModel) with hooks and rate limiting
- Enforcement: Policy evaluation and action handlers with typed I/O
- Protocols: Runtime-checkable protocols with
@implementsdecorator
Quick Start
from krons.specs import Spec, Operable
# Define specs
name_spec = Spec(str, name="name")
count_spec = Spec(int, name="count", default=0, ge=0)
# Compose into structure
operable = Operable([name_spec, count_spec])
MyModel = operable.compose_structure("MyModel")
Requirements
- Python 3.11+
- pydantic 2.x
- anyio
- httpx
- orjson
License
Apache-2.0
Metadata
Release files for krons 0.2.4
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 | |
|---|---|---|---|---|
| krons-0.2.4.tar.gz | 591.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| krons-0.2.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 905.8 kB
Release files / krons-0.2.4.tar.gz
| Download URL | krons-0.2.4.tar.gz |
|---|---|
| Size | 591.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
41380508c311aa1c9b57d856631e850674e287513f3aa547748508da1a8f1d73
|
|
BLAKE2b-256 checksum How to use checksums |
55415d2cec172dd68486ec4d0857445733b1b2dfe7828acadb96620737dddd07
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / krons-0.2.4-py3-none-any.whl
| Download URL | krons-0.2.4-py3-none-any.whl |
|---|---|
| Size | 314.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0f579db0d8199aa0c310decb01a2214d05c1987957c0bcca0f557aa816cbabd0
|
|
BLAKE2b-256 checksum How to use checksums |
d198c471e0c9ef1e3a3a0f3ce6440af82e456ddba646dc2de1a6597dba44e9ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Security for krons 0.2.4
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.