Skip to main content

chDB is an in-process SQL OLAP Engine powered by ClickHouse

Project description

Build PyPI Monthly Downloads Twitter

chDB

chDB is an in-process SQL OLAP Engine powered by ClickHouse

Table of Contents

Features

  • In-process SQL OLAP Engine, powered by ClickHouse
  • No need to install ClickHouse
  • Minimal data copy from C++ to Python
  • Input&Output support Parquet, CSV, JSON, Arrow, ORC and more

Installation

Currently, chDB only supports Python 3.7+ on macOS and Linux.

pip install chdb

Usage

Currently, chDB only supports query function, which is used to execute SQL and return desired format data.

import chdb
res = chdb.query('select version()', 'CSV'); print(str(res.get_memview().tobytes()))

work with Parquet or CSV

chdb.query('select * from file("data.parquet", Parquet)', 'Pretty')
chdb.query('select * from file("data.csv", CSV)', 'Pretty')

Documentation

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated. There are something you can help:

  • Report bugs on GitHub Issues.
  • Help me with Windows support, I don't know much about Windows toolchain.
  • The Python Wrapper just have a query function. I want to add more functions to make it more convenient to use. like toPandas, toNumpy and so on.

License

AGPL-v3.0 or Commercial License, see LICENSE for more information.

Acknowledgments

chDB is mainly based on ClickHouse for trade mark and other reasons, I named it chDB.

Contact

  • Email: echo "YXV4dGVud3BjQGdtYWlsLmNvbQ==" | base64 -d
  • Twitter: @auxten

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

chdb-0.2.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (97.2 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

chdb-0.2.2-cp311-cp311-macosx_10_15_universal2.whl (87.8 MB view hashes)

Uploaded CPython 3.11 macOS 10.15+ universal2 (ARM64, x86-64)

chdb-0.2.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (97.2 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

chdb-0.2.2-cp310-cp310-macosx_10_15_x86_64.whl (87.3 MB view hashes)

Uploaded CPython 3.10 macOS 10.15+ x86-64

chdb-0.2.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (97.2 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

chdb-0.2.2-cp39-cp39-macosx_10_15_x86_64.whl (87.3 MB view hashes)

Uploaded CPython 3.9 macOS 10.15+ x86-64

chdb-0.2.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (97.2 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

chdb-0.2.2-cp38-cp38-macosx_10_15_x86_64.whl (87.3 MB view hashes)

Uploaded CPython 3.8 macOS 10.15+ x86-64

chdb-0.2.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (97.2 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

chdb-0.2.2-cp37-cp37m-macosx_10_15_x86_64.whl (87.3 MB view hashes)

Uploaded CPython 3.7m macOS 10.15+ x86-64

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