Skip to main content

UptimeRobot plugin for `edwh`

Project description

edwh-uptime-plugin

PyPI - Version PyPI - Python Version


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


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.5.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

edwh_uptime_plugin-0.3.5-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file edwh_uptime_plugin-0.3.5.tar.gz.

File metadata

  • Download URL: edwh_uptime_plugin-0.3.5.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.0

File hashes

Hashes for edwh_uptime_plugin-0.3.5.tar.gz
Algorithm Hash digest
SHA256 5c89c0d9c39710ea2a19c8867a45c5f89fc6ee529277085a5face9594615dcd1
MD5 2b2ba22243be2713d425f507d166b9e6
BLAKE2b-256 300a311a03ef823b821ba2ab8be1fe7b9082ef349d3332208b243d02b5828ac3

See more details on using hashes here.

File details

Details for the file edwh_uptime_plugin-0.3.5-py3-none-any.whl.

File metadata

File hashes

Hashes for edwh_uptime_plugin-0.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 8d02f5614cba77e3ca9b6a8b7dd9abfdc45af44320e826d09d83743b9d496883
MD5 cfb0e3092613991bfa98b43417af8350
BLAKE2b-256 ae435ce31f34cbaadf282f5d6f62b05baa5ce6ee4313191e8c31af6db44e3e2c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page