Interact with UptimeRobot API
Project description
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
>>> from uptimerobotpy import UptimeRobot
>>> up_robot = UptimeRobot(api_key=UPTIMEROBOT_API_KEY)
>>> up_robot.get_monitors()
If no api_key is passed during instantiation, we try to handle this by creating a config file (~/.uptimerobot.ini) to read from:
>>> from uptimerobotpy import UptimeRobot
>>> up_robot = UptimeRobot()
Enter UptimeRobot API key: XXXXXXXXXXXXXXXX
>>> up_robot.get_monitors()
The above config file is formatted as follows and can be created preemptively if you wish:
[UPTIMEROBOT]
api_key = XXXXXXXXXXXXXXXX
Prerequisites
Python3
Built With
- Python3 - Beautiful language.
Authors
- Justin Palmer - Urrverything - Me
Acknowledgments
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
uptimerobotpy-0.1.4.tar.gz
(7.4 kB
view hashes)
Built Distribution
Close
Hashes for uptimerobotpy-0.1.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 438947aff07a65bf6df134529a8d557686c2c9f6dc0674192541786079fdcb04 |
|
MD5 | 159cd6174bc4607ea095127105545e83 |
|
BLAKE2b-256 | 7b3f6ac3a50f59aa4c8ecc9957a40d0ad6fef48e6f2b515789353ec83da0023d |