Skip to main content

Storage Bucket

Makes working with GCP Storage bucket a breeze


test codecov Python Version wemake-python-styleguide


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

Metadata

Release files for storage-bucket 3.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for storage-bucket 3.0.0
File Size Uploaded Provenance
storage-bucket-3.0.0.tar.gz 4.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for storage-bucket 3.0.0
File Interpreter ABI Platform
storage_bucket-3.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.7 kB

Release files / storage-bucket-3.0.0.tar.gz

Download URL storage-bucket-3.0.0.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a54d660fb8182c9cdca2de9843069956279ef91210a3b7fe343fd62355e8b73f
BLAKE2b-256 checksum
How to use checksums
7e443ca33e8d2b0ea3517d012a08169d2145a10f1216382369159fe736fda507
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.9.7 Linux/5.4.0-86-generic

Release files / storage_bucket-3.0.0-py3-none-any.whl

Download URL storage_bucket-3.0.0-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4f220c643e0579bea07e4e4fc210fdb792270a864e3ab4e07f23f8d0bed9d3d3
BLAKE2b-256 checksum
How to use checksums
7eb815f044c273e53169f6b713a71277d9f10047f234bd48bffc8be275f6923c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.9.7 Linux/5.4.0-86-generic

Security for storage-bucket 3.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page