/stowrap

Python Storage Service Wrapper

Primary LanguagePythonMIT LicenseMIT

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")