Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

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 File type Python version Upload date Hashes
Filename, size gcputil-0.1.0-py3-none-any.whl (4.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size gcputil-0.1.0.tar.gz (2.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page