fineprint
The fine print of your metrics. 从 dbt 项目的编译产物(manifest / catalog / compiled SQL)逆向合成每个指标的完整技术口径——零数据库连接。
Reverse-engineers the full technical caliber of every metric from your dbt artifacts (manifest / catalog / compiled SQL) — zero database connection.
- 字段级血缘图 column-level lineage:跨模型、进 CTE/子查询/UNION/PIVOT, 条件与聚合语义一并入图。
- 口径卡 caliber cards:确定性公式组合器(发布权威)× LLM 解读(解释与 叙述)双通道互证,每个事实带机器证据;组合器不可证时 LLM 兜底并标注原因。 在 5 个公开真实项目(34,499 列)上组合器覆盖 99.7%,残余全部具名。
- 口径漂移检测 caliber drift:图快照逐语义点比对,SQL 改动落到受影响 指标与条件粒度。
pip install fineprint
metriclens init --project <dbt 项目目录> # 生成 metriclens.yml 模板
metriclens graph --project DIR # 建血缘图(需先 dbt compile + docs generate)
metriclens synth --project DIR # 合成口径卡(需配置 LLM 端点)
metriclens drift --project DIR # 漂移检测
fineprint 与 metriclens 两个命令等价;import 名为 metriclens。
LLM 端点经环境变量或项目根 .env 配置(METRICLENS_LLM_BASE /
METRICLENS_LLM_KEY / METRICLENS_LLM_MODEL),兼容 OpenAI 风格 API。
无 catalog 也能跑(列 schema 由 yml 声明 + 编译 SQL 拓扑推断补全);能执行
dbt docs generate 时仍建议补上,实测列集更可靠。
License: Apache-2.0
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 fineprint-0.8.0.tar.gz.
File metadata
- Download URL: fineprint-0.8.0.tar.gz
- Upload date:
- Size: 74.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e427c760c8f7e7eaed31f8c3e33f7d47eea20adbc9c5ee0ab4c7078a90a7844
|
|
| MD5 |
ff8ada128fa78e8c0b5fadfafa3aab1d
|
|
| BLAKE2b-256 |
ba650a3f6679d71db3cf0d9d53b324acc2925d9554c2701beba29d5eda7d3963
|
File details
Details for the file fineprint-0.8.0-py3-none-any.whl.
File metadata
- Download URL: fineprint-0.8.0-py3-none-any.whl
- Upload date:
- Size: 83.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87ef32e35f3b628bf6b20cbfbd9cd0ffe76fa69f06510ed1484cb2f700831e62
|
|
| MD5 |
4155ea5b42d74b4120a8fa6ba2f61bdc
|
|
| BLAKE2b-256 |
e59b5a9e3a4699a98a3c17b6c8fa0e0b3adb5ee0735a474ee7e374153d21629c
|