Skip to main content

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

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):
        ...

Metadata

Release files for ml-simple-notify 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ml-simple-notify 0.2.1
File Size Uploaded Provenance
ml_simple_notify-0.2.1.tar.gz 3.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ml-simple-notify 0.2.1
File Interpreter ABI Platform
ml_simple_notify-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 10.0 kB

Release files / ml_simple_notify-0.2.1.tar.gz

Download URL ml_simple_notify-0.2.1.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d6eb4c392f737071bf899b7c3f326fd2fe8698a8837528cb5783b04c0c85159e
BLAKE2b-256 checksum
How to use checksums
665434b1168f0678806acbd36136237021d525517bfd9092cc5773f89b3ab504
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.0 CPython/3.10.10 Linux/5.15.0-1033-azure

Release files / ml_simple_notify-0.2.1-py3-none-any.whl

Download URL ml_simple_notify-0.2.1-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9120d94aafb67c7856bf215f165b2c7ae5e42ffdccad670259732df74587d2bf
BLAKE2b-256 checksum
How to use checksums
832c7765b68312c581e87db09a6b84d737c6aa7002aedcd4c8c230bc46ab425c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.0 CPython/3.10.10 Linux/5.15.0-1033-azure

Security for ml-simple-notify 0.2.1

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page