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.0rc2.tar.gz (78.7 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.0rc2-py3-none-any.whl (85.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for analitiq_contract_models-1.0.0rc2.tar.gz
Algorithm Hash digest
SHA256 c7dcb485cabb3870f5520f7d81f88a74b5dddc41b5396e39670ed2c5f9356c34
MD5 6c77e47c7c7300c3c9addc1988fd5071
BLAKE2b-256 9f47e26fecd60a0e4d4088ace738011ab8b95fa2d52aab2d7eef8de7e18ceefe

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for analitiq_contract_models-1.0.0rc2-py3-none-any.whl
Algorithm Hash digest
SHA256 a8d19c1b8871fd3d0baffe34ff95c67d0927d46768398a00097078f7b21c698a
MD5 5e86c47cab19981b70838ce5c1ace1d4
BLAKE2b-256 25bfc19ec1b1959fd51318a49a3ffdebbf18801a297c62222a906d5519b78aa7

See more details on using hashes here.

Provenance

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