PyPI version PyPI version
Industrial Grade — LTS Support

The Architecture of wclickhouse

PyPI version Explore on GitHub pip install wclickhouse

100%

Coverage & Testing

1★

GitHub Stars

MIT

Open Source License

LTS

Long Term Support

Designed for Zero Compromise

Engineered with formal verification principles, strict type validation, and native production readiness.

Pydantic v2 Integration

Define your ClickHouse tables as Pydantic models with full validation.

Apache Arrow Native

High-speed binary columnar data exchange via `insert_arrow()` and `query_arrow()`.

Buffer Manager

Automatic grouping of small inserts to protect server performance.

Query Streaming

Process millions of rows with low memory footprint using lazy loading.

Auto-Sync

Automatically creates tables and syncs schema (adds missing columns).

Dual API

Full support for both **Synchronous** and **Asynchronous** operations.

Declarative & Streamlined

Designed to eliminate low-level plumbing and cognitive friction, allowing engineers to build reliable solutions in minutes.

$ pip install wclickhouse
View Documentation
quickstart.py
from pydantic import BaseModel
from wclickhouse import WClickHouse
from datetime import datetime
from typing import List

# 1. Define your model
class AnalyticsEvent(BaseModel):
    event_id: int
    event_name: str
    properties: List[str]
    created_at: datetime = datetime.now()

# 2. Configure connection
db_config = {
    "host": "localhost",
    "port": 8124,
    "username": "default",
    "password": "test_pass",
    "database": "default"
}

# 3. Initialize (Auto-creates table)
db = WClickHouse(AnalyticsEvent, db_config)

# 4. Bulk Insert (High performance)
events = [
    AnalyticsEvent(event_id=1, event_name="login", properties=["web", "chrome"]),
    AnalyticsEvent(event_id=2, event_name="purchase", properties=["mobile", "ios"])
]
db.insert_many(events)

# 5. Query
results = db.get_all()
print(f"Total events: {len(results)}")
Wisrovi

The Wisrovi Ecosystem

wclickhouse is an integral component within the Wisrovi Binary Universe, engineered by William Steve Rodriguez Villamizar to unify high-throughput distributed systems, formal verification, and autonomous agent orchestration.

Visit wisrovi.dev Wisrovi GitHub Suite