This package provides a Keyring back end backed by a Google Sheet.
Project description
This package provides a Keyring back end 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 back ends.
The Python Keyring package is a cross-platform password storage library, that supports a variety of platform-specific back ends, as well as a few third-party back ends.
None of these other back ends is compatible with Google Colaboratory. (They may not be compatible with other Jupyter hosting services such as Azure or CoCalc, either.)
To use this package, simply install it via pip3 install gsheet-keyring, and use the Keyring API as normal. If one of the built-in Keyring back ends is available, Keyring will use that. If a platform-specific back end is not available, Keyring will automatically detect and use this package instead.
To force Keyring to use this package even if other back ends 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, it creates one.
As an alternative, you can also specify a different Google Sheet name, a Google Sheet key, or a gspread Worksheet. See this package’s API documentation for details on how to do this.
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-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 093636b21bac9dba910a79610660e02d9b59f868d32aa924319fac0ad744ca72 |
|
MD5 | 6a326c14839a276272d84d8266fc9ff2 |
|
BLAKE2b-256 | 9b91659a06611a9d1c8c18c0cfc52493c5f97094a683e9fd5ff4cafd816272dc |