Skip to main content

Keyring support for Kibitzr

Project description

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.

Keyring 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.

Project details


Download files

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

Files for kibitzr-keyring, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size kibitzr_keyring-0.0.1-py2.py3-none-any.whl (4.3 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size kibitzr_keyring-0.0.1.tar.gz (3.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page