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://your-worker.workers.dev"
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://your-worker.workers.dev
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://your-worker.workers.dev",
    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.0.0.tar.gz (6.0 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.0.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hx_houtiku-1.0.0.tar.gz
  • Upload date:
  • Size: 6.0 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.0.0.tar.gz
Algorithm Hash digest
SHA256 5b3aa796e165be30e4be878b0db4e2fd17ce04ccecf5a8e0d2b0ad961f17159b
MD5 0947292153dd4d9ff06f752dcf974d23
BLAKE2b-256 c3af86bf4c10e52397a270976eeb3fad9c929635d539c5a9e64ef5425f15af17

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: hx_houtiku-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.2 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.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8778404086a31842f92be55cd9db9b62efb9631a9cffb866cbe03913326fb45d
MD5 f3014c7e94b6e90e15ed528904fb5756
BLAKE2b-256 c00d8c2b765386b9e249993ba0dab1c588ea5711dedfc3cefaf2190273738d4d

See more details on using hashes here.

Provenance

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