Skip to main content

A package to use gcp functions

Project description

GCP Utils Package

Includes the following Methods:

  • def upload_to_gcp_storage(bucket, src_filename, dest_filename, folder='')

     Function to upload a file to google cloud storage
     :parameter bucket: name of bucket to upload files to
     :parameter src_filename: name of source filename to upload
     :parameter dest_filename: specify name of file once uploaded
     :parameter folder: optional folder path to upload to. (e.g 'folder1/')
    
  • def download_from_gcp_storage(bucket, src_filename, dest_filename, folder=''):

     Function to download a file to google cloud storage
     :parameter bucket: name of bucket to download files from
     :parameter src_filename: name of source filename to download
     :parameter dest_filename: specify name of file once downloaded
     :parameter folder: optional folder path to download from. (e.g 'folder1/')
    
  • def list_gcp_bucket_blobs(bucket, prefixStr=''):

     Function to list bucket from google cloud storage
     :parameter bucket: name of bucket to grab items from
     :parameter prefixStr: optional prefix for files to list in bucket
     :return array: returns array of bucket items in blob format
    

Project details


Download files

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

Files for gcputil, version 0.1.0
Filename, size & hash File type Python version Upload date
gcputil-0.1.0-py3-none-any.whl (4.0 kB) View hashes Wheel py3
gcputil-0.1.0.tar.gz (2.0 kB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page