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.

Source Distribution

gcputil-0.0.9.tar.gz (2.0 kB view hashes)

Uploaded Source

Built Distribution

gcputil-0.0.9-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

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