Skip to main content

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

Project description

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

Package version Supported Python versions

安装

pip install ml-simple-notify

使用

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

自己开发消息通知

from src.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

ml_simple_notify-0.2.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

ml_simple_notify-0.2.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file ml_simple_notify-0.2.1.tar.gz.

File metadata

  • Download URL: ml_simple_notify-0.2.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.10.10 Linux/5.15.0-1033-azure

File hashes

Hashes for ml_simple_notify-0.2.1.tar.gz
Algorithm Hash digest
SHA256 d6eb4c392f737071bf899b7c3f326fd2fe8698a8837528cb5783b04c0c85159e
MD5 1b9a3ac83b7f6c765e5cfe685e208c0f
BLAKE2b-256 665434b1168f0678806acbd36136237021d525517bfd9092cc5773f89b3ab504

See more details on using hashes here.

File details

Details for the file ml_simple_notify-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: ml_simple_notify-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.10.10 Linux/5.15.0-1033-azure

File hashes

Hashes for ml_simple_notify-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9120d94aafb67c7856bf215f165b2c7ae5e42ffdccad670259732df74587d2bf
MD5 f94e5cd456dc2d21b63be6c547504582
BLAKE2b-256 832c7765b68312c581e87db09a6b84d737c6aa7002aedcd4c8c230bc46ab425c

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