Metadata-Version: 2.1
Name: uptimerobotpy
Version: 0.1.5
Summary: Interact with UptimeRobot API
Home-page: https://github.com/jpavlav/UptimeRobotPy
Author: Justin Palmer
Author-email: jpavlav@gmail.com
License: MIT
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: System :: Systems Administration
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.5.0
Description-Content-Type: text/markdown
Requires-Dist: requests (>=2.20.0)


# UptimeRobotPy

This is a simple library to implement easy interaction with the UptimeRobot API.

## Getting Started

The latest stable release is available from Pypi:

```
pip install uptimerobotpy
```

Otherwise you can install from git:
```
pip install git+https://github.com/jpavlav/UptimeRobotPy.git
```

## Usage

```python
    from uptimerobotpy import UptimeRobot
    up_robot = UptimeRobot(api_key=UPTIMEROBOT_API_KEY)
    monitors = up_robot.get_monitors()
    for monitor in monitors['monitors']:
        print(monitor)
```
If no api_key is passed during instantiation, we try to handle this by creating a config file (~/.uptimerobot.ini) to read from:

```python
    from uptimerobotpy import UptimeRobot
    up_robot = UptimeRobot()
```
> Enter UptimeRobot API key: XXXXXXXXXXXXXXXX

The config file `.uptimerobot.ini` (see `example.uptimerobot.ini` above) is formatted as follows and can be created preemptively in your home directory if you wish:

```python
[UPTIMEROBOT]
api_key = XXXXXXXXXXXXXXXX
```
### Prerequisites

```
Python3
```

## Built With

* [Python3](https://www.python.org/downloads/) - Beautiful language.

## Authors

* **Justin Palmer** - *Urrverything* - [Me](https://github.com/jpavlav)

## Acknowledgments

* Kenneth Reitz -> [setup](https://github.com/kennethreitz/setup.py) - Thanks!
* Kamori -> [Cool Guy](https://github.com/Kamori) - Thanks to you as well!


