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.
Directions
For this exercise, please review the following methods in the
s3_utils.py
andtest_s3_utils.py
files:_get_byte_offsets_and_parts
_large_copy_object_to_aws
_upload_part_to_aws
This code was intentionally designed for interview purposes -- so fear not, you won't offend anyone!
Criteria:
Setup Directions
It's recommended you use a virtual environment such as venv or conda.
You can run
pip install poetry
or install the packages in thepyproject.toml
file.If using poetry, you can install all packages by running the following from the root directory:
poetry install
Running tests
You can run tests using the following command from the root directory:
pytest test_s3_utils.py