Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Google Storage auth2 plugin with support for passing service key via environment

Project Description

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.


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):


All source code is licensed under the MIT License.

Release History

This version
History Node


History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(4.7 kB) Copy SHA256 Hash SHA256
Wheel 2.7 Sep 18, 2015
(2.6 kB) Copy SHA256 Hash SHA256
Source None Sep 18, 2015

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting