Once this extension package is installed Kibitzr’s creds will be augmented with keyring dictionary. keyring dictionary has following structure: {service: {key: value}}.
creds dictionary is available in many parts of Kibitzr checks. To access it from Python code use:
creds['keyring']['<service>']['<key>']
When using in Jinja templates you can use the same form, or shortcut:
creds.keyring.<service>.<key>
Kibitzr credentials documentation.
Install
pip install kibitzr_keyring
Usage example
Add new credentials to system keyring:
$ keyring set discover username Password for 'username' in 'discover': john $ keyring set discover password Password for 'password' in 'discover': doe
Use those credentials in kibitzr.yml:
checks:
- name: Discover
url: https://www.discover.com/
form:
- id: userid
creds: keyring.discover.login
- id: password
creds: keyring.discover.password
delay: 5
transform:
- css: .current-balance
- text
- changes: verbose
notify:
- mailgun
error: ignore
period: 3600
headless: false
Run kibitzr, it will take discover credentials from system keyring.
Note
Tested only with GNOME Keyring under Ubuntu 16.04. Don’t hesitate to open an issue if having any problems.
Release files for kibitzr-keyring 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| kibitzr_keyring-0.0.1.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kibitzr_keyring-0.0.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 7.9 kB
Release files / kibitzr_keyring-0.0.1.tar.gz
| Download URL | kibitzr_keyring-0.0.1.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f0462aa94bdb4420b413f7e1e2777eb015615665a878a088011c9963d1c531ef
|
|
BLAKE2b-256 checksum How to use checksums |
6fa38e25ab2311f3aff1689821ec9f407d1aabb988abf6efd58c419e2bc4cbda
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / kibitzr_keyring-0.0.1-py2.py3-none-any.whl
| Download URL | kibitzr_keyring-0.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
077f01ee21a9891e288300dac6d0648e59a8e3adc212c1c3641f1b7b9359d63c
|
|
BLAKE2b-256 checksum How to use checksums |
598ea8559b0a590825ee47a7a36dfe0f36740b4c992cb8a443ad8c4c30bce90d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |