Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use requests stream and shutil.copyfileobj to constrain memory usage …
…during resource copy (#236) * Use requests stream and shutil.copyfileobj to constrain memory usage - When copying resources from a remote origin over HTTP(S) prefer to stream the response body and copy chunks into the destination file insead of loading the entire file into memory first before writing. * Fix format/linting * Fix ruff import re-ordering * Remove with; use finally to close response * Add unit test for resource_copy from https origin - Add requests_mock dependency so that we can mock an https origin with an mp4 file.
- Loading branch information