Skip to main content

gcshus: GCS helper utils.

Project description


GCS Helper Utils for Python

How to use

Upload a file

import gcshus
from import storage

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

Generate a signed url for download

import gcshus
from import storage

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

Download a file

import gcshus
from import storage, bucket, "some/remote/blob.txt", "local-file.txt")

Run test

docker compose up

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gcshus-0.0.4.tar.gz (3.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page