Repository navigation
Sync python-microservices-with-grpc with the updated tutorial - #957
Merged
realpython-bot merged 1 commit intoNov 30, 2026
Merged
Conversation
…thon Microservices With gRPC Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
realpython-bot
deleted the
maintenance/python-microservices-grpc-20261130
branch
November 30, 2026 07:01
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.
Syncs
python-microservices-with-grpc/with the maintenance update of Python Microservices With gRPC.What changed
marketplace/requirements.txt:flask==3.1.3,grpcio-tools==1.85.4,Jinja2==3.1.6,pytest==9.2.0. Flask 1.1 and Jinja2 2.11 no longer import alongside current MarkupSafe (soft_unicodewas removed), and pytest 5.4 can't collect tests on Python 3.14 (ast.Stris gone).recommendations/requirements.txt:grpc-interceptor==0.15.4,grpcio-tools==1.85.4,pytest==9.2.0. grpc-interceptor 0.11/0.12 ship testing protos that current protobuf refuses to load.recommendations_pb2.py/recommendations_pb2_grpc.pyin both services with grpcio-tools 1.85.4 (protobuf 7 gencode). The old generated modules fail on the protobuf 7 runtime. I kept the# flake8: noqaheader the old files had.docker-compose.yaml: dropped the obsolete top-levelversion: "3.8"key, which current Compose warns about.build_and_run.sh,integration_tests.sh:docker-composechanged todocker compose(Compose v2), the same change the tutorial got.Draft article: https://realpython.com/pbjt/blog/post/2739/change/
Maintenance card: https://trello.com/c/uOraotsv
How it was verified
On Python 3.14.10, in a fresh venv with the pinned requirements of both services:
gen_certs.shgenerated the CA and the client and server certs.recommendations/pytest: 1 passed.recommendations.py(mutual TLS on :443) and the Flask marketplace withRECOMMENDATIONS_HOST=recommendations.marketplace_integration_test.pypassed: the home page returned HTTP 200 with three<li>items.ruff format --checkandruff check(ruff 0.14.1, the repo's pin) both pass.I couldn't test the Docker image builds and
docker composebecause there's no Docker in the verification VM.🤖 Generated with Claude Code