Skip to main content

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]"

Release files for clearmetric-core 0.9.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for clearmetric-core 0.9.6
File Size Uploaded
clearmetric_core-0.9.6.tar.gz 116.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for clearmetric-core 0.9.6
File Interpreter ABI Platform
clearmetric_core-0.9.6-py3-none-any.whl Python 3 none any Details

Total release size: 272.7 kB

Release files / clearmetric_core-0.9.6.tar.gz

Download URL clearmetric_core-0.9.6.tar.gz
Size 116.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ec3fda5303527707f483bf9092dabf590d4e5bc29b58a4fbc74c6a45e189cd88
BLAKE2b-256 checksum
How to use checksums
967e287de2a0c22a4ac0f7c91ad0a881b166d12e0602d961c84b9b69f805c2d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 4, 2026.

Transparency log

Release files / clearmetric_core-0.9.6-py3-none-any.whl

Download URL clearmetric_core-0.9.6-py3-none-any.whl
Size 155.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
075b860c75bcb307e0a00f9896a50b0c720981e73fc98787c2a98152435e435a
BLAKE2b-256 checksum
How to use checksums
770393f2efe10370f51792ef64020e061e383a7af56f83fbd7d491c2b1b95352
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 4, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.9.6 This release

2 release files

0.9.5

2 release files

0.9.4

2 release files

0.9.3

2 release files

0.9.2

2 release files

0.9.0

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page