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

Uploaded Source

Built Distribution

edwh_uptime_plugin-0.2.1-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for edwh_uptime_plugin-0.2.1.tar.gz
Algorithm Hash digest
SHA256 c2ad5f0049b78bcd45f5a5370ca185a8dd95787a60cca0ff2fe96d56a8bb07f6
MD5 aff4f6b34d32dfc119dd63a4a1935614
BLAKE2b-256 f1389d2cf4234c94c92f2d8f351c4fd5d453f4aa27fb6c203a421cfcbf9d73f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edwh_uptime_plugin-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f2d0f0fa15d8fbe473da2a6e67a4aab2732c07075350e8f6c15612ecbcde212c
MD5 6058106f6da710e4a5dc6f85269ab173
BLAKE2b-256 347a6a77af030acee10fa213eeab3698bc5972a6e3747aec95b57b89fcb8befe

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