Skip to main content

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.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.1.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clickhouse_pool-0.1.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file clickhouse-pool-0.1.1.tar.gz.

File metadata

  • Download URL: clickhouse-pool-0.1.1.tar.gz
  • Upload date:
  • Size: 3.0 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

Hashes for clickhouse-pool-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ccbbf95e3216edf1ff259dee52a433fd91b3765c109f9e97131835734dc8682f
MD5 3ed80330afdd73c5439ebda9d3110e94
BLAKE2b-256 ec04490da2ec8604408682dd8ac879eaa6d92b6cec7f9da3c68948a052298416

See more details on using hashes here.

File details

Details for the file clickhouse_pool-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: clickhouse_pool-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.3 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

Hashes for clickhouse_pool-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9c33acb8e6e6d987db66aa34473c56c4dc5b582071c6875ef4b2b07d2cd8797c
MD5 f8e907888c5743f6d9ddfb36601be3af
BLAKE2b-256 05ffa1f6fe8eb7a1ca8dd8a6949baccfa76c1318581c36c3ed2dba3cedbb24f4

See more details on using hashes here.

Release history Release notifications | RSS feed

0.6.1

2 files

0.6.0

2 files

0.5.3

2 files

0.5.0

2 files

0.4.3

2 files

0.4.2

2 files

0.4.0

2 files

0.3.1

2 files

0.3.0

2 files

0.2.0

2 files

This release

0.1.1 This release

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page