Skip to main content

eml-units

eml-units is a lightweight unit/range/domain checker for EML-style JSON contract sidecars.

It loads contract JSON, walks common Monogate contract sections, and emits warning-level diagnostics for missing units, unknown units, missing ranges, suspicious normalized ranges, latency unit gaps, boolean/unit mismatches, trace unit gaps, and guard unit gaps.

It does not modify Forge compiler behavior, certify engineering safety, or provide formal dimensional proof.

CLI

eml-units validate examples/darpa_kernel_contract.json
eml-units summary examples/darpa_kernel_contract.json
eml-units vocabulary
eml-units validate-examples

validate exits nonzero only for malformed JSON or invalid contract shape. Unit hygiene findings are emitted as diagnostics so teams can improve sidecars without treating this v0 checker as a certification tool.

Python

from pathlib import Path
from eml_units import check_contract

report = check_contract(Path("examples/darpa_kernel_contract.json"))
print(report.status)

Diagnostic Shape

{
  "severity": "warn",
  "path": "inputs[0].unit",
  "field": "unit",
  "message": "unit is missing",
  "suggested_fix": "add a recognized unit such as unitless, normalized, Hz, seconds, volts, count, or unknown",
  "code": "UNIT_MISSING"
}

Boundaries

  • warning-first unit/range checker;
  • no Forge compiler changes;
  • no hardware interaction;
  • no certified engineering or safety claim;
  • no formal dimensional proof claim.

Metadata

Release files for eml-units 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for eml-units 0.1.0
File Size Uploaded Provenance Actions
eml_units-0.1.0.tar.gz 9.0 kB Without provenance Details for eml_units-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for eml-units 0.1.0
File Interpreter ABI Platform Actions
eml_units-0.1.0-py3-none-any.whl Python 3 none any Details for eml_units-0.1.0-py3-none-any.whl

Total release size: 18.1 kB

Release files / eml_units-0.1.0.tar.gz

Download URL eml_units-0.1.0.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
bc8a34a500dd530fe337d8ff4ea7d6f22784400cd508f8e7b1ca7687d1e9261f
BLAKE2b-256 checksum
How to use checksums
0eec474a2c0700372c537b8a683fc3adf5676bad799a28ad2d3ccf9e1f9bd6f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / eml_units-0.1.0-py3-none-any.whl

Download URL eml_units-0.1.0-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8e33b307a37aa82bc8e2c37409ef425c1e19c87c1e4ea71f3364c8cf1c2e9e4a
BLAKE2b-256 checksum
How to use checksums
63164240865c9e4180ec4c00c9a343286befba591498e450c739ac4fe231d948
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Security for eml-units 0.1.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.

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page