add python tab

Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>
This commit is contained in:
Hannah Hunter 2023-05-08 15:20:06 -04:00
parent 7ed4f469c0
commit 29ce06fc1d
1 changed files with 19 additions and 1 deletions

View File

@ -30,7 +30,7 @@ The Dapr sidecar doesnt load any workflow definitions. Rather, the sidecar si
Define the workflow activities you'd like your workflow to perform. Activities are a class definition and can take inputs and outputs. Activities also participate in dependency injection, like binding to a Dapr client.
{{< tabs ".NET" >}}
{{< tabs ".NET" Python >}}
{{% codetab %}}
@ -73,6 +73,24 @@ It also includes a `RunAsync` method that does the heavy lifting of the workflow
}
```
{{% /codetab %}}
{{% codetab %}}
<!--python-->
[In the following example](todo), for a basic Python order processing application using the Python SDK, your project code would include:
- A Python package called `DaprClient` to receive the Python SDK capabilities
- A builder with an extension method called `todo`
- This will allow you to register workflows and workflow activities (tasks that workflows can schedule)
- HTTP API calls to start, pause, resume, terminate, and purge the workflow.
```python
todo
```
{{% /codetab %}}
{{< /tabs >}}