ionworks-api Python package exposes client.pipeline for running and managing pipelines. For installation and authentication, see the Python API client page.
Submitting a pipeline
client.pipeline.create() accepts either an iws.Pipeline schema instance or the dict returned by .to_config(). Schema instances are validated locally before submission, so shape errors surface immediately.
Overriding submission metadata
create() accepts optional project_id, name, description, and options kwargs that override any values carried on the schema:
project_id is omitted, the client falls back to the default configured on Ionworks(...) or the IONWORKS_PROJECT_ID environment variable.
Waiting for completion
raise_on_failure=False to get the failed submission response back instead of raising when the pipeline errors out.
Retrieving results
result.element_results mirrors the keys you passed to iws.Pipeline(elements=...).
Element metadata
Some elements (notablyValidation) write extra metadata that isn’t included in element_results. Fetch it with:
Listing pipelines
Getting a single submission
End-to-end example
For more end-to-end examples (entry-only, calculation-only, datafit, validation), see
packages/ionworks-api/examples/pipeline/ in the SDK repo.