Skip to main content

Send heartbeat to uptime kuma.

Project description

uptime-kuma-send


Send heartbeat to uptime kuma.

Examples:

Base usage

import uk_send as uk

url = "https://uk.example.xom/api/push/YhYAt5t6qiRJ60b16g8326vAGYQw7Ty0"

uk.send("test message", url=url)

Env usage

UK_URL="https://uk.example.xom/api/push/YhYAt5t6qiRJ60b16g8326vAGYQw7Ty0"
UK_PROXY="http://127.0.0.1:1080"
import uk_send as uk

uk.send("test message")

Defaults:

import uk_send as uk

url = "https://uk.example.xom/api/push/YhYAt5t6qiRJ60b16g8326vAGYQw7Ty0"

uk.send(
    msg="test message",              # default ""
    url=url,                         # required
    ping=1,                          # default 1
    status="up",                     # default "up"
    proxy="http://127.0.0.1:1080",   # default None
)

Options:

  • uk-send - Base module, uses standart urllib module. No additional dependences.
  • uk-send[requests] - Uses requests module.
  • uk-send[httpx] - Uses httpx module.
  • uk-send[requests-socks] - Uses request module. Supports socks5 proxy.
  • uk-send[httpx-socks] - Uses httpx module. Supports sosks5 proxy.

Priority

Send modules:

The uk-send module uses modules in the next priority if they are available:

No-proxy or http-proxy:

  1. httpx
  2. requests
  3. urllib

Socks-proxy:

  1. httpx[socks]
  2. requests[socks]
  3. ERROR

Parameters

URL:

  1. function argument
  2. env

Proxy:

  1. function argument
  2. env

Message:

  1. function argument
  2. url parameter
  3. default ("")

Status:

  1. function argument
  2. url parameter
  3. default ("up")

Ping:

  1. function argument
  2. url parameter
  3. default (1)

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

uk_send-0.1.7.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

uk_send-0.1.7-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file uk_send-0.1.7.tar.gz.

File metadata

  • Download URL: uk_send-0.1.7.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for uk_send-0.1.7.tar.gz
Algorithm Hash digest
SHA256 bef4af3caf08cdf1daa3aed906c417249c4b561ab00442a0c16a0be6c6d1a9f5
MD5 280b7d2e20abb3e0161fa4907d8f8128
BLAKE2b-256 a6f9bbbfaf2d723873a254cab41b140b871a60cbd041fc4e23e8abd464daec7d

See more details on using hashes here.

File details

Details for the file uk_send-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: uk_send-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for uk_send-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 f017e47dec9175892ee38f7cd511a8dd4b180b4da5f9fb110887a7f2341d5cfd
MD5 40e3f8c089ed1f9d0a3ef0a3741fa409
BLAKE2b-256 b6c1472ba19cc29a7840d0af8ff4df1327288b81accb06000affde6e7033717b

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