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.0.0rc3.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.0.0rc3-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file pythonkuma-0.0.0rc3.tar.gz.

File metadata

  • Download URL: pythonkuma-0.0.0rc3.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.0.0rc3.tar.gz
Algorithm Hash digest
SHA256 16d97c603e9f5983169e0e2246b1c321cc607f072f20aa8af6efec70941304d1
MD5 62c5e5f262d360370b230dbf65348b05
BLAKE2b-256 7866618004598a38f2a2f2bb611d9bad3b3a470cb3c6eacbefea2ed20317a56d

See more details on using hashes here.

File details

Details for the file pythonkuma-0.0.0rc3-py3-none-any.whl.

File metadata

File hashes

Hashes for pythonkuma-0.0.0rc3-py3-none-any.whl
Algorithm Hash digest
SHA256 94473a2a30c9ac3425c6f80f9413b1b780d8fa8165d16e3266dac2d8a052ae85
MD5 7006d67fe8461e24cd11beee8312438f
BLAKE2b-256 dd85ff6360ea9ec28ff9570448fac2c37948ea9fff56ddbbe09fcb4241345496

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