Metadata-Version: 2.1
Name: intelecy-pandahouse
Version: 0.3.1
Summary: Pandas interface for Clickhouse HTTP API
Home-page: https://github.com/Intelecy/pandahouse
License: BSD-3-Clause
Author: Krisztián Szűcs
Author-email: szucs.krisztian@gmail.com
Requires-Python: >=3.6.1,<4.0.0
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Dist: pandas (>=0.25.3,<0.26.0)
Requires-Dist: requests (>=2.22.0,<3.0.0)
Requires-Dist: toolz (>=0.10.0,<0.11.0)
Project-URL: Repository, https://github.com/Intelecy/pandahouse
Description-Content-Type: text/markdown

Pandahouse
==========

> Note: this is a fork. You probably want to use https://github.com/kszucs/pandahouse

Pandas interface for ClickHouse HTTP API

Install
-------

```bash
pip install pandahouse
```

Usage
-----

Writing a dataframe to ClickHouse

```python
connection = {"host": "http://clickhouse-host:8123",
              "database": "test"}
affected_rows = to_clickhouse(df, table="name", connection=connection)
```

Reading arbitrary ClickHouse query to pandas

```python
df = read_clickhouse("SELECT * FROM {db}.table", index_col="id",
                     connection=connection)
```
