This package provides a Keyring backend that is backed by a Google Sheet.
Project description
This package provides a Keyring backend that stores passwords in a Google Sheet. It was created for use with the ipython-secrets package, that uses Kerying to store secrets that are used in a Jupyter notebook. This package extends ipython-secret’s functionality, to enable it to be used in Colaboratory notebooks, and other hosted services that don’t support the standard Keyring backends.
The Python Keyring package is a cross-platform password storage library, that supports a variety of platform-specific backends, as well as a few third-party backends.
None of these other backends is compatible with Google Colaboratory. (They may not be compatible with other Jupyter hosting services such as Azure or CoCalc, either.) That’s the problem that this package solves.
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. 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 searches for a Google Sheet named “keyring”. If there’s no sheet with this name, one is created.
As an alternative, you may also specify a different Google Sheet name, a Google Sheet key, or a Worksheet from the gspread package.
License
MIT
Project details
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
Hashes for gsheet_keyring-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa826a32307c44eeb283beeb227ecc7a09be0eb89d7417aa7940287b14ad347b |
|
MD5 | a3a145c673c85f0d9fa1c20b42a35eef |
|
BLAKE2b-256 | cff32ef76143231308226478607a8c20efd9d12b30be46a9195fa31ae88144e8 |