Skip to content

Sync flask-connexion-rest-part-2 with the updated tutorial - #860

Open
realpython-bot wants to merge 1 commit into
masterfrom
maintenance/flask-connexion-rest-api-part-2-20260924
Open

realpython-bot wants to merge 1 commit into
masterfrom
maintenance/flask-connexion-rest-api-part-2-20260924

Conversation

@realpython-bot

Copy link
Copy Markdown
Collaborator

Maintenance update for Python REST APIs With Flask, Connexion, and SQLAlchemy – Part 2.

What changed

requirements.txt bumps the Marshmallow stack, matching the article's updated dependencies field and install command (flask-marshmallow[sqlalchemy]==1.5.0):

  • flask-marshmallow 0.14.0 -> 1.5.0
  • marshmallow 3.18.0 -> 4.3.1
  • marshmallow-sqlalchemy 0.28.1 -> 1.5.0

Why: flask-marshmallow 0.14.0 doesn't cap marshmallow, so a fresh install following the article pulls marshmallow 4.x. That release removed marshmallow.pprint, so from flask_marshmallow import Marshmallow raises ImportError. On Python 3.12+, 0.14.0 also fails because it imports distutils. The other pins stay the same. No code changes were needed.

Verification

  • Fresh Python 3.11 venv, pip install -r requirements.txt, built people.db with the README's commands. python app.py served GET / and GET /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 --check and ruff check both pass.

  • Draft update (admin): https://realpython.com/pbjt/blog/post/2422/change/

  • Maintenance card: https://trello.com/c/TocAAj4S

🤖 Generated with Claude Code

…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

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant