ClearMetric Core — local compiler, graph engine, and CLI foundation.
Project description
clearmetric-core
One PyPI package. All ClearMetric Core modules (clearmetric.core, .lineage,
.query, .powerbi, .cli) ship inside this distribution.
Install
python -m pip install clearmetric-core
CLI
cm compile ./manifest.json --dialect postgres
cm impact orders.amount ./manifest.json --dialect postgres --upstream
If cm is occupied on your PATH:
python -m clearmetric.cli compile ./manifest.json --dialect postgres
Modules
| Module | Purpose |
|---|---|
clearmetric.core |
Artifact schema, canonical IDs, merge, cross-graph interop |
clearmetric.lineage |
Project-level SQL lineage from dbt manifests and SQL folders |
clearmetric.query |
Single-statement SQL structure mapping |
clearmetric.powerbi |
PBIP file lineage and warehouse merge |
clearmetric.cli |
cm command router |
Imports
from clearmetric.core import (
CatalogArtifact,
Edge,
Evidence,
Node,
Warning,
load_table_alias_map,
merge,
resolve_table_match,
)
from clearmetric.lineage import build_catalog_artifact, trace_upstream
For local development:
python -m pip install -e ".[dev,release]"
Contract
The source of truth for the shared artifact contract is
docs/contract.md.
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.2.0.tar.gz.
File metadata
- Download URL: clearmetric_core-0.2.0.tar.gz
- Upload date:
- Size: 42.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a75f1a85fa67d2c5e324b7d9de248f9cac8f06c15c301d18bb8b7f4fcf67e24
|
|
| MD5 |
7d87eeba6ab202a63ea64ee1dffab87b
|
|
| BLAKE2b-256 |
ecb4128bce0ef2b63a4cf2b53db478c948f5bd2eb18ac5044e60e9e1c2ddd562
|
Provenance
The following attestation bundles were made for clearmetric_core-0.2.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.2.0.tar.gz -
Subject digest:
1a75f1a85fa67d2c5e324b7d9de248f9cac8f06c15c301d18bb8b7f4fcf67e24 - Sigstore transparency entry: 1987250788
- Sigstore integration time:
-
Permalink:
ClearMetric-Labs/ClearMetric-Core@f29217c556858886e1c453188c044f98b0eaf671 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ClearMetric-Labs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f29217c556858886e1c453188c044f98b0eaf671 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file clearmetric_core-0.2.0-py3-none-any.whl.
File metadata
- Download URL: clearmetric_core-0.2.0-py3-none-any.whl
- Upload date:
- Size: 56.0 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 |
8da134fcc7132ee94937219f0480cb6544b590467158a2fada73192a113c2764
|
|
| MD5 |
c84628675d65acee3177e0f8ae981e86
|
|
| BLAKE2b-256 |
ef0aca2435a92a63f06e719055ad05f72373397c344745ffde75a083946a8fa6
|
Provenance
The following attestation bundles were made for clearmetric_core-0.2.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.2.0-py3-none-any.whl -
Subject digest:
8da134fcc7132ee94937219f0480cb6544b590467158a2fada73192a113c2764 - Sigstore transparency entry: 1987250890
- Sigstore integration time:
-
Permalink:
ClearMetric-Labs/ClearMetric-Core@f29217c556858886e1c453188c044f98b0eaf671 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ClearMetric-Labs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f29217c556858886e1c453188c044f98b0eaf671 -
Trigger Event:
workflow_dispatch
-
Statement type: