Skip to main content

edgar-transport-contracts

Producer-owned wire contracts for the edgar_updater → ai-excel-addin boundary (design edgar-to-build-model-e2e-type-and-transport-contract-design-2026-10-22.md, ratified §4 Q1–Q8; S-XREPO-1). This package is the one owner of every closed wire vocabulary and structural invariant on that boundary: both repos pin it by version and neither re-declares a member of a contract set.

Shapes and validators only — no behaviour, no I/O, no imports from edgar_api, edgar_parser or packages/edgar_shared. Its sole dependency is pydantic>=2.10,<3.

Contents:

  • enums — NonGaapOutputMetricId, NonGaapAdjustmentRole, BridgeGranularity, OmittedTableStage / OmittedTableReason (ratified 5) with LEGACY_OMITTED_TABLE_REASONS for the tolerant reader, KpiGapReason (8 + financials_unavailable), NonGaapMetricFamily, BridgeFailureReason.
  • measure — MeasureUnit, Scale, ScaleProvenance, MeasureType, ScaledQuantity, EvidencedBlank. In 0.1.3, additive ScaleProvenance member value_text identifies a scale word printed in the figure itself, with that figure span as scale_evidence. ScaledQuantity accepts scaled per_count / per_share amounts only with this provenance; table and preamble declarations never scale per-entity prices.
  • period — one TypedPeriod (annual|quarterly|ytd|ttm + temporal_kind) with canonical_label().
  • dimensions — DimensionAxis, XbrlFactRef, and the one serialize_dimensions / parse_dimensions (|-joined, escaped) form.
  • kpi — KpiDriverRowsV2, TypedKpiObservation, OmittedTable, KpiLaneGap, ReaderRecord, and (0.1.2, additive, omitted from the wire while empty) KpiExplanation / TableContext behind TypedKpiObservation.explanations and KpiDriverRowsV2.table_context.
  • tables — FilingTableEnvelope and TableBinding / ColumnBinding / RowBinding / CellRef, published as extra="forbid" models. In 0.1.4, TableBinding.inadmissible_rows (InadmissibleRow: r, field, rejection) is additive with a default of (). It holds the reply rows the binding contract could not admit, kept beside the admitted rows.
  • non_gaap_bridge — IssuerNonGaapBridgeV3 (canonical_output_metric + output_metric_slug, effective_metric_key, producer-minted bridge_id, granularity, typed closure: BridgeClosureState, flattened subtotals — no chained_from) and IssuerNonGaapBridgeResponseV3. Its rounding_consistent diagnostic preserves the printed-equation residual within the half-ulp budget; like other ordinary diagnostics, it does not carry metric-context fields (effective_metric_key, period, or label).
  • canonicalize — OUTPUT_METRIC_SURFACE_FORMS and classify_adjustment_role, beside the enums they feed.
  • version — CONTRACT_VERSIONS and version_refusal(received, expected).
  • golden — the committed 13-issuer golden pack and its golden.load(issuer, kind) loader; pack README owns regeneration and canonical-byte accounting.

Install for development from the producer repo root: pip install -e packages/edgar_transport_contracts. Run its tests as one package suite (packages/edgar_transport_contracts/tests) through testbudget request, per the repo CLAUDE.md Tests.

Metadata

Release files for edgar-transport-contracts 0.2.1

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

Source distribution (sdist)

Source distribution for edgar-transport-contracts 0.2.1
File Size Uploaded Provenance Actions
edgar_transport_contracts-0.2.1.tar.gz 1.2 MB Without provenance Details for edgar_transport_contracts-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for edgar-transport-contracts 0.2.1
File Interpreter ABI Platform Actions
edgar_transport_contracts-0.2.1-py3-none-any.whl Python 3 none any Details for edgar_transport_contracts-0.2.1-py3-none-any.whl

Total release size: 2.4 MB

Release files / edgar_transport_contracts-0.2.1.tar.gz

Download URL edgar_transport_contracts-0.2.1.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
1ca019c6af77e5eb07879976047929a4229b0ccd0e74a53d45a1895b9bc4668e
BLAKE2b-256 checksum
How to use checksums
88a1c5f5295ca17af2c179a154f799fa17436c0e904959d490f44559cabd5c52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Release files / edgar_transport_contracts-0.2.1-py3-none-any.whl

Download URL edgar_transport_contracts-0.2.1-py3-none-any.whl
Size 1.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
c05ca0a921468e4d8e52fafdcd93139e676557165f1b0b31ea952859fdf9acd8
BLAKE2b-256 checksum
How to use checksums
3511e6f5c43f218da4d361e77645e4d79e9d8e652460f3cfed3c14e8cbede553
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Security for edgar-transport-contracts 0.2.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.

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