Skip to main content

Gcs simple functions

Project description


gcs_basic_functions

Google storage basic functions

Getting Started

import gcs_basic
gcs_basic.download(bucket_name, blob_path, down_path, project)
gcs_basic.upload(bucket_name, blob_path, local_path, project)
gcs_basic.list_blobs(bucket_name, blob_path, project)

Prerequisites

This is an example of how to list things you need to use the software and how to install them.

  • python python-pip
    sudo apt-get install python3 python-pip
    #or
    sudo pacman -S python python-pip
    
  • Google cloud SDK for credentials - temporarily
    wget https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-364.0.0-linux-x86_64.tar.gz
    tar -xvf google-cloud-sdk-364.0.0-linux-x86_64.tar.gz
    cd google-cloud-sdk-364.0.0-linux-x86_64
    bash google-cloud-sdk/install.sh
    #open new terminal
    gcloud init
    gcloud auth application-default login
    

Installation

  1. Clone the repo
    git clone https://github.com/antonio258/gcs_basic_functions.git
    
  2. Install package
    cd gcs_basic_functions
    pip install .
    

Roadmap

  • Download one file from storage
  • Upload one file to storage
  • Download folder from storage
  • Upload folder to storage
  • List blobs
  • Check credentials in library

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

gcs_basic-2.0.1.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

gcs_basic-2.0.1-py3-none-any.whl (3.4 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