Skip to main content

ClickHouse Database Core Driver for Python, Pandas, and Superset

Project description

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.

Complete Documentation

The documentation for ClickHouse Connect has moved to ClickHouse Docs

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clickhouse-connect-0.7.1.tar.gz (77.1 kB view hashes)

Uploaded source

Built Distributions

clickhouse_connect-0.7.1-cp312-cp312-win32.whl (212.1 kB view hashes)

Uploaded cp312

clickhouse_connect-0.7.1-cp311-cp311-win32.whl (211.8 kB view hashes)

Uploaded cp311

clickhouse_connect-0.7.1-cp310-cp310-win32.whl (212.2 kB view hashes)

Uploaded cp310

clickhouse_connect-0.7.1-cp39-cp39-win32.whl (213.6 kB view hashes)

Uploaded cp39

clickhouse_connect-0.7.1-cp38-cp38-win32.whl (213.5 kB view hashes)

Uploaded cp38

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page