Prerequisites
- The Python script committed to your project.
Manage dependencies with Poetry
We recommend managing your Python dependencies with Poetry.- Keep your Poetry project (
pyproject.tomlandpoetry.lock) at the root of your dbt™ project, alongsidedbt_project.yml. Paradime resolves the environment from there. - Make
poetry installthe first command in the schedule, so the virtual environment is built before your script runs. Poetry then runs your script inside that environment.
Store secrets (API keys, credentials) as Bolt schedule environment variables and read them with
os.environ rather than hardcoding them.Usage
Add the Run Python Script command to your schedule and enter one or more commands, one per line. If you use Poetry, start withpoetry install: