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.

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

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

bytehouse_connect-0.8.6.tar.gz (376.9 kB view details)

Uploaded Source

Built Distribution

bytehouse_connect-0.8.6-cp310-cp310-macosx_10_9_universal2.whl (284.4 kB view details)

Uploaded CPython 3.10macOS 10.9+ universal2 (ARM64, x86-64)

File details

Details for the file bytehouse_connect-0.8.6.tar.gz.

File metadata

  • Download URL: bytehouse_connect-0.8.6.tar.gz
  • Upload date:
  • Size: 376.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for bytehouse_connect-0.8.6.tar.gz
Algorithm Hash digest
SHA256 1c691f9b8d4d0d1f5be06544d0e25854d2ff245160884f486f9a2c8415ddc05f
MD5 e2f6caa6c4e883b9c7d36dd064843d12
BLAKE2b-256 a2eeb5f27fa15550e0613e9d80837efd6c2f15a661db38ca48b1a4029e793102

See more details on using hashes here.

File details

Details for the file bytehouse_connect-0.8.6-cp310-cp310-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for bytehouse_connect-0.8.6-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 92fc69a9b79b725bfaab5ddbb0553787ab70ae70bec4710e17e13d207f643dfd
MD5 9b5c73b24edc08ad9d38b08fdc2cdddc
BLAKE2b-256 6f4526bf0fcac690c251f897cc84bd62b53c39c83927e0d377700b165a6015ea

See more details on using hashes here.

Supported by

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