Skip to main content

End-to-end encrypted push notification SDK for HX-HouTiKu

Project description

hx-houtiku — Python SDK

End-to-end encrypted push notification SDK for HX-HouTiKu.

Installation

pip install hx-houtiku
# or with uv
uv add hx-houtiku

Quick Start

from hx_houtiku import push

# Only needs ENDPOINT + TOKEN — recipients are auto-fetched from Worker API
push("Task Done", "Crawled 1200 items in 3m22s", priority="low", group="crawler")

CLI Usage

hx-houtiku "Deploy Complete" -b "v2.1.0 deployed" -p high -g ci-cd

# Specify content type (text / markdown / html / json)
hx-houtiku "Log Output" -b "$(cat /tmp/output.log)" -t text -p low

Configuration

Environment Variables (minimal)

export HX_HOUTIKU_ENDPOINT="https://houtiku.api.woa.qzz.io"
export HX_HOUTIKU_TOKEN="your-api-token"
# HX_HOUTIKU_RECIPIENTS is optional — auto-fetched from Worker API if omitted

Config File

# ~/.hx-houtiku.yaml
endpoint: https://houtiku-api.woa.qzz.io
api_token: your-api-token
# recipients: optional, auto-fetched if omitted
defaults:
  priority: default
  group: general
from hx_houtiku import HxHoutikuClient

client = HxHoutikuClient.from_config("~/.hx-houtiku.yaml")
client.send("Hello", "World", priority="high")

Content Type

Specify how the message body should be rendered:

Type Description
text Plain text, no formatting
markdown Markdown (default)
html HTML content
json Raw JSON data
push("Alert", "CPU **95%**", content_type="markdown")
push("Log", raw_output, content_type="text")

Auto-fetch Recipients

The SDK automatically fetches registered recipients from the Worker API. No need to manually maintain public key lists:

client = HxHoutikuClient(
    endpoint="https://houtiku.api.woa.qzz.io",
    api_token="your-token",
    # No recipients needed! Auto-fetched on first send.
)
client.send("Hello", "World")

# Manually refresh after adding new devices:
client.fetch_recipients()

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

hx_houtiku-1.3.0.tar.gz (31.2 kB view details)

Uploaded Source

Built Distribution

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

hx_houtiku-1.3.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file hx_houtiku-1.3.0.tar.gz.

File metadata

  • Download URL: hx_houtiku-1.3.0.tar.gz
  • Upload date:
  • Size: 31.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hx_houtiku-1.3.0.tar.gz
Algorithm Hash digest
SHA256 d7376e136e34942c6909663f77c4a55288a40f1d282be7debcea4da396b43ad0
MD5 3e9bc7addb13d01712682d563f12ac3a
BLAKE2b-256 b5cda4ab593d4dd16ab0f212f6deab088fe04d1227b3f07954c1a8adad94b233

See more details on using hashes here.

Provenance

The following attestation bundles were made for hx_houtiku-1.3.0.tar.gz:

Publisher: publish-sdk.yml on HengXin666/HX-HouTiKu

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hx_houtiku-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: hx_houtiku-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hx_houtiku-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d57179d36865133a5b73d79d9d2ad5f8655d567b78c0b18d030b903b807f6853
MD5 fc8c7cd65ed23c624d63c3cad2b61847
BLAKE2b-256 f818b4bd27adad391db16d1a854d598bbb451e7d12d880709ae8f529bf4349b8

See more details on using hashes here.

Provenance

The following attestation bundles were made for hx_houtiku-1.3.0-py3-none-any.whl:

Publisher: publish-sdk.yml on HengXin666/HX-HouTiKu

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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