Are you asking: how can you package those dependencies so that you can import them in a Prefect flow?
If so, it depends on:
• the type of agent
• your storage
Generally, you can always build a package with setup.py and install it within the execution environment (local environment, docker container). If you need an example, check out this sample repo incl. setup.py
k
Kevin Kho
02/03/2022, 2:52 PM
If you are asking how to run a Python script. You can use the shell task to run it
s
Sumit Kumar Rai
02/07/2022, 4:06 AM
@Kevin Kho your answer was what I was looking for in short and @Anna Geller your GitHub repo was the exact thing what I was looking for. Thanks to both of you for your answers.
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.