Skip to content

innoxchain/UptimeRobotPy

 
 

Repository files navigation

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

Authors

  • Justin Palmer - Urrverything - Me

Acknowledgments

  • Kenneth Reitz -> setup - Thanks!
  • Kamori -> Cool Guy - Thanks to you as well!

About

A simple python library to ease interacting with the UptimeRobot API.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%