Skip to main content

drc-vantage

Thin HTTP client for the Vantage platform. Talks only to the Next.js API (VANTAGE_API_URL) with a developer account API key — never to Postgres or FastAPI directly.

Breaking change: the deployment-wide API_KEY and X-Organization-Id / organization_slug are no longer used by the SDK. Create a developer account and API key in the app (Developers page). The organization is bound to the key.

Install

pip install drc-vantage
# or
uv add drc-vantage

Configuration

Variable Description Example
VANTAGE_API_URL Next.js API base (includes /api) http://localhost:3000/api
VANTAGE_API_KEY Developer account API key (Developers page) vantage_…

Classes

Client, Dataset, DataSource, DataSourceCategory, DataStorageSystem

Orchestration helpers: vantage_flow, send_workflow_event, sync_workflow_configs, orchestration_hooks (see below).

Workflows (@vantage_flow)

Register runs on the platform when a Prefect deployment executes. Workflows appear in the org after the first event (no DataSource link required).

from vantage import Client
from vantage.orchestration import vantage_flow

client = Client()

@vantage_flow(client, name="ingest-anthropic")
def ingest_anthropic():
    ...

After prefect deploy, refresh deployment metadata (schedules, triggers, parameters) from Prefect:

from vantage.orchestration import sync_workflow_configs

sync_workflow_configs(client)  # all workflows registered for the org
# sync_workflow_configs(client, deployment_ids=["..."])

Prefect orchestration events (manual hooks)

from prefect import flow
from prefect.runtime import deployment
from vantage import Client, DataSource, DataSourceCategory
from vantage.orchestration import orchestration_hooks

client = Client()  # uses VANTAGE_API_KEY (developer key)
hooks = orchestration_hooks(client)

@flow(
    name="ingest-anthropic",
    on_running=hooks.on_running,
    on_completion=hooks.on_completion,
    on_failure=hooks.on_failure,
    on_crashed=hooks.on_crashed,
    on_cancellation=hooks.on_cancellation,
)
def ingest_anthropic():
    category = DataSourceCategory(client=client, slug="saas", name="SaaS", color="#3366FF")
    DataSource(
        client=client,
        slug="anthropic",
        name="Anthropic",
        category=category,
        prefect_deployment_id=deployment.id,
        logo_url="https://example.com/logo.svg",
    ).register()
    ...

Dataset lifecycle example

from vantage import Client, Dataset

client = Client()  # organization is inferred from the developer API key

dataset = Dataset(
    client=client,
    location={"schema": "marts", "table": "customer_success_nps"},
    name="Customer Success NPS",
    type="TABLE",
    description="Qualtrics survey NPS summaries enriched with HubSpot contacts.",
    chat_question_examples={
        "en": ["What is the average NPS score by survey?"],
        "fr": ["Quel est le score NPS moyen par enquête?"],
    },
    data_source_slugs=["qualtrics", "hubspot"],
    storage_system_slug="postgresql",
)

result = dataset.register()
dataset.assign_to_team("customer-success")
dataset.assign_owner("owner@example.com")
result = dataset.analyze_and_check_alerts()

Catalog register

from vantage import Client, DataSource, DataSourceCategory, DataStorageSystem

client = Client()

Release files for drc-vantage 1.5.4

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

Source distribution (sdist)

Source distribution for drc-vantage 1.5.4
File Size Uploaded
drc_vantage-1.5.4.tar.gz 19.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for drc-vantage 1.5.4
File Interpreter ABI Platform
drc_vantage-1.5.4-py3-none-any.whl Python 3 none any Details

Total release size: 44.1 kB

Release files / drc_vantage-1.5.4.tar.gz

Download URL drc_vantage-1.5.4.tar.gz
Size 19.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4a1c305081d13fa97fe53c25887ffe5c4600819e6373c2d32f2241ef342f5a66
BLAKE2b-256 checksum
How to use checksums
069cc68ca658e1e91eda39449eb13255c44e0b39705d868080b6989395e88c17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"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}

Release files / drc_vantage-1.5.4-py3-none-any.whl

Download URL drc_vantage-1.5.4-py3-none-any.whl
Size 24.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
93530f065e0daa59ac9cab1cf83a09fbdfa68a8a9ae725d83acce31738442794
BLAKE2b-256 checksum
How to use checksums
47458d543ff849c8b3ee3d78d2edd942fa1dc40b23cbaecc6f697c7a2e063ffa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"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}
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