Skip to main content

Simple Python wrapper for Uptime Kuma

Project description

pyuptimekuma

Simple Python wrapper for Uptime Kuma

Installation

python3 -m pip install pyuptimekuma

Example

import asyncio

import aiohttp

from pyuptimekuma import UptimeKuma

URL = ""
USERNAME = ""
PASSWORD = ""
VERIFY_SSL = True


async def main():

    async with aiohttp.ClientSession() as session:
        uptime_robot_api = UptimeKuma(session, URL, USERNAME, PASSWORD, VERIFY_SSL)
        response = await uptime_robot_api.async_get_monitors()
        print(response.data)


loop = asyncio.get_event_loop()
loop.run_until_complete(main())

Credit

I would like to give a special thanks to these repositories since a lot of code has been inspired by them.

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

pyuptimekuma_hass-0.0.6.tar.gz (4.6 kB view hashes)

Uploaded Source

Built Distribution

pyuptimekuma_hass-0.0.6-py3-none-any.whl (6.1 kB view hashes)

Uploaded Python 3

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