Urgent.News

What's breaking now, across thousands of outlets.

Tech

Stop writing ClickHouse DDL by hand: A Pydantic v2 model is enough

¿Por qué seguimos escribiendo cadenas de SQL DDL a mano en Python? WClickHouse une modelos Pydantic v2 directamente al almacenamiento columnar de ClickHouse. Esta publicación forma parte de la serie técnica de código abierto de WClickHouse (MIT, Pydantic v2, Apache Arrow, Verificado). El Problema Real en Producción Escribir sentencias DDL CREATE TABLE de 40 líneas a mano para cada evento…

Translated from Spanish Read in Spanish

WClickHouse, a library by Wisrovi, integrates Pydantic v2 models directly with ClickHouse's columnar storage. This solves issues with manual SQL DDL statement writing in Python, such as subtle type mismatches and data corruption. With WClickHouse, users define a declarative model in Python and the library manages the schema lifecycle.

The library provides native Pydantic v2 support, automatic DDL execution, and strict type validation. WClickHouse is available on PyPI and GitHub, with documentation and 51 reproducible examples.

Written by urgent.news from Dev.to's report — not a translation of it. Machine-written — may contain errors; check the original before relying on it.

Also reported by 1 other outlet

Read the original at dev.to →

More in Tech

Stop writing raw Kafka boilerplate in Python: A decorator is enough

Code is read twice as often as it is written — and the Kafka consumer loop is the code nobody enjoys re-reading. WKafka turns the entire consumer skeleton into a single, clean decorator.

  • WKafka library offers @kafka.consumer decorator to streamline Python Kafka consumer code
  • Automatically configures KAFKASERVER environment variable, defaults to localhost:9092
  • Tested with Python 3.9-3.14, open-source on GitHub and PyPI

More from Saturday 26 September →