Paradime - Python SDK

5.1.0 · active · verified Thu Apr 16

The `paradime-io` library provides the official Python SDK and CLI for interacting with the Paradime platform. Paradime positions itself as an 'operating system for analytics,' designed to streamline analytics engineering workflows by unifying data exploration, dbt™ model building, scheduling, and data lineage in a single environment. It enables users to code, run, and manage data pipelines for analytics and AI. The library is actively maintained, with a current version of 5.1.0, and a regular release cadence based on its extensive release history.

Common errors

Warnings

Install

Imports

Quickstart

Initialize the Paradime client using API credentials. It is highly recommended to store `PARADIME_API_ENDPOINT`, `PARADIME_API_KEY`, and `PARADIME_API_SECRET` as environment variables. These can be generated within your Paradime workspace settings.

import os
from paradime import Paradime

# Retrieve API credentials from environment variables for security
api_endpoint = os.environ.get("PARADIME_API_ENDPOINT", "https://api.paradime.io") # Default API endpoint
api_key = os.environ.get("PARADIME_API_KEY", "")
api_secret = os.environ.get("PARADIME_API_SECRET", "")

if not api_key or not api_secret:
    print("Warning: PARADIME_API_KEY or PARADIME_API_SECRET not set as environment variables.")
    print("Please generate your API key, secret, and endpoint from Paradime workspace settings.")
    print("Falling back to placeholder values. This will likely result in authentication errors.")

paradime = Paradime(
    api_endpoint=api_endpoint,
    api_key=api_key,
    api_secret=api_secret,
)

# Example: List available dbt jobs (requires appropriate permissions)
# try:
#     jobs = paradime.dbt_jobs.list_jobs()
#     print(f"Found {len(jobs.data)} dbt jobs.")
#     for job in jobs.data:
#         print(f"  - Job ID: {job.id}, Name: {job.name}")
# except Exception as e:
#     print(f"Error interacting with Paradime API: {e}")

view raw JSON →