Skip to main content

MetricFlow SDK - client library and models for interacting with the MetricFlow API

Project description

kolosis-metricflow-sdk

Python SDK for working with the Kolosis MetricFlow API.

Install

uv add kolosis-metricflow-sdk

Configure Authentication

Client IDs are slug-based (lowercase letters, numbers, and hyphens only).

from kolosis_metricflow_sdk.client.client_config import MetricflowClientSettings

settings = MetricflowClientSettings(
    base_url="https://metrics-api.example.com",
    api_version="v1",
    client_id="analytics-team",
    client_secret="your-client-secret",
)

You can also load authentication from environment variables:

  • METRICFLOW_CLIENT_ID
  • METRICFLOW_CLIENT_SECRET

Create an HTTP Client

from kolosis_metricflow_sdk.client.metrics_api_client import create_metrics_api_client

client = create_metrics_api_client(settings=settings)

Models

The SDK includes Pydantic models used by the API:

  • MetricQueryParams
  • MetricQueryResponse
  • CatalogMetricsResponse
  • CatalogDimensionsResponse

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

kolosis_metricflow_sdk-0.8.0.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

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

kolosis_metricflow_sdk-0.8.0-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

Details for the file kolosis_metricflow_sdk-0.8.0.tar.gz.

File metadata

  • Download URL: kolosis_metricflow_sdk-0.8.0.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for kolosis_metricflow_sdk-0.8.0.tar.gz
Algorithm Hash digest
SHA256 f3037babef8b193f113f48beb65fd678f1adda050883b35864d275d629c7c65c
MD5 8f45a5abe8f9b505f3631a91ac257028
BLAKE2b-256 fd3ac9fe66c1a5e8e2444a30b24544cc69fa68f76a6f707bdf5624551ffebf77

See more details on using hashes here.

File details

Details for the file kolosis_metricflow_sdk-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: kolosis_metricflow_sdk-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 18.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for kolosis_metricflow_sdk-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 51b84534365bcb4326abcd1280754bdd633d6b4fefa31395fe92c89ed536d8c5
MD5 309a673f17db74087551ba537fd753f8
BLAKE2b-256 138935a817ac56028b368d31565916a5ea08128879a559e45045d2bedea836ec

See more details on using hashes here.

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