Skip to main content

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)
    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:

    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:

[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!

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

Uploaded Source

Built Distribution

uptimerobotpy-0.1.5-py2.py3-none-any.whl (7.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file uptimerobotpy-0.1.5.tar.gz.

File metadata

  • Download URL: uptimerobotpy-0.1.5.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

File hashes

Hashes for uptimerobotpy-0.1.5.tar.gz
Algorithm Hash digest
SHA256 59e648baca3862a45047cf0a16c714aaf1fbfc7fbc7fc27d36fb66d7e30e7ab8
MD5 3c945ad6d752dac8e09e043c9f9c95f4
BLAKE2b-256 8de7629a68feeca099ed3d6d76697a6d28ec96126698597398fe7b791d2820d6

See more details on using hashes here.

File details

Details for the file uptimerobotpy-0.1.5-py2.py3-none-any.whl.

File metadata

  • Download URL: uptimerobotpy-0.1.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

File hashes

Hashes for uptimerobotpy-0.1.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 251e1918498b1eb33f16af213ca4bc6fdd63b3925973cd056197f2333eddb603
MD5 b3cea267d5681a57f19ad597fbe92c26
BLAKE2b-256 a0ad59d4cf3890b9a83f0a950c30d6b1a4af6b8e6512e5b2876bd9ac77e3b1ce

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