Skip to content

Sync consuming-apis-python with the updated tutorial - #984

Open
realpython-bot wants to merge 1 commit into
masterfrom
maintenance/python-api-20261203
Open

realpython-bot wants to merge 1 commit into
masterfrom
maintenance/python-api-20261203

Conversation

@realpython-bot

Copy link
Copy Markdown
Collaborator

Syncs the consuming-apis-python folder with the maintenance update of Python & APIs: A Winning Combo for Reading Public Data.

What changed

  • github.py: print_user_info() prints private repositories: like the article; moved GitHub docs links in comments refreshed.
  • giphy_trending.py / giphy_search.py: f-string output and limit matching the article; moved GIPHY docs link refreshed.
  • google_books.py: .get() lookups and f-string output matching the article.
  • New requirements.txt (requests==2.32.3, the article's dependencies pin) and Setup/Usage sections in the README.

Draft: https://realpython.com/pbjt/blog/post/2760/change/ (preview: https://realpython.com/python-api-update/)
Card: https://trello.com/c/APmqfyC0

Verification: installed requirements.txt in a fresh venv; all scripts compile; ruff 0.14.1 format/check and dircheck.py pass. The scripts need credentials (GIPHY key, GitHub OAuth app) and the Google Books anonymous quota was exhausted from the VM, so each script was run with requests stubbed with representative responses; the output matches the article's (for example John Doe (johndoe) | private repositories: 42).

🤖 Generated with Claude Code

Mirror the article's current code (f-string output, GIPHY search limit,
safe .get() lookups in google_books.py, print_user_info() output text),
refresh moved GitHub and GIPHY docs links in comments, and add a pinned
requirements.txt with Setup and Usage in the README.

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