Metadata-Version: 2.4
Name: edwh-uptime-plugin
Version: 0.5.4
Summary: UptimeRobot plugin for `edwh`
Project-URL: Documentation, https://github.com/educationwarehouse/edwh-uptime-plugin#readme
Project-URL: Issues, https://github.com/educationwarehouse/edwh-uptime-plugin/issues
Project-URL: Source, https://github.com/educationwarehouse/edwh-uptime-plugin
Author-email: Remco Boerma <remco.b@educationwarehouse.nl>, Robin van der Noord <robin.vdn@educationwarehouse.nl>
Keywords: edwh
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.10
Requires-Dist: edwh>=0.38.0
Requires-Dist: termcolor
Requires-Dist: tomli-w
Requires-Dist: typing-extensions
Requires-Dist: yayarl
Provides-Extra: dev
Requires-Dist: black; extra == 'dev'
Requires-Dist: hatch; extra == 'dev'
Requires-Dist: isort; extra == 'dev'
Requires-Dist: pytest; extra == 'dev'
Requires-Dist: pytest-cov; extra == 'dev'
Description-Content-Type: text/markdown

# edwh-uptime-plugin

[![PyPI - Version](https://img.shields.io/pypi/v/edwh-uptime-plugin.svg)](https://pypi.org/project/edwh-uptime-plugin)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/edwh-uptime-plugin.svg)](https://pypi.org/project/edwh-uptime-plugin)

-----

UptimeRobot API integration for the `edwh` tool.

**Table of Contents**

- [Installation](#installation)
- [License](#license)

## Installation

```console
pip install edwh-uptime-plugin
```

But probably you want to install the whole edwh package:

```console
pipx install edwh[uptime]
# or
pipx install edwh[plugins,omgeving]
```

## Usage

```bash
# 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

```python
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](https://spdx.org/licenses/MIT.html) license.
