https://github.com/tomoncle/clickhouse-http-client
clickhouse http client.
https://github.com/tomoncle/clickhouse-http-client
clickhouse clickhouse-client http pypi python3 requests
Last synced: 22 days ago
JSON representation
clickhouse http client.
- Host: GitHub
- URL: https://github.com/tomoncle/clickhouse-http-client
- Owner: tomoncle
- License: mit
- Created: 2021-06-30T08:46:38.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-09-01T01:46:18.000Z (over 3 years ago)
- Last Synced: 2025-04-14T02:16:22.719Z (about 1 month ago)
- Topics: clickhouse, clickhouse-client, http, pypi, python3, requests
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 2
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# clickhouse-http-client
clickhouse http client.## Install
* Use source:
```bash
$ git clone https://github.com/tomoncle/clickhouse-http-client.git
$ cd clickhouse-http-client
$ sudo python setup.py install
```* Use pip:
```bash
$ pip install clickhouse-http-client
```## Usage
* query
```python
from clickhouse_http_client import ClickHouseck = ClickHouse(password="123456")
ck.text("select * from table_name")
ck.json("select * from table_name")
```* delete
```python
from clickhouse_http_client import ClickHouseck = ClickHouse(password="123456")
ck.delete("table_name", "id IS NOT NULL")
```* save
```python
from clickhouse_http_client import ClickHouseck = ClickHouse(password="123456")
ck.insert("table_name", {"name":"tomoncle", "age":"27"})
```* update
```python
from clickhouse_http_client import ClickHouseck = ClickHouse(password="123456", show_sql=True)
```