Metadata-Version: 2.1
Name: ml-simple-notify
Version: 0.2.1
Summary: 一个简单可扩展的消息通知库
Author: miclon
Author-email: jcnd@163.com
Requires-Python: >=3.8,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: httpx (>=0.23.3,<0.24.0)
Requires-Dist: usepy (>=0.1.34,<0.2.0)
Description-Content-Type: text/markdown

### 一个简单可扩展的消息通知库

<a href="https://pypi.org/project/ml-simple-notify" target="_blank">
    <img src="https://img.shields.io/pypi/v/ml-simple-notify.svg" alt="Package version">
</a>

<a href="https://pypi.org/project/ml-simple-notify" target="_blank">
    <img src="https://img.shields.io/pypi/pyversions/ml-simple-notify.svg" alt="Supported Python versions">
</a>

#### 安装

> pip install ml-simple-notify

#### 使用

```python
from src.notify import useNotify, channels

notify = useNotify()
notify.add(
    # 添加多个通知渠道
    channels.Bark({"token": "xxxxxx"}),
    channels.Ding({
        "token": "xxxxx",
        "at_all": True
    })
)

notify.publish(title="消息标题", content="消息正文")

```

#### 支持的消息通知渠道列表

- Wechat
- Ding
- Bark
- Email
- Chanify
- Pushdeer
- Pushover

#### 自己开发消息通知

```python
from src.notify.channels import BaseChannel


class Custom(BaseChannel):
    """自定义消息通知"""

    def send(self, *args, **kwargs):
        ...
```

