> For the complete documentation index, see [llms.txt](https://v2.dataos.info/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://v2.dataos.info/concepts/foundations/activation/apis/getting-started/sdks.md).

# SDKs

Two first-party SDKs are available — Python and TypeScript. Both handle auth, base URL construction, JSON parsing, and error wrapping for you. The REST API works without an SDK, but the SDKs cut boilerplate significantly.

<table><thead><tr><th width="197.72210693359375">SDK</th><th>Notes</th></tr></thead><tbody><tr><td>🐍 Python SDK</td><td>Built on uplink + Pydantic v2. Typed models with full IDE autocomplete. Python 3.8+.</td></tr><tr><td>🟦 TypeScript SDK</td><td>Zero runtime dependencies — uses the native <code>fetch</code> API. Fully typed. Node.js 18+, TypeScript 5.0+.</td></tr></tbody></table>

## Python SDK

{% file src="/files/KlgWabGG1Ac2bBB4h9zU" %}

**Installation**

```bash
pip install vulcan_sdk-0.1.0-py3-none-any.whl
```

**Quick Start**

```python
from vulcan_sdk import VulcanClient

client = VulcanClient(
    fqdn="example.dataos.io",
    dp_name="b2b_saas",
    access_token="<your-dataos-api-token>",
    tenant="public",
)
```

> **Base URL auto-built:** `https://{fqdn}/vulcan/tenants/{tenant}/data-products/{tenant}-{dp_name}/api/v1`. Sets `Accept: application/json` on every request.

**Available methods at a glance**

<table><thead><tr><th width="210.541015625">Client</th><th>Methods</th></tr></thead><tbody><tr><td><code>client.metadata</code></td><td><code>.get()</code> · <code>.get_semantic()</code> · <code>.download_powerbi()</code> · <code>.download_tableau()</code></td></tr><tr><td><code>client.activity</code></td><td><code>.list_plans()</code> · <code>.get_plan(id)</code> · <code>.get_plan_git_diff(id)</code> · <code>.list_runs()</code> · <code>.get_run(id)</code> · <code>.list_models()</code> · <code>.get_model_runs(name)</code></td></tr><tr><td><code>client.dq</code></td><td><code>.get_summary()</code> · <code>.list_rules()</code> · <code>.get_rule(id)</code> · <code>.get_rule_by_name(model, dim, name)</code></td></tr><tr><td><code>client.query</code></td><td><code>.submit_statement(sql)</code> · <code>.get_statement(id)</code> · <code>.get_statement_result(id)</code> · <code>.submit_semantic_rest(query)</code> · <code>.submit_semantic_sql(sql)</code> · <code>.get_metric(name)</code> · <code>.get_usage_metrics()</code></td></tr><tr><td><code>client.perspectives</code></td><td><code>.list()</code> · <code>.get(slug)</code> · <code>.get_result(slug)</code> · <code>.create(slug, req)</code> · <code>.update(slug, req)</code> · <code>.delete(slug)</code></td></tr><tr><td><code>client.notifications</code></td><td><code>.list()</code></td></tr><tr><td><code>client.followers</code></td><td><code>.follow()</code> · <code>.unfollow()</code> · <code>.get_follow_status()</code> · <code>.list()</code> · <code>.get_analytics()</code></td></tr></tbody></table>

**Example — query and fetch results**

```python
import time

stmt = client.query.submit_statement("SELECT country, COUNT(*) AS users FROM users GROUP BY 1")

while stmt.status.upper() not in {"SUCCESS", "FAILED"}:
    time.sleep(2)
    stmt = client.query.get_statement(stmt.id)

result = client.query.get_statement_result(stmt.id)
print(result.cols)       # ["country", "users"]
for row in result.rows:
    print(row)           # ["US", 4821]
```

**Error handling**

```python
from vulcan_sdk import VulcanError
try:
    plan = client.activity.get_plan("bad-id")
except VulcanError as e:
    print(e.status_code, e.detail)
```

***

## TypeScript SDK

{% file src="/files/ZsZBrjzb4izigkhXl8Kq" %}

**Installation**

```bash
npm install vulcan-sdk-0.1.0.tgz
```

**Quick Start**

```typescript
import { VulcanClient } from "vulcan-sdk";

const client = new VulcanClient({
  fqdn: "example.dataos.io",
  dpName: "b2b_saas",
  accessToken: "<your-dataos-api-token>",
  tenant: "public",
});
```

> **Base URL auto-built:** `https://{fqdn}/vulcan/tenants/{tenant}/data-products/{tenant}-{dpName}/api/v1`. Sets `Accept: application/json` on every request.

**Available methods at a glance**

<table><thead><tr><th width="218.4482421875">Client</th><th>Methods</th></tr></thead><tbody><tr><td><code>client.metadata</code></td><td><code>.get()</code> · <code>.getSemantic()</code> · <code>.downloadPowerBI()</code> · <code>.downloadTableau()</code></td></tr><tr><td><code>client.activity</code></td><td><code>.listPlans()</code> · <code>.getPlan(id)</code> · <code>.getPlanGitDiff(id)</code> · <code>.listRuns()</code> · <code>.getRun(id)</code> · <code>.listModels()</code> · <code>.getModelRuns(name)</code></td></tr><tr><td><code>client.dq</code></td><td><code>.getSummary()</code> · <code>.listRules()</code> · <code>.getRule(id)</code> · <code>.getRuleByName(model, dim, name)</code></td></tr><tr><td><code>client.query</code></td><td><code>.submitStatement({sql})</code> · <code>.getStatement(id)</code> · <code>.getStatementResult(id)</code> · <code>.submitSemanticRest({query})</code> · <code>.submitSemanticSQL({sql})</code> · <code>.getMetric(name)</code> · <code>.getUsageMetrics()</code></td></tr><tr><td><code>client.perspectives</code></td><td><code>.list()</code> · <code>.get(slug)</code> · <code>.getResult(slug)</code> · <code>.create(slug, body)</code> · <code>.update(slug, body)</code> · <code>.delete(slug)</code> · <code>.checkAvailability(slug)</code></td></tr><tr><td><code>client.notifications</code></td><td><code>.list()</code></td></tr><tr><td><code>client.followers</code></td><td><code>.follow()</code> · <code>.unfollow()</code> · <code>.getFollowStatus()</code> · <code>.list()</code> · <code>.getAnalytics()</code></td></tr></tbody></table>

**Example — query and fetch results**

```typescript
const stmt = await client.query.submitStatement({
  sql: "SELECT country, COUNT(*) AS users FROM users GROUP BY 1"
});

const done = new Set(["SUCCESS", "FAILED"]);
let detail = await client.query.getStatement(stmt.id);
while (!done.has(detail.status)) {
  await new Promise(r => setTimeout(r, 2000));
  detail = await client.query.getStatement(stmt.id);
}

const result = await client.query.getStatementResult(stmt.id);
console.log(result.cols);              // ["country", "users"]
result.rows.forEach(r => console.log(r));
```

**Error handling**

```typescript
import { VulcanAPIError } from "vulcan-sdk";
try {
  const plan = await client.activity.getPlan("bad-id");
} catch (e) {
  if (e instanceof VulcanAPIError) console.log(e.statusCode, e.detail);
}
```

Supports **AbortSignal** on every method for cancellation. Requires Node.js ≥ 18, TypeScript ≥ 5.0.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://v2.dataos.info/concepts/foundations/activation/apis/getting-started/sdks.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
