Skip to main content

A simple utility library for common operations used in ZionClouds projects

Project description

GCS Utils

A simple utility library for Google Cloud Storage operations.

Installation

pip install ZionClouds-Common-code==1.0.0

Usage

from gcs_utils import GCSClient

# Initialize with service account key
client = GCSClient(
    credentials_path="/path/to/service-account.json",
    project_id="your-project-id"
)

# Upload file
success, gcs_uri = client.upload_to_gcs(
    bucket_name="your-bucket",
    file_name="document.pdf",
    file_data=file_bytes,
    meta_data={"author": "John Doe"}
)

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

zionclouds_common_code-1.0.1.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zionclouds_common_code-1.0.1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file zionclouds_common_code-1.0.1.tar.gz.

File metadata

  • Download URL: zionclouds_common_code-1.0.1.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for zionclouds_common_code-1.0.1.tar.gz
Algorithm Hash digest
SHA256 adb6c324a26e647bd2941632059998f21f41df334cd4a662759208b8262556d9
MD5 59ddd8733b98aee6aae48c4016736773
BLAKE2b-256 1a8babf583f21f4dde0b8d627d34fa250d31050e4ff105c01ebe1e8a4652d053

See more details on using hashes here.

File details

Details for the file zionclouds_common_code-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for zionclouds_common_code-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3435dfcb9a181206daf3debc69627d8b483de19c7f39260bced5d42ed982e477
MD5 abd630d69257766e0fa12b34db1f9a7e
BLAKE2b-256 a9f2a347d40bdeccea607fe99b94d6c5a27f29b51f060840588eff9c91d6b23b

See more details on using hashes here.

Supported by

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