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
- Clone the repo
git clone https://github.com/antonio258/gcs_basic_functions.git
- 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
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 Distribution
gcs_basic-2.0.1.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for gcs_basic-2.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a67511578154a2d03fadd24bbbaef3f53a6ff0b1f209d9619213c7e9bbe55fab |
|
MD5 | 5a5370a519d29df7724ab19805f475b9 |
|
BLAKE2b-256 | cd8de98e907b3ac198c491fd9a8b4564cbc8c5c98e67e7db0bea0914470d97c1 |