Sync flask-connexion-rest-part-2 with the updated tutorial - #860
Open
realpython-bot wants to merge 1 commit into
Open
realpython-bot wants to merge 1 commit into
realpython-bot wants to merge 1 commit into
Conversation
…n REST APIs With Flask, Connexion, and SQLAlchemy – Part 2 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
Maintenance update for Python REST APIs With Flask, Connexion, and SQLAlchemy – Part 2.
What changed
requirements.txtbumps the Marshmallow stack, matching the article's updateddependenciesfield and install command (flask-marshmallow[sqlalchemy]==1.5.0):flask-marshmallow0.14.0 -> 1.5.0marshmallow3.18.0 -> 4.3.1marshmallow-sqlalchemy0.28.1 -> 1.5.0Why: flask-marshmallow 0.14.0 doesn't cap
marshmallow, so a fresh install following the article pulls marshmallow 4.x. That release removedmarshmallow.pprint, sofrom flask_marshmallow import MarshmallowraisesImportError. On Python 3.12+, 0.14.0 also fails because it importsdistutils. The other pins stay the same. No code changes were needed.Verification
Fresh Python 3.11 venv,
pip install -r requirements.txt, builtpeople.dbwith the README's commands.python app.pyservedGET /andGET /api/people(200).Flask test client:
GET /,GET/POST/PUT/DELETE /api/people[/<lname>], the 404 path, and/api/ui/all returned the expected results.ruff@0.14.1 format --checkandruff checkboth pass.Draft update (admin): https://realpython.com/pbjt/blog/post/2422/change/
Maintenance card: https://trello.com/c/TocAAj4S
🤖 Generated with Claude Code