This is collection of examples for running Dagger pipelines using Python.
The Python SDK is in technical preview. The Dagger team appreciates any feedback to help make it better. So hack away at these examples or try different things.
You can create issues in GitHub, or come join us on our community server.
Thank you!
These tips may be helpful to understand:
- The underlying API is the same as with the Go SDK, so if you understand the few differences you can easily port from one to another and reuse some of that documentation as well;
- The
dagger.Client
is a typed query builder. Some methods are just building the query and not executing anything. Only on scalar values (str
,int
...) a coroutine is returned, in which case you need toawait
to execute it; - Notice the type hints in the IDE, they help document what you can do, but there's also reference docs.