The documentation you are viewing is for Dapr v1.7 which is an older version of Dapr. For up-to-date documentation, see the latest version.
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
- gRPC extension for creating a gRPC server with Dapr
- FastAPI extension for adding Dapr actor capabilities to FastAPI applications
- Flask extension for adding Dapr actor capabilities to Flask applications
安装 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.