Skip to main content

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

Project description

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

Package version Supported Python versions

安装

pip install usepy-plugin-notify

使用

from 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

自己开发消息通知

from notify.channels import BaseChannel


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

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

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

usepy_plugin_notify-0.2.3.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

usepy_plugin_notify-0.2.3-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file usepy_plugin_notify-0.2.3.tar.gz.

File metadata

  • Download URL: usepy_plugin_notify-0.2.3.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.10.10 Darwin/22.2.0

File hashes

Hashes for usepy_plugin_notify-0.2.3.tar.gz
Algorithm Hash digest
SHA256 e8d555cb0292fca5a6e6cf557f1e78c834b691976356b10de740bfede4d39774
MD5 24012418183ebcf9ff1be753d78d7762
BLAKE2b-256 b0861218be31d7286952abf21ac1e957c225edbd03316e62ec40c98a61a9b7ea

See more details on using hashes here.

File details

Details for the file usepy_plugin_notify-0.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for usepy_plugin_notify-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6a56b1cb2d2cad9e0680b8bb72df0de050eb3bf7d9c842b40ef7971131c97a0b
MD5 5414b30a7656615427f0107f1debb9bf
BLAKE2b-256 fad71b4fcbe2ae5450cce3f87902f1de8f508861c3f8fcc9e053bbaed2e552b3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page