Skip to main content

Client

View as Markdown

This page lists the Python SDK names for the Client. The doc comment of each API gives its parameters, defaults, and errors. Read them in the Python SDK API reference.

API names​

TaskPython APIDex behavior
Create a ClientClient for blocking calls, or AsyncClient for asyncio, with ClientOptionsClient requests
Start a Flowstart_flow, with StartFlowOptionsStart a Flow
Invoke an RPCinvoke_rpcInvoke an RPC
Read Attributesget_attributesRead Attributes
Wait for a Flow to closewait_for_flowWait for a Flow
Wait for a Step execution to completewait_for_step_completion, with WaitForStepCompletionOptionsWait for a Step
Wait until an Attribute matcheswait_for_attribute_match, with WaitForAttributeOptionsWait for an Attribute match
Describe a Flowdescribe_flowDescribe a Flow
Search Flowssearch_flowsSearch Flows
Stop a Flowstop_flow, with StopFlowOptionsStop a Flow
Skip a Timerskip_timerSkip a Timer
Update FlowConfigupdate_flow_configUpdate FlowConfig
Write and read a Streamwrite_stream, read_stream, and list_stream_messagesStream
Time travel a Flowtime_travel, with TimeTravelOptionsTime travel
Upload Flow definitionsupload_flow_definitions, with FlowDefinitionDocument. Since 1.45Flow definitions
Handle a failed requestDexServiceError, with ErrorSubStatusClient requests

AsyncClient has the same methods as Client. Each one is a coroutine.

Example​

Example: examples/python/dex_examples/primitives/client-apis/controller.py