Skip to main content

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

Release files for gcshus 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gcshus 0.0.4
File Size Uploaded
gcshus-0.0.4.tar.gz 3.8 kB Details

Release files / gcshus-0.0.4.tar.gz

Download URL gcshus-0.0.4.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e99626b1b3e8dff252db6c8631ec2878a43b408a9069650a04e0c3a3dec01fa4
BLAKE2b-256 checksum
How to use checksums
2387c298e55c97942f148575547a515f59f98e332a4cdd9702d830c7876c40e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release history Release notifications | RSS feed

This release

0.0.4 This release

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page