Easy to work with Google Cloud Platform Storage Bucket wrapper
Project description
Storage Bucket
Makes working with GCP Storage bucket a breeze
Documentation | Source Code | Issue Tracker
The goal of this package is to make it easy to work with GCP Storage Bucket. We felt that using googles package(google-cloud-storage) was a horrible experience and we believe that this package abstracts away the object oriented approach taken by google and introduces a more functional approach.
Quickstart
Get the package
pip install storage-bucket
Or better with poetry
poetry add storage-bucket
Download your keyfile and save it as key.json and point to it with env var:
gcloud iam service-accounts keys create key.json --iam-account your_service_account@your_project.iam.gserviceaccount.com
export GOOGLE_APPLICATION_CREDENTIALS='key.json'
Download
from storage_bucket import download_file
file_data = download_file('bucket', 'filename')
print(file_data)
Upload
from storage_bucket import upload_file
upload_file(b'data', 'bucket_name', 'filename')
Supported operations - File
Download
, Upload
, List
, Delete
Supported operations - Bucket
Create
, Delete
, List
Check Usage.
Contribution
Like the library and want to help us, check: contributing
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
Built Distribution
File details
Details for the file storage-bucket-3.0.0.tar.gz
.
File metadata
- Download URL: storage-bucket-3.0.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.7 Linux/5.4.0-86-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a54d660fb8182c9cdca2de9843069956279ef91210a3b7fe343fd62355e8b73f |
|
MD5 | b5ae4b6fb2c4872438d09d76091f0ec0 |
|
BLAKE2b-256 | 7e443ca33e8d2b0ea3517d012a08169d2145a10f1216382369159fe736fda507 |
File details
Details for the file storage_bucket-3.0.0-py3-none-any.whl
.
File metadata
- Download URL: storage_bucket-3.0.0-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.7 Linux/5.4.0-86-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f220c643e0579bea07e4e4fc210fdb792270a864e3ab4e07f23f8d0bed9d3d3 |
|
MD5 | a6814c0ea841716f95ae780c0feba6d8 |
|
BLAKE2b-256 | 7eb815f044c273e53169f6b713a71277d9f10047f234bd48bffc8be275f6923c |