DEV Community

adrian
adrian

Posted on

How to run dbt from python, with dlt's core and cloud runners

We created open source dbt runners to enable easy running of dbt from python

Here is the blog post about the use cases:
dbt runners use cases

Here are the docs to use the 2 runners:

dbt core runner

  • Supports creating venv on the fly and installing dbt, copying the code and running the package in it.
  • Supports passing credentials via dlt's credentials, which support also directly passing them in python.
  • Can run code from local or public online repo.

dbt cloud runner

  • Supports starting an existing job and waiting for it to end

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay