Python

Dapr提供了帮助开发Python应用程序各种包。 你可以使用他们来创建 Python 客户端、服务器和 virtual actors。

可用软件包

  • Dapr client for writing Python applications to interact with the Dapr sidecar and other Dapr applications
  • Dapr actor for creating for creating and interacting with stateful virtual actors in Python
  • Extensions for adding Dapr capabilities to other Python frameworks

安装 Dapr 模块

  1. pip install dapr

Note

  1. 开发包包含的功能和行为将兼容此前发行的 Dapr 运行时。 在安装 dapr-dev 包之前,请务必卸载以前任意稳定版本的 Python SDK 扩展包。
  1. pip install dapr-dev

试试吧

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

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

详情