Skip to main content

clickhouse http client, author liyuanjun

Project description

clickhouse-http-client

clickhouse http client.

Install

Use source:

$ git clone https://github.com/tomoncle/clickhouse-http-client.git
$ cd clickhouse-http-client
$ sudo python setup.py install

Use pip:

$ pip install clickhouse-http-client

Usage

init:

from clickhouse_http_client import ClickHouse
ck = ClickHouse(password="123456")

query:

ck.text("select * from table_name")
ck.json("select * from table_name")

delete:

ck.delete("table_name", "id IS NOT NULL")

save:

ck.insert("table_name", {"name":"tomoncle", "age":"27"})

update:

ck.update("table_name", "status=1", {"name":"tomoncle", "age":"27"})

Project details


Download files

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

Source Distribution

clickhouse-http-client-1.0.2.tar.gz (2.8 kB view hashes)

Uploaded Source

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