Tigrbl engine plugin providing ClickHouse database support.
Project description
tigrbl_engine_clickhouse
A ClickHouse engine plugin for tigrbl. This package registers a new engine
kind "clickhouse" that tigrbl auto‑discovers via the tigrbl.engine entry‑point group.
Both classes in this package are subclasses of tigrbl's first‑class objects.
Installation
pip install tigrbl_engine_clickhouse
Usage
from tigrbl.engine.engine_spec import EngineSpec
spec = EngineSpec(kind="clickhouse", mapping={
"host": "localhost",
"port": 8123,
"username": "default",
"password": "",
"database": "default",
"secure": False,
})
eng, make_session = spec.build() # resolved via entry-points
s = make_session() # returns a ClickHouseSession (TigrblSessionBase subclass)
# Example query
rows = await s._execute_impl("SELECT 1 AS x")
print(rows)
await s.close()
How it’s wired
pyproject.tomldeclares the entry‑point:[project.entry-points."tigrbl.engine"] clickhouse = "tigrbl_engine_clickhouse:register"
register()(in__init__.py) callstigrbl.engine.registry.register_engine("clickhouse", clickhouse_engine).ClickHouseEnginesubclassestigrbl._concrete._engine.Engine.ClickHouseSessionsubclassestigrbl.session.base.TigrblSessionBaseand usesclickhouse_connect.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 tigrbl_engine_clickhouse-0.1.1.tar.gz.
File metadata
- Download URL: tigrbl_engine_clickhouse-0.1.1.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9dda9afcdd417a0dfcc8309dc9e94353191a85da31de92f9bfaa18e3573df9c
|
|
| MD5 |
125c6e486d0ed97060c000bfaf1278a4
|
|
| BLAKE2b-256 |
5b805390495ce51414ff258d9709b9054b178892fd8d91884200798ad7f8c19f
|
File details
Details for the file tigrbl_engine_clickhouse-0.1.1-py3-none-any.whl.
File metadata
- Download URL: tigrbl_engine_clickhouse-0.1.1-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a649f9317ded6dbe8be603a7706b522894d3c1f655cb6ec6500327451f38d1a7
|
|
| MD5 |
817fdb1a538fb9f71f303ff774069cda
|
|
| BLAKE2b-256 |
189db73404e7256ed3089d39e994828a41a979c39fcab5df96bd29c45b1bddfd
|