Skip to main content

Analitiq connector/connection/stream/pipeline/endpoint contract models (Pydantic) — the authored write-contract subset the published JSON Schemas and the validator both derive from. Import as `analitiq.contracts`.

Project description

analitiq-contract-models

The Analitiq authored contract models (Pydantic) — the write/input shapes for connectors, connections, endpoints, type-maps, streams, and pipelines. These are the single source of truth the published JSON Schemas (schemas.analitiq.ai) are generated from, packaged so the validator and the pipeline engine can validate documents against the contract directly (model_validate) instead of re-implementing its cross-field rules.

Install & use

pip install analitiq-contract-models
from analitiq.contracts.endpoints import ApiEndpointDoc
from pydantic import ValidationError

try:
    ApiEndpointDoc.model_validate(doc)   # structural + cross-field, offline
except ValidationError as exc:
    ...  # every contract rule, enforced from the one source

Importing needs no environment: the package defaults DOMAIN to the public contract host (analitiq.ai) before the models load.

What it ships

The authored write/input contract only — nothing internal:

  • analitiq.contracts.connectorConnectorConfig
  • analitiq.contracts.connectionConnectionInput
  • analitiq.contracts.endpointsApiEndpointDoc, DatabaseEndpointDoc, DatabaseObject
  • analitiq.contracts.type_mapTypeMapReadDoc, TypeMapWriteDoc
  • analitiq.contracts.streamStreamInput (+ the endpoint refs)
  • analitiq.contracts.pipelines.configPipelineInput
  • analitiq.contracts.endpoint_identityderive_db_endpoint_id
  • analitiq.contracts.shared — the shared building blocks those embed

Internal persistence/catalog variants (*Document/*Config/*Patch/*Read, resolved-connector/catalog shapes, auth-state) are not included — the package is the public contract surface, no more.

analitiq is a PEP 420 namespace shared with analitiq-validator.

Source of truth

The models are rendered on release from the canonical Analitiq contract models — there is no second, re-authored copy. The published JSON Schemas and this package are two renderings of the same models, so they cannot drift. The build guards that no internal identifier or private path can leak into the public package.

Versioning

analitiq-contract-models is a strict validator (extra=forbid, closed enums), so version bumps are coordinated: a consumer on an older minor rejects a newly-added field a producer emits. See the publishing/versioning notes in the source repo for the major/minor/patch semantics and the consumer rollout rule.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

analitiq_contract_models-1.0.0rc3.tar.gz (79.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

analitiq_contract_models-1.0.0rc3-py3-none-any.whl (86.2 kB view details)

Uploaded Python 3

File details

Details for the file analitiq_contract_models-1.0.0rc3.tar.gz.

File metadata

File hashes

Hashes for analitiq_contract_models-1.0.0rc3.tar.gz
Algorithm Hash digest
SHA256 965d91316420eb6747ad28766c3c19d20f635c075ea96343be6d5aed6d263b14
MD5 316660f02ffd1462474a5c23b06f220c
BLAKE2b-256 4fc97863f4bf1e03cf58c81a753b714ae7305cf623879a3de89a5e32afd6b00d

See more details on using hashes here.

Provenance

The following attestation bundles were made for analitiq_contract_models-1.0.0rc3.tar.gz:

Publisher: contract-models-release.yml on analitiq-ai/infrastructure

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file analitiq_contract_models-1.0.0rc3-py3-none-any.whl.

File metadata

File hashes

Hashes for analitiq_contract_models-1.0.0rc3-py3-none-any.whl
Algorithm Hash digest
SHA256 b5575e31690eb07289234030c496725c70428a87886d8e508791358194fb1ccf
MD5 0f1bd17cff8cdda181d9cbebf6f829ec
BLAKE2b-256 03be529428e0617279265db045adfd60b418ce8ec788b5863ac980c15d631216

See more details on using hashes here.

Provenance

The following attestation bundles were made for analitiq_contract_models-1.0.0rc3-py3-none-any.whl:

Publisher: contract-models-release.yml on analitiq-ai/infrastructure

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page