Repository navigation
Sync consuming-apis-python with the updated tutorial - #984
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
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
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 the
consuming-apis-pythonfolder with the maintenance update of Python & APIs: A Winning Combo for Reading Public Data.What changed
github.py:print_user_info()printsprivate repositories:like the article; moved GitHub docs links in comments refreshed.giphy_trending.py/giphy_search.py: f-string output andlimitmatching the article; moved GIPHY docs link refreshed.google_books.py:.get()lookups and f-string output matching the article.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.txtin a fresh venv; all scripts compile; ruff 0.14.1 format/check anddircheck.pypass. 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 withrequestsstubbed with representative responses; the output matches the article's (for exampleJohn Doe (johndoe) | private repositories: 42).🤖 Generated with Claude Code