ClearMetric Core — local compiler, graph engine, and CLI foundation.
Project description
clearmetric-core
One PyPI package for the ClearMetric analytics backbone: a canonical, queryable graph compiled from SQL, dbt, and 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
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 |
clearmetric.graph |
GraphView, impact trace, traversal render, graph slices |
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, security floor, projections, output formats |
clearmetric.query |
Single-statement SQL structure and contract support |
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
python -m pip install -e ".[dev,runtime,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.8.0.tar.gz.
File metadata
- Download URL: clearmetric_core-0.8.0.tar.gz
- Upload date:
- Size: 72.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d152e188e500644b29be8c865e26bd98111c7f7eaa448e1ae2fc97e6064a2582
|
|
| MD5 |
f74fffcbf26e543dae76e3ebb189ddca
|
|
| BLAKE2b-256 |
06bc283d0d2e430459d92ad237ba5db2d043d507486ac01a61800caf302b8019
|
Provenance
The following attestation bundles were made for clearmetric_core-0.8.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.8.0.tar.gz -
Subject digest:
d152e188e500644b29be8c865e26bd98111c7f7eaa448e1ae2fc97e6064a2582 - Sigstore transparency entry: 1997001162
- Sigstore integration time:
-
Permalink:
ClearMetric-Labs/ClearMetric-Core@4a61c3e3dedec20827f09636fb9e5630c33cb03c -
Branch / Tag:
refs/tags/clearmetric-core-v0.8.0 - Owner: https://github.com/ClearMetric-Labs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4a61c3e3dedec20827f09636fb9e5630c33cb03c -
Trigger Event:
push
-
Statement type:
File details
Details for the file clearmetric_core-0.8.0-py3-none-any.whl.
File metadata
- Download URL: clearmetric_core-0.8.0-py3-none-any.whl
- Upload date:
- Size: 101.5 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 |
a447ea18f6d9124965228dedfb54cac271473752bf35c31e944240007f39fe2d
|
|
| MD5 |
dcce4b234fea722cd0050d0589bfb370
|
|
| BLAKE2b-256 |
83acd1913b372cddb461ab4c86de4b988170254478e5dd64116394169bc96590
|
Provenance
The following attestation bundles were made for clearmetric_core-0.8.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.8.0-py3-none-any.whl -
Subject digest:
a447ea18f6d9124965228dedfb54cac271473752bf35c31e944240007f39fe2d - Sigstore transparency entry: 1997001281
- Sigstore integration time:
-
Permalink:
ClearMetric-Labs/ClearMetric-Core@4a61c3e3dedec20827f09636fb9e5630c33cb03c -
Branch / Tag:
refs/tags/clearmetric-core-v0.8.0 - Owner: https://github.com/ClearMetric-Labs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4a61c3e3dedec20827f09636fb9e5630c33cb03c -
Trigger Event:
push
-
Statement type: