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.0rc5.tar.gz (80.1 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.0rc5-py3-none-any.whl (86.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for analitiq_contract_models-1.0.0rc5.tar.gz
Algorithm Hash digest
SHA256 c2d944063240da9e7e184018de3583d3b3eb1e7655b1f4f556a5f6e23f7e58d1
MD5 c4fcadf9d167e485f1970ed6e0a67a89
BLAKE2b-256 c86a9f9392085df48d200de6dd1b6f389ea59449efb35ac623c5f868658edc05

See more details on using hashes here.

Provenance

The following attestation bundles were made for analitiq_contract_models-1.0.0rc5.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.0rc5-py3-none-any.whl.

File metadata

File hashes

Hashes for analitiq_contract_models-1.0.0rc5-py3-none-any.whl
Algorithm Hash digest
SHA256 cb7b8483a641977d01a426ddbe09e8bee89bc4bec85e16bace40b0dcff2df106
MD5 f5d3674fde4ced8965db8233b70a396a
BLAKE2b-256 e01adaaf5d43dab52883cd854af11ca0acf83edf9e7f8136c4df3cc523e9aeae

See more details on using hashes here.

Provenance

The following attestation bundles were made for analitiq_contract_models-1.0.0rc5-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