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.1.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.1.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hx_houtiku-1.1.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.1.0.tar.gz
Algorithm Hash digest
SHA256 6b6df617074cb1a005d2e0436e8feeb41463a03efcfd627a23ea589810140296
MD5 062b30a2cbf41f3a57f54eeb20b30104
BLAKE2b-256 3b65afa5cef1bda09d32595cbefd09ea79952df15d3c82a5fe7f31c3fc31e836

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: hx_houtiku-1.1.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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a94bb2af84a96306fdb0eb82e07f3592455233abfe88e6f318a64e422efbcbea
MD5 58063a75c285ed10bf044cf15b885f86
BLAKE2b-256 9de98292a1de23be6bf9cc23f5592849abf59d90dc733614a3dd5db6793336c9

See more details on using hashes here.

Provenance

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