Skip to content

Commit

Permalink
feat(docs): python dependencies info
Browse files Browse the repository at this point in the history
  • Loading branch information
wrussell1999 authored Nov 27, 2024
1 parent dbce268 commit 8eaea94
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion content/docs/15.how-to-guides/python.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,16 @@ You can execute Python code inside of a flow by either writing your Python inlin

In this example, the flow will install the required pip packages, make an API request to fetch data and use the Python Kestra library to generate outputs and metrics using this data.

## Scripts
## Managing Dependencies

Managing Python Dependencies can be frustrating. There's 3 ways you can manage your dependencies in Kestra:
- Install with pip using `beforeCommands`
- Set Container Image with Docker Task Runner
- Build Docker Image and set it with Docker Task Runner

For more information, check out the [dedicated guide here](./python-dependencies.md)

## Script

If you want to write a short amount of Python to perform a task, you can use the `io.kestra.plugin.scripts.python.Script` type to write it directly inside of your flow configuration. This allows you to keep everything in one place.

Expand Down

0 comments on commit 8eaea94

Please sign in to comment.