Skip to main content

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.toml declares the entry‑point:
    [project.entry-points."tigrbl.engine"]
    clickhouse = "tigrbl_engine_clickhouse:register"
    
  • register() (in __init__.py) calls tigrbl.engine.registry.register_engine("clickhouse", clickhouse_engine).
  • ClickHouseEngine subclasses tigrbl.engine._engine.Engine.
  • ClickHouseSession subclasses tigrbl.session.base.TigrblSessionBase and uses clickhouse_connect.

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

tigrbl_engine_clickhouse-0.1.1.dev2.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

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

tigrbl_engine_clickhouse-0.1.1.dev2-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file tigrbl_engine_clickhouse-0.1.1.dev2.tar.gz.

File metadata

  • Download URL: tigrbl_engine_clickhouse-0.1.1.dev2.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.3 {"installer":{"name":"uv","version":"0.10.3","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

Hashes for tigrbl_engine_clickhouse-0.1.1.dev2.tar.gz
Algorithm Hash digest
SHA256 26ae933e3f458597bdbbc3a595aa669fc20079cdce6bec295998ddf57d77a98e
MD5 0dba421243b72b2f6ccbeaf557c46741
BLAKE2b-256 008dc5b24dd9ff8d1ae2c622272b2435b52b7d55095010812a7265493cbe1137

See more details on using hashes here.

File details

Details for the file tigrbl_engine_clickhouse-0.1.1.dev2-py3-none-any.whl.

File metadata

  • Download URL: tigrbl_engine_clickhouse-0.1.1.dev2-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.3 {"installer":{"name":"uv","version":"0.10.3","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

Hashes for tigrbl_engine_clickhouse-0.1.1.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 9fc9cb7b40f5119bb4c1c33d861cc6ed728be8aa7edabc8292d7f2baa7f1f630
MD5 7d2ca2612bd8f9f89425ec7873e9b0b2
BLAKE2b-256 f7a35b9398d2a30bff4217f82e045636142e76994bb0f3d85b64d98f18b0839c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page