Skip to main content

uk-send


Send a heartbeat to uptime kuma in a separate thread without blocking the main program.

Examples:

Base usage

import uk_send as uk

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

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

Env usage

UK_URL="https://uk.example.com/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)

Metadata

Release files for uk-send 0.1.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for uk-send 0.1.12
File Size Uploaded
uk_send-0.1.12.tar.gz 8.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for uk-send 0.1.12
File Interpreter ABI Platform
uk_send-0.1.12-py3-none-any.whl Python 3 none any Details

Total release size: 17.7 kB

Release files / uk_send-0.1.12.tar.gz

Download URL uk_send-0.1.12.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c4beceb6d4e9b41b44f345114880fc89e3552aff4717988620f3d6a964622c38
BLAKE2b-256 checksum
How to use checksums
10c66d109d004772552f3e76e96cec00ef0fa832e51054e947bd7a438f2b5316
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / uk_send-0.1.12-py3-none-any.whl

Download URL uk_send-0.1.12-py3-none-any.whl
Size 9.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
06912eaad1d776dd7d205fb2ebbe44e55d7c55ce2bed29f42eabcea7150ca483
BLAKE2b-256 checksum
How to use checksums
3f54af7a8819c617754d9da7688d5fd77eab4b179db233940c482b8ee7770ac0
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release history Release notifications | RSS feed

This release

0.1.12 This release

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.7

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page