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.1.0.tar.gz (4.7 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.1.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file pythonkuma-0.1.0.tar.gz.

File metadata

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

File hashes

Hashes for pythonkuma-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9143f049664106cfd2457115ee0d27cc012d1f0a62e71a7df466db6ee38e505c
MD5 573497230e269a8b942b1d815abfac54
BLAKE2b-256 5aa6b35a91b21105c2c3635d6ff7ab2288420a6e567e8454ef5b9ca3e0087856

See more details on using hashes here.

File details

Details for the file pythonkuma-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pythonkuma-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for pythonkuma-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 774dc7d197d5dd105cdd479e79b1587aef37454a4662a8b0233280f71b80d953
MD5 f1b41cbbb890dc9faea826c85319bee5
BLAKE2b-256 95f1619a91bd264d41a374025afb48e263d169c92413af8cc73e591889493fd0

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