For the complete documentation index, see llms.txt. This page is also available as Markdown.

LDK setup

Set up the Local Development Kit: Python virtual environment, Vulcan, and engine.

The Local Development Kit (LDK) is the local toolkit you author and test Data Products with. Setting it up means installing Python, creating an isolated environment, installing Vulcan, and pointing it at an engine. Do this once.

Vulcan requires Python 3.10 to 3.13 (>=3.10,<3.14). Python 3.9 and earlier, and Python 3.14 and later, are not supported.

1. Check your Python version

Check which Python version you have:

python --version

If it reports 3.10, 3.11, 3.12, or 3.13, move on to the next step. Otherwise, install a supported version from python.org/downloads.

On some macOS and Linux systems, the command is python3 instead of python. Use whichever command reports the supported version for the rest of this setup.

2. Create a virtual environment

Always install Vulcan inside an isolated environment so it does not conflict with other Python projects. With a supported version confirmed, create the environment:

python -m venv .venv

Activate it:

source .venv/bin/activate

Command Prompt

.venv\Scripts\activate.bat

PowerShell

PowerShell may block the activation script. Run this once for your user:

Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned

Then activate the environment:

.\.venv\Scripts\Activate.ps1

If your environment folder is named venv, run .\venv\Scripts\Activate.ps1.

The execution policy change allows locally created scripts to run. It does not require administrator access.

Upgrade pip inside the environment:

pip install --upgrade pip

3. Install Vulcan

Vulcan ships as a Python wheel. Click on the Download button below to directly download the whl file.

Once downloaded, place the Vulcan .whl file in your working directory (or use its full path), then install:

If you target a specific engine, install the matching extra. Quote the path so your shell does not interpret the brackets:

The local Spark stack needs Python 3.13. --use-deprecated=legacy-resolver avoids pip's ResolutionTooDeep error on this wheel.

Verify:

4. Initialize the project

The initializer scaffolds the project structure:

Folder / file
What goes here

config.yaml

Project configuration: connections, model defaults, linting.

usage.yml

Usage metadata: intended use, out-of-scope use, caveats, shown to consumers in the Data Product Hub.

agreement.md

Data-sharing agreement, referenced by config.yaml's agreement_path. Optional.

models/

SQL and Python model files. Each produces a table or view.

dq/

Data quality checks (kind: dq). Non-blocking; monitor quality over time.

models/semantics/

Semantic models (kind: semantic). Business-friendly wrappers over physical models.

models/metrics/

Metric definitions (kind: metric). Time-series analytical definitions.

seeds/

CSV files loaded as static tables.

audits/

SQL audit files. They run at materialization and block execution if they return rows.

tests/

YAML unit tests. Run with vulcan test before touching the warehouse.

macros/

Reusable SQL snippets and Jinja macros.

plugins/

Auth extension hook (after_authorize) that maps identity provider tags to group names.

policies/

Auth-backed access and masking policies.

.vulcan/

Local state (default DuckDB state database, state.db). Git-ignored by vulcan init.

5. Set up your engine

To connect Vulcan locally, use an existing engine instance or spin one up via Docker, then add its connection to config.yaml. For the full connection reference per engine, see Connect engine.

Use an existing Postgres instance if you already have one. You need the host, port, database, user, and password. See the Postgres connection options for all supported fields.

Set your password as an environment variable:

Update the connection details in config.yaml (sample):

OR

Start Postgres locally with Docker

Create the network once:

Save this as docker/docker-compose.warehouse.yml:

Start it:

Use an existing Snowflake account and warehouse. No local Docker service is needed for Snowflake.

Set your password as an environment variable:

Update the connection details in config.yaml (sample):

Use an existing workspace with a SQL warehouse or cluster access. No local Docker service is needed for Databricks.

Set the access token as an environment variable, then:

Update the connection details in config.yaml (sample):

Spark is not a single server you connect to, so local development runs a small Docker stack next to your project: a Spark master and two workers, an Iceberg REST catalog, an object store (local MinIO, or AWS S3, Azure ABFSS, or Google GCS), and a Postgres state store.

Choose where Vulcan runs:

Local (recommended)
Containerized

Host requirements

Docker, Java 17, Python 3.13

Docker only

Vulcan runs in

The virtual environment from this page

The vulcan-cli container

Follow Local development in the Spark engine manual to add the Docker stack (docker/docker-compose.yml), choose where your data lives in .env, and replace the gateways: block in config.yaml.

Full reference: Connect engine → Spark.

Use an existing Trino cluster with a configured catalog. No local Docker service is needed for Trino. Set the password only if your cluster requires it, then:

For Minerva, DataOS's managed Trino cluster, generate the password from your DataOS user ID, API key, and tenant name: a base64-encoded JSON object with the fields cluster, apikey, and tenant.

macOS and Linux

PowerShell

Command Prompt

Command Prompt has no built-in base64 encoder. Use certutil, then strip its header, footer, and line breaks:

certutil -encode wraps the output in -----BEGIN CERTIFICATE----- / -----END CERTIFICATE----- lines and inserts line breaks every 64 characters. Open payload.b64, remove those two header/footer lines, and join the remaining lines into one string before using it as the password. PowerShell is the simpler option on Windows.

This generates the password for connecting via Minerva, DataOS's managed Trino cluster. For Dedicated Trino or External Trino, see Connect engine → Trino for connection details specific to your cluster type.

Set the generated value as an environment variable:

Update the connection details in config.yaml (sample):

Full reference: Connect engine → Trino.

Use an existing SQL Server instance (2019–2022) or Azure SQL Database. You need the host, port, database, user, and password. See the SQL Server connection options for all supported fields.

Set your password as an environment variable:

Update the connection details in config.yaml (sample):

Use an existing Fabric workspace with an assigned capacity and a Fabric Warehouse item. No local Docker service is needed for Fabric. You'll need an Entra ID app registration (service principal) with a workspace role, plus the workspace's tenant_id and workspace_id.

Set the client secret as an environment variable:

Update the connection details in config.yaml (sample):

Use an existing Redshift cluster or Serverless workgroup. Redshift has no local container, so point local development at a small dev cluster or a low-RPU Serverless workgroup.

Set your password as an environment variable:

Update the connection details in config.yaml (sample):

A Postgres state_connection is strongly recommended for Redshift, so Vulcan's plan and interval state stays out of the warehouse.

Use an existing Athena workgroup, Glue database, and S3 buckets in the same AWS region. Athena has no local container, so local development points directly at your AWS resources.

Set your AWS credentials as environment variables:

Update the connection details in config.yaml (sample):

s3_warehouse_location is required for managed table materialization.

6. Verify

A successful vulcan info confirms the project is ready to configure and build.

For the full LDK reference, see References → Vulcan → LDK.

Troubleshooting

... is not a supported wheel on this platform

Vulcan only supports Python 3.10 to 3.13 (not 3.9 or earlier, not 3.14 or later). Check the version with python --version, install a supported version if needed, then recreate the environment:

zsh: no matches found

Your shell is interpreting the [engine] brackets. Quote the wheel path: pip install "./vulcan-...whl[snowflake]".

PowerShell blocks Activate.ps1

Allow locally created scripts for your user, then activate the environment:

If the environment folder is named venv, use .\venv\Scripts\Activate.ps1.

Dependency conflicts

Install into a fresh virtual environment, never the system Python. To overwrite an existing install, use pip install --force-reinstall "./vulcan-0.228.1.32-py3-none-any.whl".

Last updated

Was this helpful?