The documentation you are viewing is for Dapr v1.5 which is an older version of Dapr. For up-to-date documentation, see the latest version.
Python
Dapr 提供了各种软件包来帮助开发 Python 应用程序。 你可以使用他们来创建 Python 客户端、服务器和 virtual actors。
可用软件包
- Dapr client :用于编写 Python 应用程序以与 Dapr sidecar 和其他 Dapr 应用程序进行交互
- Dapr actor :用于在 Python 中创建有状态 virtual actor 并与之交互
- Extensions :用于将 Dapr 功能添加到其他 Python 框架
- gRPC extension 用于使用 Dapr 创建 gRPC 服务器
- FastAPI extension 用于将 Dapr actor 组件功能添加到 FastAPI 应用程序
- Flask extension 用于向 Flask 应用程序添加 Dapr actor 能力
安装 Dapr 模块
pip install dapr
Note
开发包将包含与 Dapr 运行时的预发布版本兼容的功能和行为。 在安装 dapr-dev 包之前,请务必卸载以前任意稳定版本的 Python SDK 扩展包。
pip install dapr-dev
试试吧
克隆 Python SDK 仓库来尝试一些 示例。
git clone https://github.com/dapr/python-sdk.git
详情
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.