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.3.tar.gz
(49.2 kB
view details)
Built Distribution
File details
Details for the file edwh_uptime_plugin-0.2.3.tar.gz
.
File metadata
- Download URL: edwh_uptime_plugin-0.2.3.tar.gz
- Upload date:
- Size: 49.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.26.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b39a80bcc38570566c745abfd7bb60b7b65900457bc198d9adf772f2405e71eb |
|
MD5 | 625f73de6c61bbdb60117689debdb97d |
|
BLAKE2b-256 | e3adbded9a335582a375eec5efa314c602b1c7fbb294ee09560184b6dc2f5bdc |
File details
Details for the file edwh_uptime_plugin-0.2.3-py3-none-any.whl
.
File metadata
- Download URL: edwh_uptime_plugin-0.2.3-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.26.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76036f61294016829771afb78877a442f2bd84cfb2eb5f5c5fc3894e5f31f88e |
|
MD5 | 4fe72991eacc7260b137489724c9a7d7 |
|
BLAKE2b-256 | 26655d32681ce6e1c34dd7cd88e7f24b0728a2bdb999b39bfe12f420a477800d |