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 four 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
stop_session_on_exit: true # the run's own session stops seconds after dbt 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. stop_session_on_exit: true does: the run sends a session key of its own and asks the API
to keep its sessions to that key, so no other run attaches to them, even over a quota, and the
adapter stops them when dbt exits. Every run then waits for a
runtime to start. 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, andsource freshness.- Materializations:
view,table,ephemeral,incremental(append,merge,delete+insert,insert_overwrite), andsnapshot. Persisted models are Havasu (Apache Iceberg) tables. - Spatial columns:
geometryseeds load from WKT, EWKT, GeoJSON, or WKB with a real SRID, and models can materializegeometry,geography, andrastercolumns.
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.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wherobots_dbt-0.1.4.tar.gz | 85.7 kB | With provenance | Details for wherobots_dbt-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wherobots_dbt-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for wherobots_dbt-0.1.4-py3-none-any.whl |
Total release size: 189.8 kB
Release files / wherobots_dbt-0.1.4.tar.gz
| Download URL | wherobots_dbt-0.1.4.tar.gz |
|---|---|
| Size | 85.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a6c3de8f8e6ae2a1f4d0244371021b5b591d2afe754b79beb0e76a5e121de6ca
|
|
BLAKE2b-256 checksum How to use checksums |
3f4c9f809bdff4a55250ea31170598fd3058a4a11888d83a83de9b8b4f114493
|
| 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 13, 2026.
Transparency logRelease files / wherobots_dbt-0.1.4-py3-none-any.whl
| Download URL | wherobots_dbt-0.1.4-py3-none-any.whl |
|---|---|
| Size | 104.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
47054882da2aa9b7f3b80b87c532fe08ee8b3baabb9635713d6846b5af176d9f
|
|
BLAKE2b-256 checksum How to use checksums |
3bf35d4f65db5d12ed6550ab7260c43998ebcb6c7e5bd7d7a7196dfb4c167c21
|
| 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 13, 2026.
Transparency logSecurity for wherobots-dbt 0.1.4
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.
Attestation for wherobots_dbt-0.1.4.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 13, 2026.
Transparency logA 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.