Skip to main content

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


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.7.0.tar.gz (71.6 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.7.0-py3-none-any.whl (100.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: clearmetric_core-0.7.0.tar.gz
  • Upload date:
  • Size: 71.6 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.7.0.tar.gz
Algorithm Hash digest
SHA256 4d9e2d71e69ad78aad98ad79f4a3fa9a413cf72049b5131f5b992577d4993ded
MD5 7468b87ba75f1a2d5ab75907f097f26b
BLAKE2b-256 065cb37eba0ece461baf7e7e1acf1141b16e51dee6f2b9fab187e77c1c522077

See more details on using hashes here.

Provenance

The following attestation bundles were made for clearmetric_core-0.7.0.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.7.0-py3-none-any.whl.

File metadata

File hashes

Hashes for clearmetric_core-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 45a0c06d21fcf8ca363312e5b10e85683c88bd8b25eddbc744903c618e05014a
MD5 2669663d65c9600a21f9221ad2d64048
BLAKE2b-256 0148e9c41a75988027dd25afb8a4a1d2ec95fb53960c5e9b02abbb4841aa7e2a

See more details on using hashes here.

Provenance

The following attestation bundles were made for clearmetric_core-0.7.0-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