Skip to main content

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

Experimental (internal): backbone lab primitives (consumer-catalog, frontend-contract, cm query) require CM_EXPERIMENTAL=1 — see ../../docs/backbone-lab.md. Not part of the v1 wedge promise until adoption-gate.md passes.

python -m pip install -e ".[dev,release]"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clearmetric_core-0.6.1.tar.gz (68.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clearmetric_core-0.6.1-py3-none-any.whl (96.4 kB view details)

Uploaded Python 3

File details

Details for the file clearmetric_core-0.6.1.tar.gz.

File metadata

  • Download URL: clearmetric_core-0.6.1.tar.gz
  • Upload date:
  • Size: 68.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for clearmetric_core-0.6.1.tar.gz
Algorithm Hash digest
SHA256 4794cefc4fd7e0c5c6b294e398e2b2b265361da5798cd62b5d67eda21e0f06fe
MD5 38a36b94fb12dcea20f79a2ce6ee0c2d
BLAKE2b-256 cfc961dcda10178372535d4c25f73c19855841e5cbbd6cbaf9b74e292f929d75

See more details on using hashes here.

Provenance

The following attestation bundles were made for clearmetric_core-0.6.1.tar.gz:

Publisher: publish.yml on ClearMetric-Labs/ClearMetric-Core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file clearmetric_core-0.6.1-py3-none-any.whl.

File metadata

File hashes

Hashes for clearmetric_core-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c5be8c7798c942b5f1f3afa0b6cb9261cc870fd5b62d2cf5b11c615e45ed68ac
MD5 677fc89753479b1af24e5c848576701a
BLAKE2b-256 9b952d837f87479614c3d43f67059e3690ca36e45bad3749be100ec8bbbf7908

See more details on using hashes here.

Provenance

The following attestation bundles were made for clearmetric_core-0.6.1-py3-none-any.whl:

Publisher: publish.yml on ClearMetric-Labs/ClearMetric-Core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page