Skip to main content

wherobots-dbt

The Wherobots adapter for dbt. Write spatial models as SQL, run them on Wherobots Cloud, and keep them version-controlled, tested, and documented like the rest of your dbt project.

Install

pip install wherobots-dbt

Requires Python 3.10 or later and dbt Core 1.9 or later (below 2.0).

Configure

Add a Wherobots target to ~/.dbt/profiles.yml. Read the API key from an environment variable so no secret is written to disk.

my_project:
  target: dev
  outputs:
    dev:
      type: wherobots
      host: api.cloud.wherobots.com
      catalog: my_catalog          # a catalog you can write to (dbt's `database`)
      schema: my_namespace
      api_token: "{{ env_var('WHEROBOTS_API_KEY') }}"
      runtime: micro               # optional
      region: aws-us-west-2        # optional
      threads: 1
export WHEROBOTS_API_KEY="<your-api-key>"
dbt debug

Sessions and billing

dbt runs on a Wherobots SQL session. During one dbt invocation, the adapter reuses its connections for every model and holds at most threads + 1 at a time, and dbt closes them when it exits. With the defaults (session_type: multi, force_new: false), they all use one runtime.

Billing starts when the session is ready, not while its runtime starts. After the session's last connection closes, which is when dbt exits if no other run uses the session, the session keeps running, and billing, for shutdown_after_inactive_seconds (about 5 minutes when unset), plus up to about 3 minutes until the server's idle check stops it. A run with force_new: false that starts in that window attaches to it in seconds.

You can change this with three optional profile keys:

      session_type: multi                   # single: never share a runtime with another open connection
      force_new: false                      # true: every connection starts a new runtime
      shutdown_after_inactive_seconds: 60   # stops 1–4 minutes after the last run exits

A connection with force_new: false attaches to a running session that has the same Wherobots user (through the API key), region, runtime, session_type and shutdown_after_inactive_seconds, even one started by a different dbt project. An unset runtime or session_type matches its default, but an unset shutdown_after_inactive_seconds matches only another unset one. force_new: true doesn't keep runs apart, because other runs can still attach to the session it starts; use session_type: single for that. See Sessions and billing for the rules, how to keep runs apart, and an example for scheduled runs.

What works

  • dbt debug, seed, run, test, snapshot, docs generate, show, and source freshness.
  • Materializations: view, table, ephemeral, incremental (append, merge, delete+insert, insert_overwrite), and snapshot. Persisted models are Havasu (Apache Iceberg) tables.
  • Spatial columns: geometry seeds load from WKT, EWKT, GeoJSON, or WKB with a real SRID, and models can materialize geometry, geography, and raster columns.

Documentation

See Wherobots dbt Adapter for the profile reference, materializations, and working with spatial data.

License

Apache-2.0

Metadata

Release files for wherobots-dbt 0.1.3

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

Source distribution (sdist)

Source distribution for wherobots-dbt 0.1.3
File Size Uploaded Provenance Actions
wherobots_dbt-0.1.3.tar.gz 80.0 kB With provenance Details for wherobots_dbt-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wherobots-dbt 0.1.3
File Interpreter ABI Platform Actions
wherobots_dbt-0.1.3-py3-none-any.whl Python 3 none any Details for wherobots_dbt-0.1.3-py3-none-any.whl

Total release size: 178.3 kB

Release files / wherobots_dbt-0.1.3.tar.gz

Download URL wherobots_dbt-0.1.3.tar.gz
Size 80.0 kB
Tags Source
SHA-256 checksum
How to use checksums
495d5dd4094d441fe6e9cdd0422572672a63acb01de909038580fdec584cf18e
BLAKE2b-256 checksum
How to use checksums
711eb8229aaf2106ccf001f7c043fae6c3e068965a30dd029db8ae663a84c561
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

Release files / wherobots_dbt-0.1.3-py3-none-any.whl

Download URL wherobots_dbt-0.1.3-py3-none-any.whl
Size 98.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
90f01673b583943b9831bfac2890548de1c28869c982365da7142ba237348945
BLAKE2b-256 checksum
How to use checksums
90371d8f4bf8478541fba9fb7b167e7fdfb6ca599a9a092b0cef7d69d6f5147c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

Security for wherobots-dbt 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for wherobots_dbt-0.1.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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