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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for analitiq_contract_models-1.0.0rc6.tar.gz
Algorithm Hash digest
SHA256 c2aaf6756cf4d154835cc6707b3fe5aab357ded6a72c943a2cc99b2027dbd34f
MD5 11cd2b888d48dfeed38c1a0cfe6d6f26
BLAKE2b-256 c00b17fdf43d385e1f526da3f88d1db9d9afe5804643e15e987036f337992adc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for analitiq_contract_models-1.0.0rc6-py3-none-any.whl
Algorithm Hash digest
SHA256 cbb5725c81176386796d15e3b410e5c3a448e83bf77443df2323144d1b3dc568
MD5 de01c0abcf108b09b1d16e39ed741c64
BLAKE2b-256 8ef59f0a168b9cffc232c65ab2b336208352ee320f4209d43cf739bf9c4c3e74

See more details on using hashes here.

Provenance

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