一个简单可扩展的异步消息通知库
安装
pip install usepy-plugin-notify
使用
from usepy.plugin import useNotify, useNotifyChannel
notify = useNotify()
notify.add(
# 添加多个通知渠道
useNotifyChannel.Bark({"token": "xxxxxx"}),
useNotifyChannel.Ding({
"token": "xxxxx",
"at_all": True
})
)
notify.publish(title="消息标题", content="消息正文")
支持的消息通知渠道列表
- Ding
- Bark
- Chanify
- Pushdeer
- Pushover
自己开发消息通知
from usepy.plugin import useNotifyChannel
class Custom(useNotifyChannel.BaseChannel):
"""自定义消息通知"""
def send(self, *args, **kwargs):
...
async def send_async(self, *args, **kwargs):
...
Metadata
Release files for usepy-plugin-notify 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| usepy_plugin_notify-0.3.0.tar.gz | 4.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| usepy_plugin_notify-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.2 kB
Release files / usepy_plugin_notify-0.3.0.tar.gz
| Download URL | usepy_plugin_notify-0.3.0.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b9bb0331ef96ef193daaef64b303a61b8abd1b2592f4cdd583c0ddbb9dd2dabf
|
|
BLAKE2b-256 checksum How to use checksums |
df4ca2e7a2d1ce7210a267972c03cc9e84cbf83e27fa75a848e9d1711dfbf936
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.4 Darwin/21.4.0
|
Release files / usepy_plugin_notify-0.3.0-py3-none-any.whl
| Download URL | usepy_plugin_notify-0.3.0-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3e7c5dadf3d5858e7e1082c3290f7cead4337ab4616b63b961c0b586a6977381
|
|
BLAKE2b-256 checksum How to use checksums |
a621ab1e80bb9f19330cfc2a7d99743cf34486401352f54039ba997ae7b7d066
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.4 Darwin/21.4.0
|
Security for usepy-plugin-notify 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.