semvec/pypi-packages huggingface dataset:
stowrap 0.0.6
stowrap: Python Storage Service Wrapper.
License: MIT
Keywords: gcs s3

# stowrap
Python Storage Service Wrapper

## How to use
### Initialize client
```
import stowrap

c = stowrap.Client("gcs")

or

c = stowrap.Client("s3")

```

### Upload a file
```
result = c.upload("my-bucket", "/path/to/local/file", "dstfile.txt")
print(result.url)
```


### Download a file
```
c.download("my-bucket", "some/remote/file.txt", "/path/to/local/file.txt")
```
gcshus 0.0.4
gcshus: GCS helper utils.
License: MIT
Keywords: gcs

# gcshus
GCS Helper Utils for Python

## How to use
### Upload a file
```
import gcshus
from google.cloud import storage

gcshus.upload(
    storage.Client(), "my-bucket", "/path/to/src.txt", "dst.txt"
)
```

### Generate a signed url for download
```
import gcshus
from google.cloud import storage

url = gcshus.generate_download_signed_url_with_token_refresh(
    storage.Client(), "my-bucket", "dst.txt", 5
)
```

### Download a file
```
import gcshus
from google.cloud import storage

gcshus.download(storage.Client(), bucket, "some/remote/blob.txt", "local-file.txt")
```

## Run test
```
docker compose up
```