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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for edwh_uptime_plugin-0.3.7.tar.gz
Algorithm Hash digest
SHA256 c990762cd65e33935d40fde2856460491c61dce2d39afe4474044b1ae854535b
MD5 08a79f510a38a45b5345d748f6c7633a
BLAKE2b-256 7c068c5b12fb158ccc9ce6ad3d559ae220c0874e41103e31b9a2bacf7a379577

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edwh_uptime_plugin-0.3.7-py3-none-any.whl
Algorithm Hash digest
SHA256 1ea026f3dc3ff51f971e53804dbc79dddefd0c3c70c29568cf3d72c23b54a4fc
MD5 b3ce20dcd8a58d3dad786e2e2b8782f5
BLAKE2b-256 434970d798d66050b468572644e4456d42a77102c54aa2963d928ef151fab46d

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