dapr 1.18.3


pip install dapr

  Latest version

Released: Jul 15, 2026


Meta
Author: Dapr Authors
Requires Python: >=3.10

Classifiers

Development Status
  • 5 - Production/Stable

Intended Audience
  • Developers

License
  • OSI Approved :: Apache Software License

Operating System
  • OS Independent

Programming Language
  • Python
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13
  • Python :: 3.14

Dapr SDK for Python

PyPI - Version PyPI - Downloads GitHub Actions Workflow Status codecov GitHub License GitHub issue custom search in repo Discord YouTube Channel Views

X (formerly Twitter) Follow

Dapr is a portable, event-driven, serverless runtime for building distributed applications across cloud and edge.

Dapr SDK for Python allows you to implement the Virtual Actor model, based on the actor design pattern. This SDK can run locally, in a container and in any distributed systems environment.

This includes the following packages:

Getting started

Prerequisites

Install Dapr python sdk

  • Official package
# Install Dapr client sdk
pip3 install dapr

# Install Dapr gRPC AppCallback service extension
pip3 install dapr-ext-grpc

# Install Dapr Fast Api extension for Actor
pip3 install dapr-ext-fastapi
  • In-development version

Only tagged releases are published to PyPI. To install the in-development version (the current state of main), point pip at the GitHub repository:

# Install the latest dev build of the Dapr client sdk
pip3 install "dapr @ git+https://github.com/dapr/python-sdk.git@main"

# Install the latest dev build of the gRPC AppCallback service extension
pip3 install "dapr-ext-grpc @ git+https://github.com/dapr/python-sdk.git@main#subdirectory=ext/dapr-ext-grpc"

# Install the latest dev build of the FastAPI extension for Actor
pip3 install "dapr-ext-fastapi @ git+https://github.com/dapr/python-sdk.git@main#subdirectory=ext/dapr-ext-fastapi"

Replace @main with a commit SHA or release branch (e.g. @release-1.18) to pin to a specific point in history.

Try out examples

Go to Examples

Developing

Build and test

  1. Install uv

  2. Clone python-sdk

git clone https://github.com/dapr/python-sdk.git
cd python-sdk
  1. Install all packages and dev dependencies
uv sync --all-packages --group dev
  1. Run linter and autofix
uv run ruff check --fix && uv run ruff format
  1. Run unit tests
uv run python -m unittest discover -v ./tests
  1. Run type check
uv run mypy
  1. Run integration tests
uv run pytest tests/integration/
  1. Validate the examples
uv run pytest tests/examples/

If you need to run the examples or integration tests against a pre-released version of the runtime, you can use the following command:

  • Get your daprd runtime binary from here for your platform.
  • Copy the binary to your dapr home folder at $HOME/.dapr/bin/daprd. Or using dapr cli directly: dapr init --runtime-version <release version>
  • Now you can run the examples with uv run pytest tests/examples/ or the integration tests with uv run pytest tests/integration/.

Documentation

Documentation is generated using Sphinx. Extensions used are mainly Napoleon (To process the Google Comment Style) and Autodocs (For automatically generating documentation). The .rst files are generated using Sphinx-Apidocs.

To generate documentation:

uv run --with sphinx sphinx-apidoc -E -o docs/actor dapr/actor
uv run --with sphinx sphinx-apidoc -E -o docs/clients dapr/clients
uv run --with sphinx sphinx-apidoc -E -o docs/proto dapr/proto
uv run --with sphinx sphinx-apidoc -E -o docs/serializers dapr/serializers
uv run --with sphinx make html -C docs

The generated files will be found in docs/_build.

Generate gRPC Protobuf client

uv sync --all-packages --group dev
export DAPR_BRANCH=release-1.18 # Optional, defaults to master
uv run ./tools/regen_grpcclient.sh

Help & Feedback

Need help or have feedback on the SDK? Please open a GitHub issue or come chat with us in the #python-sdk channel of our Discord server (click here to join).

Code of Conduct

This project follows the CNCF Code of Conduct.

1.18.3 Jul 15, 2026
1.18.2rc4 Jul 13, 2026
1.18.2rc3 Jul 10, 2026
1.18.1 Jun 22, 2026
1.18.0 Jun 10, 2026
1.18.0rc1 Jun 03, 2026
1.18.0rc0 May 19, 2026
1.17.5 Jun 02, 2026
1.17.4 Mar 25, 2026
1.17.3 Mar 19, 2026
1.17.2 Mar 11, 2026
1.17.1 Mar 09, 2026
1.17.0 Feb 27, 2026
1.17.0rc5 Feb 20, 2026
1.17.0rc4 Feb 13, 2026
1.17.0rc3 Jan 28, 2026
1.17.0rc2 Jan 16, 2026
1.17.0rc1 Jan 14, 2026
1.17.0.dev0 May 04, 2026
1.16.3 Jun 02, 2026
1.16.2 Mar 25, 2026
1.16.1 Jan 16, 2026
1.16.1rc1 Oct 13, 2025
1.16.0 Sep 17, 2025
1.16.0rc2 Sep 12, 2025
1.16.0rc1 Aug 12, 2025
1.15.1 Mar 25, 2026
1.15.0 Feb 27, 2025
1.15.0rc3 Feb 25, 2025
1.15.0rc2 Jan 21, 2025
1.14.1 Mar 25, 2026
1.14.0 Aug 14, 2024
1.14.0rc1 Jul 03, 2024
1.13.0 Mar 06, 2024
1.13.0rc1 Feb 13, 2024
1.12.1 Nov 27, 2023
1.12.0 Nov 16, 2023
1.11.0 Oct 03, 2023
1.10.0 Jun 05, 2023
1.10.0rc1 Jun 01, 2023
1.9.1 Mar 21, 2023
1.9.0 Feb 15, 2023
1.9.0rc4 Feb 15, 2023
1.9.0rc2 Feb 02, 2023
1.8.3 Oct 20, 2022
1.8.3rc1 Oct 15, 2022
1.8.2 Oct 14, 2022
1.8.2rc1 Oct 14, 2022
1.8.1 Oct 12, 2022
1.8.0 Oct 10, 2022
1.8.0rc2 Oct 12, 2022
1.8.0rc1 Oct 05, 2022
1.7.0 Jul 07, 2022
1.6.1 May 11, 2022
1.6.0 Apr 07, 2022
1.6.0rc1 Apr 01, 2022
1.5.0 Jan 24, 2022
1.5.0rc1 Jan 19, 2022
1.4.1 Nov 18, 2021
1.4.0 Nov 11, 2021
1.4.0rc1 Nov 05, 2021
1.3.0 Sep 16, 2021
1.3.0rc1 Sep 10, 2021
1.2.0 Jul 27, 2021
1.2.0rc1 Jul 21, 2021
1.1.0 Apr 01, 2021
1.1.0rc1 Mar 31, 2021
1.0.0 Feb 17, 2021
1.0.0rc4 Feb 12, 2021
1.0.0rc3 Feb 01, 2021
1.0.0rc2 Dec 16, 2020
0.8.0a0 Nov 16, 2020
0.7.0a0 Sep 30, 2020
0.6.0a1 Aug 20, 2020
0.6.0a0 Aug 20, 2020
0.5.0a0 Jun 06, 2020

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras: None
Dependencies:
aiohttp (<4.0.0,>=3.9.5)
grpcio-status (<2.0.0,>=1.76.0)
grpcio (<2.0.0,>=1.76.0)
protobuf (<8.0.0,>=4.22.5)
python-dateutil (<3.0.0,>=2.8.1)
typing-extensions (<5.0.0,>=4.4.0)