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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7376e136e34942c6909663f77c4a55288a40f1d282be7debcea4da396b43ad0
|
|
| MD5 |
3e9bc7addb13d01712682d563f12ac3a
|
|
| BLAKE2b-256 |
b5cda4ab593d4dd16ab0f212f6deab088fe04d1227b3f07954c1a8adad94b233
|
Provenance
The following attestation bundles were made for hx_houtiku-1.3.0.tar.gz:
Publisher:
publish-sdk.yml on HengXin666/HX-HouTiKu
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hx_houtiku-1.3.0.tar.gz -
Subject digest:
d7376e136e34942c6909663f77c4a55288a40f1d282be7debcea4da396b43ad0 - Sigstore transparency entry: 1363579516
- Sigstore integration time:
-
Permalink:
HengXin666/HX-HouTiKu@1e956f76172102d2de4d10e6fc91334b3d9c5d37 -
Branch / Tag:
refs/tags/sdk-v1.3.0 - Owner: https://github.com/HengXin666
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-sdk.yml@1e956f76172102d2de4d10e6fc91334b3d9c5d37 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d57179d36865133a5b73d79d9d2ad5f8655d567b78c0b18d030b903b807f6853
|
|
| MD5 |
fc8c7cd65ed23c624d63c3cad2b61847
|
|
| BLAKE2b-256 |
f818b4bd27adad391db16d1a854d598bbb451e7d12d880709ae8f529bf4349b8
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hx_houtiku-1.3.0-py3-none-any.whl -
Subject digest:
d57179d36865133a5b73d79d9d2ad5f8655d567b78c0b18d030b903b807f6853 - Sigstore transparency entry: 1363579783
- Sigstore integration time:
-
Permalink:
HengXin666/HX-HouTiKu@1e956f76172102d2de4d10e6fc91334b3d9c5d37 -
Branch / Tag:
refs/tags/sdk-v1.3.0 - Owner: https://github.com/HengXin666
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-sdk.yml@1e956f76172102d2de4d10e6fc91334b3d9c5d37 -
Trigger Event:
push
-
Statement type: