Skip to main content

Simple Python wrapper for Uptime Kuma

Project description

pythonkuma

Simple Python wrapper for Uptime Kuma

Installation

pip install pythonkuma

Example

import asyncio

import aiohttp

from pythonkuma import UptimeKuma

URL = "https://uptime.exampe.com"
API_KEY = "api_key"


async def main():

    async with aiohttp.ClientSession() as session:
        uptime_kuma = UptimeKuma(session, URL, API_KEY)
        response = await uptime_kuma.metrics()
        print(response)


asyncio.run(main())

Credit

This library is a fork of pyuptimekuma by @jayakornk

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

pythonkuma-0.2.0rc1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pythonkuma-0.2.0rc1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file pythonkuma-0.2.0rc1.tar.gz.

File metadata

  • Download URL: pythonkuma-0.2.0rc1.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for pythonkuma-0.2.0rc1.tar.gz
Algorithm Hash digest
SHA256 26858b2f2f4bf8247b5b8c33b870601781c6c00bda2ebc3d95c91be0e2a72988
MD5 4ae85b0c1014176a962e20e87da0910f
BLAKE2b-256 f28675945820710e4f040a69988f7e97b5dfeb23d98346efa784f271fdc11fbe

See more details on using hashes here.

File details

Details for the file pythonkuma-0.2.0rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for pythonkuma-0.2.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 9bc2427bd9df3fdd3cb03a1db9277eb8d2897de2e6351700639e51ddf9e98557
MD5 bfc8e444d3a58eb8c27b51a5ec3906c2
BLAKE2b-256 75aff418e3087c29e3de3e33137cd6515f91c38750bdb895cde2a1c62ccbccfd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page