Skip to main content

No project description provided

Project description

GoogleCloudPlatformAPI

Lightweight helpers for common Google Cloud Platform services. The package wraps Google APIs such as BigQuery, Cloud Storage, Analytics, and Ad Manager to reduce boilerplate when building data pipelines or analytics tools.

Installation

pip install GoogleCloudPlatformAPI

Configure authentication with a service account JSON file via the GOOGLE_APPLICATION_CREDENTIALS environment variable or supply the path to individual helpers.

Usage

BigQuery

from GoogleCloudPlatformAPI.BigQuery import BigQuery

bq = BigQuery()
df = bq.bigquery_to_dataframe("SELECT CURRENT_DATE() AS today")
print(df)

Cloud Storage

from GoogleCloudPlatformAPI.CloudStorage import CloudStorage

storage = CloudStorage()
storage.upload_file_from_filename(
    local_file_path="local.txt",
    destination_file_path="data/local.txt",
    bucket_name="my-bucket",
)

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

googlecloudplatformapi-2.3.6.tar.gz (26.7 kB view details)

Uploaded Source

Built Distribution

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

googlecloudplatformapi-2.3.6-py3-none-any.whl (25.1 kB view details)

Uploaded Python 3

File details

Details for the file googlecloudplatformapi-2.3.6.tar.gz.

File metadata

  • Download URL: googlecloudplatformapi-2.3.6.tar.gz
  • Upload date:
  • Size: 26.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for googlecloudplatformapi-2.3.6.tar.gz
Algorithm Hash digest
SHA256 197e42cddf9ab2c4930cc99e4f60badb74d14837d7a690c017c72662ada1f44c
MD5 47840daaeb0fc630e5e690df4e34c0c8
BLAKE2b-256 d68e7a12a38c84529558f0b604e9b6cafc1c3c2ef297a9d243dcb879537c7afd

See more details on using hashes here.

File details

Details for the file googlecloudplatformapi-2.3.6-py3-none-any.whl.

File metadata

File hashes

Hashes for googlecloudplatformapi-2.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 45e0bb8038580f0404723799e4897e459cf6cc171895b8380be4c94996f16c7a
MD5 7a33f45233fdb5a9045f3008862373e0
BLAKE2b-256 47beebc2bdfae8d44fa3680c66d298a759f0df60168f3526d194527d843c4ab9

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