Small library to notify Uptime Kuma that the service is up
Project description
apykuma
Small library to notify Uptime Kuma that the service is up. Only async applications are supported.
Usage
Firstly, install the library:
pip install apykuma
Then include it in your code:
import apykuma
await apykuma.start(
url="https://my-service.com",
interval=60, # Optional; default is 60 seconds
)
It is important to start apykuma
after your service starts.
Differences from pykuma
https://github.com/oliverstech/pykuma
That library is great, but it has some problems:
- It uses globals, which I personally don't like
- It blocks the loop every time it sends a request, because it uses
requests
library instead ofaiohttp
. See also https://github.com/oliverstech/pykuma/issues/2.
Installing for local developing
git clone https://github.com/PerchunPak/apykuma.git
cd apykuma
Installing poetry
Next we need install poetry
with recommended way.
If you use Linux, use command:
curl -sSL https://install.python-poetry.org | python -
If you use Windows, open PowerShell with admin privileges and use:
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | python -
Installing dependencies
poetry install --no-dev
Configuration
All configuration happens in config.yml
, or with enviroment variables.
If something is not clear
You can always write me!
Thanks
This project was generated with python-template.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file apykuma-1.0.0.post1.tar.gz
.
File metadata
- Download URL: apykuma-1.0.0.post1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.1 Linux/6.2.0-1018-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31f913a6d59c1f604c375379e5c3411e27e7e4bb782d4eec96765e5eb7f746e7 |
|
MD5 | 187dfbf33a65b8a553205a1857a95449 |
|
BLAKE2b-256 | 1a472451ee3451bf7d5328c33c109300a4fd4e74619932fa16d9ba964ec24f11 |
File details
Details for the file apykuma-1.0.0.post1-py3-none-any.whl
.
File metadata
- Download URL: apykuma-1.0.0.post1-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.1 Linux/6.2.0-1018-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f43e31cc0b56f16d95b4c49b67ffbb513b3230d0e3a02f071d9b2278b300481d |
|
MD5 | d26f1adc497d92b3d86e6734b4e0354b |
|
BLAKE2b-256 | 67107ed653b13690b206a4aae671cf19cd6b11c50f463dacec211b2f9cf59b46 |