Skip to main content

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


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.2.0.tar.gz (42.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.2.0-py3-none-any.whl (56.0 kB view details)

Uploaded Python 3

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

Hashes for clearmetric_core-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1a75f1a85fa67d2c5e324b7d9de248f9cac8f06c15c301d18bb8b7f4fcf67e24
MD5 7d87eeba6ab202a63ea64ee1dffab87b
BLAKE2b-256 ecb4128bce0ef2b63a4cf2b53db478c948f5bd2eb18ac5044e60e9e1c2ddd562

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for clearmetric_core-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8da134fcc7132ee94937219f0480cb6544b590467158a2fada73192a113c2764
MD5 c84628675d65acee3177e0f8ae981e86
BLAKE2b-256 ef0aca2435a92a63f06e719055ad05f72373397c344745ffde75a083946a8fa6

See more details on using hashes here.

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

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