Skip to main content

Latest PyPI Version Documentation Status License Supported Python Versions

This package provides a Keyring backend that stores passwords in a Google Sheet.

Motivation

This package allows ipython-secrets to be used on Google Colaboratory, and on other hosted services that don’t support the standard Keyring backends.

The ipython-secrets package uses Keyring to store secrets for use in a Jupyter notebook. However, none of the standard Keyring backends works in Google Colaboratory, since that service provides neither durable file storage, nor the native operating system services that the standard keyring backends require.

Usage

To use this package, install it via pip3 install gsheet-keyring, and use the Keyring API as normal. If one of the built-in Keyring backends is available, Keyring will use that backend in preference to this one (as it should). However, if a platform-specific backend is not available, Keyring will automatically detect and use this package instead.

Use keyring.set_keyring to force Keyring to use this package even, if other backends are available:

import keyring
from gsheet_keyring import GoogleSheetKeyring
keyring.set_keyring(GoogleSheetKeyring())

By default, this backend searches for a Google Sheet named “keyring”. If there’s no sheet with this name, one is created.

You can override this default by specifying a Google Sheet name, a Google Sheet key, or a Worksheet from the gspread package.

Alternatives

If you’re running in an environment where any other Keyring backend is available, use that instead. (This should happen automatically.)

If you require either greater performance or security than this package provides (see the notes in the API documentation), you probably want to instead create or use a backend that uses a secret management service such AWS Secrets Manager, Google Cloud AMS, or or Hashicorp Vault.

The keyring-vault-backend package is a Keyring backend interface to Hashicorp Vault. I haven’t used it.

License

MIT

Release files for gsheet-keyring 1.0.1

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

Source distribution (sdist)

Source distribution for gsheet-keyring 1.0.1
File Size Uploaded
gsheet-keyring-1.0.1.tar.gz 15.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gsheet-keyring 1.0.1
File Interpreter ABI Platform
gsheet_keyring-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 27.5 kB

Release files / gsheet-keyring-1.0.1.tar.gz

Download URL gsheet-keyring-1.0.1.tar.gz
Size 15.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e2d1293d3a61d9cca1ac8c7c383bb561537b1bf623ba7f0d7c6cdd6e2b1c1bc6
BLAKE2b-256 checksum
How to use checksums
71479e95629621d9d46ae4fd7ae843a85c84feab4551199f7d1f23ec4c46a330
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gsheet_keyring-1.0.1-py3-none-any.whl

Download URL gsheet_keyring-1.0.1-py3-none-any.whl
Size 11.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
54949c60c030912d6d8ea78277ebe3f5660508c75d5be70a0fd1a4d4be544bf5
BLAKE2b-256 checksum
How to use checksums
b04fd884fe8601d5e7f3e2e010cc5c9d3142f11169fea3203901d36d1b8317f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

0.1.3

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