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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gcs_basic-2.0.1.tar.gz.
File metadata
- Download URL: gcs_basic-2.0.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4206492310366e950be75f8d2a5799ec8019caae01648dd661b63bda20a9142
|
|
| MD5 |
bdd5f2b9af7688e508d4ff571ce10484
|
|
| BLAKE2b-256 |
9bf2bab8452098ae47f16d6ddf96b7c8996430ccad210bffe4bf9f2c0ad02045
|
File details
Details for the file gcs_basic-2.0.1-py3-none-any.whl.
File metadata
- Download URL: gcs_basic-2.0.1-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a67511578154a2d03fadd24bbbaef3f53a6ff0b1f209d9619213c7e9bbe55fab
|
|
| MD5 |
5a5370a519d29df7724ab19805f475b9
|
|
| BLAKE2b-256 |
cd8de98e907b3ac198c491fd9a8b4564cbc8c5c98e67e7db0bea0914470d97c1
|