feat(python): Enable Multi-App Run for Python HTTP and SDK bindings q…#1297
Merged
alicejgibbons merged 2 commits intodapr:masterfrom Mar 18, 2026
Merged
Conversation
…uickstarts Signed-off-by: Adepu Sri Charan <sricharan.adepu36@gmail.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Enables Dapr Multi-App Run (dapr run -f .) for the Python bindings quickstarts (HTTP + SDK), aligning them with other language quickstarts and simplifying the run instructions.
Changes:
- Updated Python HTTP/SDK
dapr.yamlto useappPort: 5001(matching the Flask apps). - Updated README instructions (prereqs,
dapr run -f ., and a database verification step) for both quickstarts. - Standardized Python HTTP quickstart default
DAPR_HTTP_PORTto3500.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| bindings/python/sdk/dapr.yaml | Updates app port to 5001 for multi-app run config. |
| bindings/python/sdk/batch/app.py | Updates header comment to reference dapr run -f .. |
| bindings/python/sdk/README.md | Adds prerequisites, switches run command to multi-app run, adds persistence verification step. |
| bindings/python/http/dapr.yaml | Updates app port to 5001 for multi-app run config. |
| bindings/python/http/batch/app.py | Updates header comment to reference dapr run -f . and aligns default Dapr HTTP port. |
| bindings/python/http/README.md | Adds prerequisites, switches run command to multi-app run, adds persistence verification step. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Alice Gibbons <alicejgibbons@gmail.com>
alicejgibbons
approved these changes
Mar 18, 2026
Contributor
alicejgibbons
left a comment
There was a problem hiding this comment.
lgtm thanks for your contribution!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR enables Dapr Multi-App Run for the Python bindings quickstarts (HTTP and SDK).
Previously, the Python quickstarts required running the application using a long
dapr runcommand with multiple flags:With this change, the quickstarts can now be started using the simplified Multi-App Run configuration:
dapr run -f .This aligns the Python quickstarts with the already updated Java and JavaScript bindings quickstarts and improves the onboarding experience by reducing manual setup.
Changes
dapr.yamlREADME.mdinstructions to usedapr run -f .appPortfrom50051to5001to match the Flask applicationDAPR_HTTP_PORTto3500resourcesPathcorrectly points to../../../componentsbindings/python/httpbindings/python/sdkVerification
Tested locally.
1. Start the database
cd bindings/db docker compose up -d2. Install dependencies
For HTTP quickstart:
cd bindings/python/http/batch pip3 install -r requirements.txtFor SDK quickstart:
cd bindings/python/sdk/batch pip3 install -r requirements.txt3. Run the quickstart
Observed behavior
Example output:
Verify database persistence
Rows increase over time confirming the full end-to-end flow.
Automated validation
Validation was also verified locally using
mechanical-markdown:mm.py -l -s "bash -c" README.mdChecklist
mechanical-markdown