Python SDK
The local Python SDK package is named credvault-edge and is version 1.0.0. It exposes a CredVault client for Python services, scripts, notebooks, and automation across the core CredVault APIs plus orchestration, lineage, metadata, notebooks, pipelines, dashboards, alerts, realtime streams, and agent sessions.
Installation
Install from the local wheel or source archive provided by CredVault:
pip install ./credvault_edge-1.0.0-py3-none-any.whl
What you should see: pip should install credvault-edge into your current Python environment. After that, from credvault import CredVault should work.
or:
pip install ./credvault_edge-1.0.0.tar.gz
Use the local package file unless your organization has published credvault-edge to PyPI or a private Python package registry. The separate credvault-cie package is CIE tooling, not the full Python application SDK.
Connecting to CredVault
The SDK defaults to http://localhost:5000/api, which is only for local backend development. Production code must pass the CredVault backend API URL.
import os
from credvault import CredVault
client = CredVault(
api_key=os.environ["CREDVAULT_API_KEY"],
base_url="https://<your-credvault-backend>/api",
)
customers = client.data.query("customers", {"status": "active"})
print(customers)
What you should see: a Python dictionary or list containing records returned by CredVault. If the API key is wrong, the SDK should raise a clear authentication error.
Use API keys for server-to-server data routes such as /api/v1/data. Use user tokens for routes that act like the dashboard, including clusters, functions, webhooks, logs, settings, and API-key management.
Working with Data
The data resource supports cluster and collection operations.
customers = client.data.query("customers", {"status": "active"})
created = client.data.insert("customers", {
"name": "Acme Ltd",
"status": "active",
})
What you should see: the query returns matching records, and the insert call returns the created document or document ID.
Check /api-docs on the backend for the exact request body accepted by each endpoint.
CIE
The CIE resource supports Intelligence Engine actions such as datasets, model training, and predictions.
models = client.cie.list_models()
prediction = client.cie.predict("model-id", {
"amount": 1200,
"region": "emea",
})
For command-line data work, users can also use the cie CLI.
Available Resources
authfor sign-in, sign-up, and profile callsdatafor clusters and collection dataciefor datasets, models, and predictionswebhooksfor event deliveryfunctionsfor serverless functionstriggersfor collection eventsbackupsfor backup and restoreschemafor schema and indexesapi_keysfor API key managementmetricsfor platform monitoringlogsfor activity and audit logsnotificationsfor notifications; preference methods should be checked against/api-docssettingsfor account settings, but some methods still need backend route alignmentrobotsfor robot/device endpoints, but this area still needs route alignment before it is public-readyorchestrationfor jobs, runs, assets, sensors, schedules, and launching jobslineagefor namespaces, datasets, jobs, runs, versions, search, and lineagemetadatafor tables, databases, search, and lineagenotebooksfor notebook operations and code executionpipelinesfor creating, running, and inspecting pipelinesdashboardsandalertsfor operational monitoringrealtimefor stream management and WebSocket stream URLsagent_sessionsfor authenticated agent session and event calls
Platform Integrations
jobs = client.orchestration.list_jobs()
client.orchestration.run_job("daily_customer_refresh")
lineage = client.lineage.get_lineage(
node_id="dataset:customers",
depth=3,
direction="DOWNSTREAM",
)
metadata = client.metadata.search("customers")
pipeline_run = client.pipelines.run("pipeline-id")
dashboard_data = client.dashboards.data("dashboard-id")
client.alerts.record_metric("alert-id", 92.5)
What you should see: each method returns the CredVault result for that resource, such as jobs, lineage, metadata matches, pipeline run status, dashboard data, or metric confirmation.
Security
Keep API keys in environment variables:
export CREDVAULT_API_KEY="..."
Do not store API keys in notebooks that will be shared or committed into source control.