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.1.0.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

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

gcputil-0.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file gcputil-0.1.0.tar.gz.

File metadata

  • Download URL: gcputil-0.1.0.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.6

File hashes

Hashes for gcputil-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b40114ab61da38466e8b64f6cc6e3ccf1127dc0087774563af8c873ae66efa54
MD5 85bea9db3fef615473fe6667fbc9bc66
BLAKE2b-256 1545e6fa9694ad24d5b9c204d95559f36bfd4b795b3988003c4f6e2d2590edcb

See more details on using hashes here.

File details

Details for the file gcputil-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: gcputil-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.6

File hashes

Hashes for gcputil-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e3a66f7fa5ec46cb84ca4890f58f9e0ac4ad969b859b9aeb4429dd15c55ac715
MD5 8b2b32bf8e7c19c56e0be4bbbc7c1341
BLAKE2b-256 a725fc5bd27afd2c665fe6cc8eec24276bfcbc5d99d6d024c532e31f277a9dfe

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