ClearMetric Core — local compiler, graph engine, and CLI foundation.
Project description
clearmetric-core
One PyPI package. Column-level lineage and impact from SQL/dbt + warehouse metadata exports.
See the repo README.md and clearmetric-architecture.md for positioning. Warehouse metadata is a local INFORMATION_SCHEMA JSON export — not a live connector.
Install
python -m pip install clearmetric-core
CLI (v1 wedge)
cm init
cm connect warehouse --information-schema ./warehouse_schema.json
cm scan
cm compile --format json > graph.json
cm compile --format catalog > catalog.json
cm impact column.fct_orders.net_revenue --upstream
cm clean
cm contract graph.json
If cm is occupied: python -m clearmetric.cli --project-dir . compile --format json
Modules
| Module | Purpose |
|---|---|
clearmetric.lineage |
SQL/dbt artifact build (Module B — parse only) |
clearmetric.graph |
GraphView, impact trace, traversal render |
clearmetric.compiler |
Build, validate, impact orchestration |
clearmetric.adapters |
Warehouse JSON, dbt, SQL ingestion |
clearmetric.core |
Artifact, IDs, merge, bindings interop |
clearmetric.cleaner / clearmetric.policy / clearmetric.projection / clearmetric.emitters |
Checks, floor, catalog slice, output |
clearmetric.query |
Single-statement SQL (Module A — library only) |
clearmetric.powerbi |
PBIP lineage (not in CLI registry) |
Imports
from pathlib import Path
from clearmetric.compiler import build_graph, check_graph, compile
from clearmetric.core import attach_warehouse_bindings, merge, parse_column_selection
Contract & example
docs/contract.md../../spec/clearmetric-project.schema.json../../examples/wedge-jaffle../../docs/v1-boundary.md
python -m pip install -e ".[dev,release]"
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 clearmetric_core-0.6.0.tar.gz.
File metadata
- Download URL: clearmetric_core-0.6.0.tar.gz
- Upload date:
- Size: 67.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
772dfb01cd9ef794a985515f78c66095c8236952eea4793d0db58fe1821f79f5
|
|
| MD5 |
4e05fa3fe7823ba6c5181ece81823b52
|
|
| BLAKE2b-256 |
f1c06cae89094a7ac653358ca4a744427020c799d7c68d113e86d6c601bb7d9a
|
Provenance
The following attestation bundles were made for clearmetric_core-0.6.0.tar.gz:
Publisher:
publish.yml on ClearMetric-Labs/ClearMetric-Core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
clearmetric_core-0.6.0.tar.gz -
Subject digest:
772dfb01cd9ef794a985515f78c66095c8236952eea4793d0db58fe1821f79f5 - Sigstore transparency entry: 1990705227
- Sigstore integration time:
-
Permalink:
ClearMetric-Labs/ClearMetric-Core@cc64b4cae16fc90a56915013f007626d61d89543 -
Branch / Tag:
refs/tags/clearmetric-core-v0.6.0 - Owner: https://github.com/ClearMetric-Labs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@cc64b4cae16fc90a56915013f007626d61d89543 -
Trigger Event:
push
-
Statement type:
File details
Details for the file clearmetric_core-0.6.0-py3-none-any.whl.
File metadata
- Download URL: clearmetric_core-0.6.0-py3-none-any.whl
- Upload date:
- Size: 96.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c51df22aa0f9f032951f346882380ce1074a5bc8279411102cc8e49940bfae1
|
|
| MD5 |
2ad64210e0f0c44e5109465bc6e9434b
|
|
| BLAKE2b-256 |
31d20c5884924785fec7eaa16c0eed293beab095e9643f86c9ca134743d20b85
|
Provenance
The following attestation bundles were made for clearmetric_core-0.6.0-py3-none-any.whl:
Publisher:
publish.yml on ClearMetric-Labs/ClearMetric-Core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
clearmetric_core-0.6.0-py3-none-any.whl -
Subject digest:
9c51df22aa0f9f032951f346882380ce1074a5bc8279411102cc8e49940bfae1 - Sigstore transparency entry: 1990705354
- Sigstore integration time:
-
Permalink:
ClearMetric-Labs/ClearMetric-Core@cc64b4cae16fc90a56915013f007626d61d89543 -
Branch / Tag:
refs/tags/clearmetric-core-v0.6.0 - Owner: https://github.com/ClearMetric-Labs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@cc64b4cae16fc90a56915013f007626d61d89543 -
Trigger Event:
push
-
Statement type: