Skip to main content

gcp_utils

Utilities for working with Google Cloud Platform (GCP). Written in an effort to keep re-useable functions to a singular package.

Installation

pip install gcp_utils

Features

  • Upload and read CSVs from Google Cloud Storage
  • Access secrets from Google Secret Manager
  • Combine current and previous year GCS data

Example Usage

from gcp_utils import send_to_gcs, read_gcs_csv_to_df, access_secret_version, load_and_append_previous_year

# Upload a DataFrame to GCS
send_to_gcs('my-bucket', 'data/', my_dataframe, 'file.csv')

# Read a CSV from GCS
df = read_gcs_csv_to_df('gs://my-bucket/data/file.csv')

# Access a secret
creds = access_secret_version('my-project', 'my-secret')

# Combine current and previous year data
df = load_and_append_previous_year('my-bucket', 'etl/incoming/2024_file.csv')

License

MIT

Metadata

Release files for gcp-utils-sds 0.2.6

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

Source distribution (sdist)

Source distribution for gcp-utils-sds 0.2.6
File Size Uploaded Provenance Actions
gcp_utils_sds-0.2.6.tar.gz 14.8 kB Without provenance Details for gcp_utils_sds-0.2.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gcp-utils-sds 0.2.6
File Interpreter ABI Platform Actions
gcp_utils_sds-0.2.6-py3-none-any.whl Python 3 none any Details for gcp_utils_sds-0.2.6-py3-none-any.whl

Total release size: 27.1 kB

Release files / gcp_utils_sds-0.2.6.tar.gz

Download URL gcp_utils_sds-0.2.6.tar.gz
Size 14.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f6f942bd6b86388575f8f9711c5dc7011130f3edd55be2c84dfee58e06f9155b
BLAKE2b-256 checksum
How to use checksums
41bf19a8f53d55335ad0ddcb30b07cda48f2c1cdbb1f5e1dc2de658476ba0ca2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / gcp_utils_sds-0.2.6-py3-none-any.whl

Download URL gcp_utils_sds-0.2.6-py3-none-any.whl
Size 12.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8857c67447ff87a3de51b6b6053935a2fd2d4e70c47387d45300cdcc4f2a8e9a
BLAKE2b-256 checksum
How to use checksums
591bb767acf7e601a08b0a0fc8bcc2b3d2c38167d422a69ca4f66f871c7581ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Security for gcp-utils-sds 0.2.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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