Skip to content

About

A Python wrapper for the updown.io API

Resources

Stars

13 stars

Watchers

3 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Updown

A Python wrapper for the updown.io API

Installation

Install from PyPI:

pip install updown

Or install using the provided setup.py:

python setup.py install

Usage

Import library

import updown
updown.API_KEY = 'YOUR API KEY'

Or set the UPDOWN_API_KEY environment variable

Find your API key in your settings page.

List all your checks

checks = updown.checks()

List downtimes for a specific check (paginated, 100 per call)

updown.checks()['http://myurl'].downtimes()
updown.checks()['http://myurl'].downtimes(page=2)

Update a check

c = updown.checks()['http://myurl']
c.enabled = False
c.period = 120
c.sync()

Create a new check

c = updown.add('http://myurl')
  • The following parameters are accepted:

    updown.add(url, period=60, apdex_t=0.25, enabled=True, published=False)

Delete a check

c = updown.checks()['http://myurl'].delete()

About

A Python wrapper for the updown.io API

Resources

Stars

13 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages