<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Dapr Python SDK on Dapr Docs</title><link>https://v1-18.docs.dapr.io/developing-applications/sdks/python/</link><description>Recent content in Dapr Python SDK on Dapr Docs</description><generator>Hugo</generator><language>en</language><atom:link href="https://v1-18.docs.dapr.io/developing-applications/sdks/python/index.xml" rel="self" type="application/rss+xml"/><item><title>Getting started with the Dapr client Python SDK</title><link>https://v1-18.docs.dapr.io/developing-applications/sdks/python/python-client/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v1-18.docs.dapr.io/developing-applications/sdks/python/python-client/</guid><description>&lt;p>The Dapr client package allows you to interact with other Dapr applications from a Python application.&lt;/p>


&lt;div class="alert alert-primary" role="alert">
&lt;h4 class="alert-heading">Note&lt;/h4>

 If you haven&amp;rsquo;t already, &lt;a href="https://v1-18.docs.dapr.io/getting-started/quickstarts/">try out one of the quickstarts&lt;/a> for a quick walk-through on how to use the Dapr Python SDK with an API building block.

&lt;/div>

&lt;h2 id="prerequisites">Prerequisites&lt;/h2>
&lt;p>&lt;a href="https://v1-18.docs.dapr.io/developing-applications/sdks/python/#installation">Install the Dapr Python package&lt;/a> before getting started.&lt;/p>
&lt;h2 id="import-the-client-package">Import the client package&lt;/h2>
&lt;p>The &lt;code>dapr&lt;/code> package contains the &lt;code>DaprClient&lt;/code>, which is used to create and use a client.&lt;/p></description></item><item><title>Getting started with the Dapr actor Python SDK</title><link>https://v1-18.docs.dapr.io/developing-applications/sdks/python/python-actor/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v1-18.docs.dapr.io/developing-applications/sdks/python/python-actor/</guid><description>&lt;p>The Dapr actor package allows you to interact with Dapr virtual actors from a Python application.&lt;/p>
&lt;h2 id="pre-requisites">Pre-requisites&lt;/h2>
&lt;ul>
&lt;li>&lt;a href="https://v1-18.docs.dapr.io/getting-started/install-dapr-cli/">Dapr CLI&lt;/a> installed&lt;/li>
&lt;li>Initialized &lt;a href="https://v1-18.docs.dapr.io/getting-started/install-dapr-selfhost/">Dapr environment&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.python.org/downloads/">Python 3.9+&lt;/a> installed&lt;/li>
&lt;li>&lt;a href="https://v1-18.docs.dapr.io/developing-applications/sdks/python/#installation">Dapr Python package&lt;/a> installed&lt;/li>
&lt;/ul>
&lt;h2 id="actor-interface">Actor interface&lt;/h2>
&lt;p>The interface defines the actor contract that is shared between the actor implementation and the clients calling the actor. Because a client may depend on it, it typically makes sense to define it in an assembly that is separate from the actor implementation.&lt;/p></description></item><item><title/><link>https://v1-18.docs.dapr.io/developing-applications/sdks/python/conversation/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v1-18.docs.dapr.io/developing-applications/sdks/python/conversation/</guid><description>&lt;h2 id="description-recommended-patterns-for-using-dapr-conversation-api-in-python-with-and-without-tools-including-multiturn-flows-and-safety-guidance">title: &amp;ldquo;Conversation API (Python) – Recommended Usage&amp;rdquo;
linkTitle: &amp;ldquo;Conversation&amp;rdquo;
weight: 11000
type: docs
description: Recommended patterns for using Dapr Conversation API in Python with and without tools, including multi‑turn flows and safety guidance.&lt;/h2>
&lt;p>The Dapr Conversation API is currently in alpha. This page presents the recommended, minimal patterns to use it effectively with the Python SDK:&lt;/p>
&lt;ul>
&lt;li>Plain requests (no tools)&lt;/li>
&lt;li>Requests with tools (functions as tools)&lt;/li>
&lt;li>Multi‑turn flows with tool execution&lt;/li>
&lt;li>Async variants&lt;/li>
&lt;li>Important safety notes for executing tool calls&lt;/li>
&lt;/ul>
&lt;h2 id="prerequisites">Prerequisites&lt;/h2>
&lt;ul>
&lt;li>&lt;a href="https://v1-18.docs.dapr.io/getting-started/install-dapr-cli/">Dapr CLI&lt;/a> installed&lt;/li>
&lt;li>Initialized &lt;a href="https://v1-18.docs.dapr.io/getting-started/install-dapr-selfhost/">Dapr environment&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.python.org/downloads/">Python 3.9+&lt;/a> installed&lt;/li>
&lt;li>&lt;a href="https://v1-18.docs.dapr.io/developing-applications/sdks/python/#installation">Dapr Python package&lt;/a> installed&lt;/li>
&lt;li>A configured LLM component (for example, OpenAI or Azure OpenAI) in your Dapr environment&lt;/li>
&lt;/ul>
&lt;p>For full, end‑to‑end flows and provider setup, see:&lt;/p></description></item></channel></rss>