latch_cli.services.test_data package#
Submodules#
latch_cli.services.test_data.ls module#
Service to list test objects from a managed bucket.
latch_cli.services.test_data.remove module#
Service to remove test objects from a managed bucket.
latch_cli.services.test_data.upload module#
Service to upload test objects to a managed bucket.
- latch_cli.services.test_data.upload.upload(src_path: str, dont_confirm_overwrite: bool = True) str [source]#
Uploads a local file/folder to a managed bucket.
- Parameters
src_path – The path of the file/folder to upload.
- Returns
s3 URL of uploaded object.
Example
>>> upload("./foo.txt") # Puts the file `foo.txt` in a managed bucket and returns a publicly # accesible S3 URL.
- latch_cli.services.test_data.upload.upload_helper(src_path: pathlib.Path, key: str, s3_resource, dont_confirm_overwrite: bool)[source]#
- latch_cli.services.test_data.upload.upload_file(src_path: pathlib.Path, key: str, s3_resource, dont_confirm_overwrite: bool)[source]#