UptimeRobot plugin for `edwh`
Project description
edwh-uptime-plugin
UptimeRobot API integration for the edwh
tool.
Table of Contents
Installation
pip install edwh-uptime-plugin
But probably you want to install the whole edwh package:
pipx install edwh[uptime]
# or
pipx install edwh[plugins,omgeving]
Usage
# set your api key and see your profile info:
edwh uptime.account
# see the other available commands:
edwh help uptime
UPTIMEROBOT_APIKEY
is saved in a .env
file. You can also set IS_DEBUG=1
if you want to see verbose logging (every
request and response).
As a Library
from edwh_uptime_plugin import tasks
from edwh_uptime_plugin.tasks import specific_task
from edwh_uptime_plugin.uptimerobot import UptimeRobot, uptime_robot
# run specific tasks via tasks.some_task or import some_task
tasks.specific_task == specific_task
# by default, the API key will be loaded from .env or prompted.
uptime_robot._api_key = "specific-key" # before any API calls to skip .env behavior
# uptime_robot is an instance of UptimeRobot
uptime_robot.get_account_details()
License
edwh-uptime-plugin
is distributed under the terms of the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
edwh_uptime_plugin-0.2.4.tar.gz
(49.3 kB
view hashes)
Built Distribution
Close
Hashes for edwh_uptime_plugin-0.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa4d0712949ec357eb1461a0e4c42fea96be2c9f42742c4cf570b63dd69fb5bf |
|
MD5 | 82d1ab4b912fd6b9a2d019c8f4ac6578 |
|
BLAKE2b-256 | 42a940031f63c2ae6270c9d9e7aaf626baf3353ec57fc711a9159f074402e7c4 |