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.
1. Check your Python version
Check which Python version you have:
python --versionIf 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.
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 .venvActivate it:
source .venv/bin/activateCommand Prompt
.venv\Scripts\activate.batPowerShell
PowerShell may block the activation script. Run this once for your user:
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSignedThen activate the environment:
.\.venv\Scripts\Activate.ps1If your environment folder is named venv, run .\venv\Scripts\Activate.ps1.
Upgrade pip inside the environment:
pip install --upgrade pip3. 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:
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
Full reference: Connect engine → Postgres.
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):
Full reference: Connect engine → Snowflake.
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):
Full reference: Connect engine → Databricks.
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:
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):
Full reference: Connect engine → SQL Server.
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):
Full reference: Connect engine → Microsoft Fabric.
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.
Full reference: Connect engine → Amazon Redshift.
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.
Full reference: Connect engine → Amazon Athena.
6. Verify
A successful vulcan info confirms the project is ready to configure and build.
Troubleshooting
Last updated
Was this helpful?