ClickHouse backend
The DuckDB builder remains the source of truth. Build a DuckDB file with
build_merged_duckdb, then upload its canonical tables into ClickHouse:
uv run python scripts/upload_clickhouse.py data/dbs_final/SmallMolecule.duckdb --database normalization
The upload shows a progress bar for each copied table; pass --no-progress to
silence it.
Connection settings are read from .env with python-dotenv and use the
official clickhouse-connect client. Set CH_HTTP, for example
http://host:8123/normalization; CH_USER and CH_PASSWORD may be supplied
separately and override URL credentials.
Use the ClickHouse backend from Python:
import asyncio
from norm_toolkit import ClickHouseNormalizer
async def main():
normalizer = await ClickHouseNormalizer.create(database="normalization")
result = await normalizer.normalize(["aspirin"], top_k=5)
print(result)
asyncio.run(main())
You can also pass a DSN in code:
normalizer = await ClickHouseNormalizer.create(
dsn="http://host:8123/normalization",
database="normalization",
)
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 norm_toolkit-2.0.0.tar.gz.
File metadata
- Download URL: norm_toolkit-2.0.0.tar.gz
- Upload date:
- Size: 41.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","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 |
f8411fb9bc4c3dcab1929c2e2591311fdb7c9700fd25281525690bdef52a0846
|
|
| MD5 |
17d85898634035a356d5e95e49a95e02
|
|
| BLAKE2b-256 |
24dcb96d3e6749dfa7ec74aa4e937e2cb0f84984c80ebbdde048e8af91c8bd7e
|
File details
Details for the file norm_toolkit-2.0.0-py3-none-any.whl.
File metadata
- Download URL: norm_toolkit-2.0.0-py3-none-any.whl
- Upload date:
- Size: 46.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","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 |
404a6551ad551ce71feb2390031ca0ace617970c690527a9a5bb0600927e1a3a
|
|
| MD5 |
990f5bab6763dd6ca634836c82f37c6c
|
|
| BLAKE2b-256 |
f17b710b4105b63de2c405e6f46be057096848191911d63b0580e281bafb7109
|