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.2.0.tar.gz (7.1 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.2.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hx_houtiku-1.2.0.tar.gz
  • Upload date:
  • Size: 7.1 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.2.0.tar.gz
Algorithm Hash digest
SHA256 11c7151bda9c09f05d73069ba8253a57aa49672536a1873f33eef65e75655dd1
MD5 d3fe1ed67c8276aabd1203b54f4b6dd9
BLAKE2b-256 bb6194bd00ea9d8d28fbdf953bfacf0b55bef3ed8982b18e46150629e4a41e3f

See more details on using hashes here.

Provenance

The following attestation bundles were made for hx_houtiku-1.2.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.2.0-py3-none-any.whl.

File metadata

  • Download URL: hx_houtiku-1.2.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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 885dc50b03b15dd3972e86ff7e7bd608eb0d6d32f540ad4630fd6f6fc7c5db2a
MD5 a344787766023c2dd317346aaf2f7c8f
BLAKE2b-256 303ebfa56381b2fd5a54729b8c36184ab115a18cd1bb6945f8092c1524696bef

See more details on using hashes here.

Provenance

The following attestation bundles were made for hx_houtiku-1.2.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