The documentation you are viewing is for Dapr v1.6 which is an older version of Dapr. For up-to-date documentation, see the latest version.

Python

Dapr 提供了各种包来帮助开发 Python 应用程序。 使用它们,您可以使用 Dapr 创建 Python 客户端、服务器和虚拟 Actor。

可用软件包

  • Dapr client :用于编写 Python 应用程序以与 Dapr sidecar 和其他 Dapr 应用程序进行交互
  • Dapr actor :用于在 Python 中创建有状态 virtual actor 并与之交互
  • 扩展 用于将 Dapr 功能添加到其他 Python 框架

安装 Dapr 模块


pip install dapr

pip install dapr-dev

试试吧

克隆 Python SDK 仓库来尝试一些 示例

git clone https://github.com/dapr/python-sdk.git

更多信息