Skip to content

Sync python-uv with the updated tutorial - #902

Merged
realpython-bot merged 2 commits into
masterfrom
maintenance/python-uv-20261021
Oct 22, 2026
Merged

realpython-bot merged 2 commits into
masterfrom
maintenance/python-uv-20261021

Conversation

@realpython-bot

Copy link
Copy Markdown
Collaborator

Maintenance update of Managing Python Projects With uv: An All-in-One Solution.

What changed and why

  • main.py: The Cat API's /v1/breeds endpoint now returns HTTP 403 without an API key. The app now sends the key from the CAT_API_KEY environment variable in the x-api-key header, matching the updated tutorial code.
  • README.md: Notes that the app needs a Cat API key in CAT_API_KEY.

Links

Verification

  • CAT_API_KEY=<key> uv run main.py Persian and uv run main.py "Scottish Fold" both print the breed profile (uv 0.13.4, Python 3.14). Without a key the endpoint answers 403.
  • uvx ruff@0.14.1 format --check python-uv and uvx ruff@0.14.1 check python-uv pass.

🤖 Generated with Claude Code

realpython-bot and others added 2 commits October 21, 2026 06:08
…s With uv: An All-in-One Solution

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@realpython-bot
realpython-bot merged commit 6f03492 into master Oct 22, 2026
1 check passed
@realpython-bot
realpython-bot deleted the maintenance/python-uv-20261021 branch October 22, 2026 09:34
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