clickhouse avatar

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-code

Installs 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

More from clickhouse/agent-skills

All 10
1shopify avatarshopify-hydrogenshopify/shopify-ai-toolkitHydrogen storefront implementation cookbooks. Some of the available recipes are: B2B Commerce, Bundles, Combined Listings, Custom Cart Method, Dynamic Content w9.7Kskills.sh installs
2okx avatarokx-dex-tokenokx/onchainos-skillsUse this skill for token-level data: search tokens, trending/hot tokens (热门, 代币榜单), liquidity pools, holder distribution (whale/巨鲸, sniper, bundler-tagged holde9.7Kskills.sh installs
3nomadamas avatarkstartup-searchnomadamas/k-skill공공데이터포털 창업진흥원 K-Startup Open API(15125364)로 통합 공고 사업 정보·지원사업 공고·창업 콘텐츠·통계보고서를 k-skill-proxy 경유로 조회한다. 검색 전용. 돌쇠에서는 공식 표면을 통한 후속 액션까지 진행한다.9.3Kskills.sh installs
4aws avataramazon-bedrockaws/agent-toolkit-for-awsBuilds generative AI applications on Amazon Bedrock. Covers model invocation (Converse API, InvokeModel), RAG with Knowledge Bases, Bedrock Agents, Guardrails, 9Kskills.sh installs
5makenotion avatarnotion-climakenotion/skillsUse the Notion CLI (`ntn`) to interact with the Notion API, manage workers, and upload files. Use when the user asks to "call the Notion API", "deploy a worker"9Kskills.sh installs
6onmax avatarnuxtonmax/nuxt-skillsNuxt application development and maintenance. Use for project structure, pages and routing, data fetching, SSR-safe state, middleware, plugins, server routes, r8.8Kskills.sh installs