Skip to main content

ClickHouse Connect

A high performance core database driver for connecting ClickHouse to Python, Pandas, and Superset

  • Pandas DataFrames
  • Numpy Arrays
  • PyArrow Tables
  • Superset Connector
  • SQLAlchemy 1.3 and 1.4 (limited feature set)

ClickHouse Connect currently uses the ClickHouse HTTP interface for maximum compatibility.

Installation

pip install clickhouse-connect

ClickHouse Connect requires Python 3.8 or higher.

Superset Connectivity

ClickHouse Connect is fully integrated with Apache Superset. Previous versions of ClickHouse Connect utilized a dynamically loaded Superset Engine Spec, but as of Superset v2.1.0 the engine spec was incorporated into the main Apache Superset project and removed from clickhouse-connect in v0.6.0. If you have issues connecting to earlier versions of Superset, please use clickhouse-connect v0.5.25.

When creating a Superset Data Source, either use the provided connection dialog, or a SqlAlchemy DSN in the form clickhousedb://{username}:{password}@{host}:{port}.

SQLAlchemy Implementation

ClickHouse Connect incorporates a minimal SQLAlchemy implementation (without any ORM features) for compatibility with Superset. It has only been tested against SQLAlchemy versions 1.3.x and 1.4.x, and is unlikely to work with more complex SQLAlchemy applications.

Asyncio Support

ClickHouse Connect provides an async wrapper, so that it is possible to use the client in an asyncio environment. See the run_async example for more details.

Complete Documentation

The documentation for ClickHouse Connect has moved to ClickHouse Docs

Metadata

Release files for bytehouse-connect 0.8.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bytehouse-connect 0.8.6
File Size Uploaded
bytehouse_connect-0.8.6.tar.gz 376.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bytehouse-connect 0.8.6
File Interpreter ABI Platform
bytehouse_connect-0.8.6-cp310-cp310-macosx_10_9_universal2.whl CPython 3.10 CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64) Details

Total release size: 661.2 kB

Release files / bytehouse_connect-0.8.6.tar.gz

Download URL bytehouse_connect-0.8.6.tar.gz
Size 376.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1c691f9b8d4d0d1f5be06544d0e25854d2ff245160884f486f9a2c8415ddc05f
BLAKE2b-256 checksum
How to use checksums
a2eeb5f27fa15550e0613e9d80837efd6c2f15a661db38ca48b1a4029e793102
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.11

Release files / bytehouse_connect-0.8.6-cp310-cp310-macosx_10_9_universal2.whl

Download URL bytehouse_connect-0.8.6-cp310-cp310-macosx_10_9_universal2.whl
Size 284.4 kB
Tags CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
92fc69a9b79b725bfaab5ddbb0553787ab70ae70bec4710e17e13d207f643dfd
BLAKE2b-256 checksum
How to use checksums
6f4526bf0fcac690c251f897cc84bd62b53c39c83927e0d377700b165a6015ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.11

Release history Release notifications | RSS feed

This release

0.8.6 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page