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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for analitiq_contract_models-1.0.0rc4.tar.gz
Algorithm Hash digest
SHA256 79c0987dbeda0ffe486ea6bb78d46dd02709d129637b7ef85957a46121f69d6a
MD5 12867edb926c847bbfa200a69bb5ccab
BLAKE2b-256 2ab28c8d87cdf37e791fd435b9eedd34caa761ca351226fe4f58a8014c370916

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for analitiq_contract_models-1.0.0rc4-py3-none-any.whl
Algorithm Hash digest
SHA256 b452cfaec7a495e623a97f1e249889ac0ad82f94d1ec3a4a103595c806f313f7
MD5 9c75f1c614f3a399ae0d1ab454f1ac2a
BLAKE2b-256 7e846ccfa76b2605910b7e2c465bc3a7b9160263244783ab674a6ffdcf6a3d9a

See more details on using hashes here.

Provenance

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