
Chdb Sql
This embeds ClickHouse's SQL engine directly in your Python process so you can query parquet, CSV, JSON files, S3 buckets, and remote databases without spinning up a server. The appeal is running analytical queries with ClickHouse's 1000+ functions (window functions, geo functions, JSON operators) on whatever data source you point it at, including cross-source joins between a Postgres table and a local parquet file in one query. Use the simple query() function for one-offs or Session for multi-step pipelines that persist tables. It's Apache 2.0 licensed and requires Python 3.9+ on macOS or Linux. Skip this if you want pandas-style DataFrame operations; there's a separate chdb-datastore skill for that.
- skills.sh installs
- 9.7K
- GitHub stars
- 565
- last updated
- Aug 21, 2026
Install
$ npx -y skills add clickhouse/agent-skills --skill chdb-sql --agent claude-codeInstalls into .claude/skills of the current project.
Files
chdb SQL — ClickHouse in Your Python Process
Run ClickHouse SQL directly in Python — no server needed. Query local files, remote databases, and cloud storage with full ClickHouse SQL power.
pip install chdb
Decision Tree: Pick the Right API
1. One-off query on files or databases → chdb.query()
2. Multi-step analysis with tables → Session
3. DB-API 2.0 connection → chdb.connect()
4. Pandas-style DataFrame operations → Use chdb-datastore skill instead
chdb.query() — One Line, Any Data
import chdb
chdb.query("SELECT * FROM file('data.parquet', Parquet) WHERE price > 100 LIMIT 10") # local files
chdb.query("SELECT * FROM mysql('db:3306', 'shop', 'orders', 'root', 'pass')") # databases
chdb.query("SELECT * FROM s3('s3://bucket/data.parquet', NOSIGN) LIMIT 10") # cloud storage
chdb.query("SELECT * FROM deltaLake('s3://bucket/delta/table', NOSIGN) LIMIT 10") # data lakes
Sponsors
Details
- Repository
- github.com/clickhouse/agent-skills
- Categories
- Backend & APIs, Code Review & Quality, AI & Agent Building, Data Science & ML, Python, Cloud & Infrastructure, Databases
- First seen
- Jun 3, 2026