Metadata-Version: 2.4
Name: myappnotify
Version: 0.2.3
Summary: DingTalk + Gotify + ntfy markdown notification helpers
License-Expression: MIT
Requires-Python: >=3.10
Description-Content-Type: text/markdown

# myappnotify

DingTalk robot + Gotify + ntfy push helpers (stdlib only).

## Install

```bash
pip install myappnotify
```

## Env

| Variable | Channel |
|----------|---------|
| `DINGDING_WEB_HOOK_TOKEN` / `DINGDING_BOT_SIGN` | DingTalk |
| `GOTIFY_URL` / `GOTIFY_TOKEN` | Gotify |
| `NTFY_URL` / `NTFY_USER` / `NTFY_PASSWORD` | ntfy (HTTP Basic) |
| `NTFY_TOPIC` (optional) | Appended when `NTFY_URL` has no path |

Missing config skips that channel and logs; never raises.

`NTFY_URL` may be the full topic URL (`https://ntfy.sh/mytopic`) or the server root
(`https://ntfy.example.com`) with `NTFY_TOPIC=mytopic`.

## Usage

```python
from myappnotify import send_dingtalk, send_gotify, send_ntfy, notify

send_dingtalk("Title", "## body")
send_dingtalk_action_card("Title", "## body")  # 群机器人 ActionCard
send_ntfy("Title", "## body")  # Markdown: yes + Basic auth

# Default fan-out: dingtalk + ntfy; optional separate body for ntfy
notify("选股结果", dingtalk_md, ntfy_text=list_md)
notify("选股结果", body, ntfy_text=list_md, dingtalk_mode="action_card")
```
