cloudpathlib
cloudpathlib copied to clipboard
Python pathlib-style classes for cloud storage services such as Amazon S3, Azure Blob Storage, and Google Cloud Storage.
Similar to the `shutil.rmtree()` method, allow the `ignore_errors` flag to be set for CloudPath instances.
If users want to add User defined metadata tags while uploading to S3 they should be able to do so, but currently can't find a way for this using CloudPath...
I've outlined this issue in more depth here: https://stackoverflow.com/q/73708204/15739035 But essentially just using this simple code: ``` from cloudpathlib import CloudPath path = r"C:\some\path\to\folder" url = "s3://some-example-bucket/folder/" cloud_path = CloudPath(url)...
Disclaimer: I quickly hacked this as a draft/suggestion. There might be better/nicer methods to achieve the same. I suggest to add some abstractmethods to AnyPath so that the methods available...
Workflow failed: [tests #580](https://github.com/drivendataorg/cloudpathlib/actions/runs/2896555882)
There are many use cases where uploading unencrypted objects to an Amazon S3 bucket is denied. For example an S3 bucket policy which enforces the encryption requirement when users upload...
The current implementation of the .open methods consists of a local cache which is then synchronized with the cloud. This method can be replaced by [smart_open](https://github.com/RaRe-Technologies/smart_open), to allow for a...
The implementations of S3Path and LocalS3Path diverge in the following way which disqualifies using `LocalS3Path` as a testing tool. ```python from cloudpathlib.s3 import S3Path path = S3Path("s3://this/path/does/not/exist") path.mkdir(parents=True) # does...
```python from cloudpathlib.local import LocalS3Path, LocalS3Client path = LocalS3Path("s3://some/path/") path.touch() LocalS3Client.reset_default_storage_dir() new_path = LocalS3Path("s3://some/path/") assert not new_path.is_file() # fails ``` The reason is that `reset_default_storage_dir()` acts on the class attribute...
Hi there. I tried looking in the docs to see if there was any support for explicitly setting number of retries for the Google Storage Client when writing to a...