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.3.3.tar.gz
(12.1 kB
view details)
Built Distribution
File details
Details for the file edwh_uptime_plugin-0.3.3.tar.gz
.
File metadata
- Download URL: edwh_uptime_plugin-0.3.3.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.26.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fba1d079f471c7a1c70ef6a457ee2dfb47d26824dd580af6823d29125ba1296d |
|
MD5 | de030cfe77a405c363741b5f19edf71c |
|
BLAKE2b-256 | b9aee05152ca3c4b5c01a437c981fa71a5b79f09310971cf42009e45cad1cf6c |
File details
Details for the file edwh_uptime_plugin-0.3.3-py3-none-any.whl
.
File metadata
- Download URL: edwh_uptime_plugin-0.3.3-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.26.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 409d16d458663a5fdfed3916992e5acff7ea45115430c1e1b4a471e1c8989f17 |
|
MD5 | 68a1a6455d181cc93024c150a84d772d |
|
BLAKE2b-256 | 2e524e2b897582623571b82c79b8ce24daaecdd218ec3883a431020d50feda88 |