ClickHouse Pool for Python
A thread-safe connection pool for ClickHouse. Inspired by psycopg2 and using
clickhouse-driver for
connections.
Installation
pip install clickhouse-pool
Quick Start
from clickhouse-pool import ChPool
# create a pool
pool = ChPool(host='localhost')
# get a conn (clickhouse-driver client)
conn = pool.get_conn()
# execute sql and print the result
result = conn.execute("SELECT * FROM system.numbers LIMIT 5")
print(result)
# always put the connection back in the pool once you're done
pool.put_conn(conn=conn)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
clickhouse-pool-0.1.0.tar.gz
(2.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file clickhouse-pool-0.1.0.tar.gz.
File metadata
- Download URL: clickhouse-pool-0.1.0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc0b554799f4b80773d5d240355519a761bf255fe65804d61a5682491ddefe60
|
|
| MD5 |
82061b4ce6ea220fabe63ffeb87ba1e9
|
|
| BLAKE2b-256 |
dc1c3314d308f73b1c4148b9333acb7131e8a5faf0f03ea1fc46e54dfb0e97cb
|
File details
Details for the file clickhouse_pool-0.1.0-py3-none-any.whl.
File metadata
- Download URL: clickhouse_pool-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2ea9fa81b657fb85f9cb2ff97e9d9f1c8eab845cb8978ad71f5fd6d25711cd6
|
|
| MD5 |
89052dffdd18ef7c3ac80013a0f7aa9f
|
|
| BLAKE2b-256 |
175d59190a35b43ba2b3bb69b68c588cf6a07eb332973934a3394c0ea9a265fb
|