A package to use gcp functions
Project description
GCP Utils Package
Includes the following Methods:
-
def download_from_gcp_storage (bucket, src_filename, dest_filename, folder='')
Function to upload 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 upload_to_gcp_storage(bucket, src_filename, dest_filename, folder='')
Function to upload 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 upload 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 :return array: returns array of bucket items in blob format
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.