Skip to main content
https://img.shields.io/pypi/v/gcs-oauth2-boto-env-plugin.svg

gcs-oauth2-boto-env-plugin is a Python application whose purpose is to behave as an auth plugin for the boto auth plugin framework for use with OAuth 2.0 credentials for the Google Cloud Platform. This plugin is only compatible with service accounts, and it’s functionality is essentially a wrapper around gcs-oauth2-boto-plugin, with the added capability of passing the private JSON key as an environment variable for easy deployment.

Usage

Call the following program with the content of the JSON private key set as GOOGLE_OAUTH2_JSON_PRIVATE_KEY environment variable:

import boto
import gcs_oauth2_boto_env_plugin

project_id = 'your-project-id'

header_values = {"x-goog-project-id": project_id}
uri = boto.storage_uri('', 'gs')
for bucket in uri.get_all_buckets(headers=header_values):
    print bucket.name

License

All source code is licensed under the MIT License.

Metadata

Release files for gcs-oauth2-boto-env-plugin 0.1.3

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

Source distribution (sdist)

Source distribution for gcs-oauth2-boto-env-plugin 0.1.3
File Size Uploaded
gcs-oauth2-boto-env-plugin-0.1.3.tar.gz 2.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gcs-oauth2-boto-env-plugin 0.1.3
File Interpreter ABI Platform
gcs_oauth2_boto_env_plugin-0.1.3-py2-none-any.whl Python 2 none any Details

Total release size: 7.3 kB

Release files / gcs-oauth2-boto-env-plugin-0.1.3.tar.gz

Download URL gcs-oauth2-boto-env-plugin-0.1.3.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
5a02a89f5b0249d78bfdbabd9fb6a4614398921e9aab70aeb6796a66d1ecc5dc
BLAKE2b-256 checksum
How to use checksums
e4cad06906899c9d34e0dada44412a978144b312b3af3127662b5508c0aeae7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gcs_oauth2_boto_env_plugin-0.1.3-py2-none-any.whl

Download URL gcs_oauth2_boto_env_plugin-0.1.3-py2-none-any.whl
Size 4.7 kB
Tags Python 2
SHA-256 checksum
How to use checksums
820ca0d9410b84253a491b9f5808f4412a17dccc8994ac4bd40b54f30feeef60
BLAKE2b-256 checksum
How to use checksums
b460a04c37062db2f6b0f45442a06825176acf724c07af457fb4a943b0276a28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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