robot-piglet fb7e2db618 Intermediate changes | 2 months ago | |
---|---|---|
.. | ||
.dist-info | fb7e2db618 Intermediate changes | 2 months ago |
clickhouse_connect | fb7e2db618 Intermediate changes | 2 months ago |
LICENSE | 81e1d6f415 Intermediate changes | 8 months ago |
README.md | e9497f65d8 Intermediate changes | 3 months ago |
ya.make | fb7e2db618 Intermediate changes | 2 months ago |
A high performance core database driver for connecting ClickHouse to Python, Pandas, and Superset
ClickHouse Connect currently uses the ClickHouse HTTP interface for maximum compatibility.
pip install clickhouse-connect
ClickHouse Connect requires Python 3.8 or higher.
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}
.
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.
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.
The documentation for ClickHouse Connect has moved to ClickHouse Docs