aei-history-contract
The shared contract for Velorona's local history (data a customer keeps on their own machine; Velorona stores none of it):
schemas/—HistoryRecordandChangeSummaryJSON Schemas (draft 2020-12).src/aei_history_contract/core.py— the Python reference: record validation, retention and size-cap pruning, the deterministic "what changed" rules, sentence rendering, CSV export.js/aei_history_contract.js— the JavaScript port (a classic script;window.VeloronaHistoryContractin a browser,module.exportsin Node).fixtures/golden.json— inputs and expected outputs for every public function. Both ports must reproduce it exactly (tests/).
Rules in one place: values are compared only with the same entity, metric, kind and source; then is the stored row nearest to now − n hours within max(30 min, 25 % of n); "unchanged" means equal at the displayed precision; a missing value is no_data, never 0; text is built from fields only ("Rain rate at Site A: 1.2 mm/h now, 0.0 mm/h 5 h ago (model-derived, open-meteo, 14:00 UTC → 19:00 UTC)."), with no words like "worsening" and no forecasts of our own.
No I/O, no clock, no dependencies. Storage (IndexedDB in the Map, SQLite in the QGIS plugin) and capture hooks belong to each product.
Tests: PYTHONPATH=src python -m pytest tests (runs the JS port too; needs Node 18+). Regenerate fixtures only deliberately: PYTHONPATH=src python fixtures/build_golden.py, then review the diff.
Release discipline: any change to behaviour or schema = version bump in pyproject.toml, core.py, js/aei_history_contract.js (a test checks they agree), a CHANGELOG entry, and the owner's release approval before a product pins it.
Metadata
Release files for aei-history-contract 0.2.0
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 |
|---|---|---|---|---|
| aei_history_contract-0.2.0.tar.gz | 13.3 kB | With provenance | Details for aei_history_contract-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aei_history_contract-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for aei_history_contract-0.2.0-py3-none-any.whl |
Total release size: 25.3 kB
Release files / aei_history_contract-0.2.0.tar.gz
| Download URL | aei_history_contract-0.2.0.tar.gz |
|---|---|
| Size | 13.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
625445651a31b91186631a296ff00fef36ab372e59aa351f252a7790dd714197
|
|
BLAKE2b-256 checksum How to use checksums |
31b8453f362efef64372f08ccc03dbc4079b1e84a3efdb88f729c0373751524c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 2, 2026.
Transparency logRelease files / aei_history_contract-0.2.0-py3-none-any.whl
| Download URL | aei_history_contract-0.2.0-py3-none-any.whl |
|---|---|
| Size | 11.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
06b72885c6ff69ce01bce1fbeabac6f94e17a8c421e25c20546bc6a04841c8da
|
|
BLAKE2b-256 checksum How to use checksums |
6006d9c3cc2c775a45e559e641fbaaa37db486e3eb05f67a4cb9324a2666bf8d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 2, 2026.
Transparency logSecurity for aei-history-contract 0.2.0
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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for aei_history_contract-0.2.0.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 2, 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.