Repository navigation
Add python-boto3-aws-s3 materials folder - #989
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
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.
Adds the companion code for Python, Boto3, and AWS S3: Demystified, which had no materials folder.
The files mirror the full-update draft (admin: https://realpython.com/pbjt/blog/post/2434/change/):
helpers.pyholds the article's helper functions (create_bucket()with theus-east-1location-constraint fix,create_temp_file(),copy_to_bucket(),enable_bucket_versioning(),delete_all_objects()), ands3_tutorial.pyruns every step of the tutorial in order, including the ACL practice setup (ObjectWriterownership plus removing the public access block), and then deletes everything it created. The one deviation: the download step writes totempfile.gettempdir()instead of/tmp, so the script also runs on Windows. The pin matches the article's dependencies field:boto3==1.44.18.Trello card: https://trello.com/c/9kv88ZKp
Verification (Python 3.15.2, venv on the pinned requirements plus
moto[s3]==5.2.6; no real AWS credentials in the VM):s3_tutorial.pyran end to end insidemoto.mock_awsin botheu-west-1andus-east-1. Output matches the tutorial's (grants,AES256,STANDARD_IA,Enabled, the traversals, and the delete lists), apart from random names, version IDs, and timestamps.ruff format --check,ruff check(0.14.1), anddircheck.pypass.🤖 Generated with Claude Code