Skip to main content

ClickHouse schema and migration toolkit for Python (port of chkit TS)

Project description

chkit (Python)

A Python port of chkit — ClickHouse schema management and migration toolkit, written in strict, imperative Python.

Design

  • Type safety first. Every public surface is annotated. The project is configured for mypy --strict and Pyright strict mode out of the box.
  • Pydantic v2 models. Runtime validation, frozen, extra="forbid".
  • Imperative core. Pure functions over data; minimal classes outside of Pydantic models and the CLI shell.
  • No magic. No dynamic imports, no runtime introspection of user code beyond what Pydantic provides.

Layout

src/chkit/
  core/          Schema DSL, diff engine, planner, SQL rendering, validation
  clickhouse/    ClickHouse client wrapper
  cli/           Typer-based CLI (init, generate, migrate, status, check, drift)

Quickstart

pip install -e ".[dev]"
chkit --help
mypy
pytest

Status

Port-in-progress. Implements the core schema model, canonicalization, the diff/migration planner, validation, and a basic CLI. Parity tracker in the tests/ directory mirrors the TS test suite.

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

chkit_py-0.1.1.tar.gz (46.0 kB view details)

Uploaded Source

Built Distribution

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

chkit_py-0.1.1-py3-none-any.whl (39.0 kB view details)

Uploaded Python 3

File details

Details for the file chkit_py-0.1.1.tar.gz.

File metadata

  • Download URL: chkit_py-0.1.1.tar.gz
  • Upload date:
  • Size: 46.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for chkit_py-0.1.1.tar.gz
Algorithm Hash digest
SHA256 31c3f71e46a4bd656806aefe6b069b05bbc593a93f8c3451cdf45714ef78f665
MD5 5370dd65a814c8b845295a7b01987922
BLAKE2b-256 87e43a1878a221f5d85fbeb504044fcbb5279c5c34407f07f10faed573c6e3a1

See more details on using hashes here.

File details

Details for the file chkit_py-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: chkit_py-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 39.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for chkit_py-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 869795cd7ec618834360bf7502e836a8820f382affe26f6b1e657808a13d8db7
MD5 1a4e0b90e2b8cd32e4252be24408d789
BLAKE2b-256 ee22c573e2eae6f5ed1e29ba9fdd5186b2424c3c0ec4aa3fef79d061be8b6ac1

See more details on using hashes here.

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