Skip to main content

Send Wechat a message at any time.(任何时刻给微信发送消息)

pypi python_vesion

主要用于服务器与微信之间的通信。 实现方法:通过邮箱、公众号给微信发送消息。

关于

所使用的库

requests
yagmail

安装

$ pip install wechat-notice

使用示例

1、 使用邮箱。

需要微信绑定 『QQ邮箱提醒』。
绑定方法:设置 -> 通用 -> 辅助功能 -> QQ邮箱提醒 。

from wechat_notcie import EmailNotice
notice = EmailNotice(user="token", password='',
                            host='',to_emails=['1@163.com','2@qq.com'])
notice.send('title','content')

2、使用 Server 酱。

Server 酱官网:http://sc.ftqq.com/3.version。需要关注公众号并申请 sckey。

from wechat_notcie import ServerChanNotice
notice = ServerChanNotice(sckey='你申请的sckey')
notice.send('这是一个标题','这是内容')

3、使用推了噜。

面包多官网:https://m.niucodata.com/tui。需要关注公众号并申请 openid。

from wechat_notcie import ServerChanNotice
notice = NiucodataChanNotice(openid='你申请的openid')
notice.send('这是一个标题','这是内容')

Lincese

MIT License

Copyright (c) 2019 Thunder Bouble

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Metadata

Release files for wechat-notice 0.0.4

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

Source distribution (sdist)

Source distribution for wechat-notice 0.0.4
File Size Uploaded Provenance
wechat_notice-0.0.4.tar.gz 5.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for wechat-notice 0.0.4
File Interpreter ABI Platform
wechat_notice-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 10.9 kB

Release files / wechat_notice-0.0.4.tar.gz

Download URL wechat_notice-0.0.4.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
3a552f04101299bd506165f5d8fe709bc5cf6d68e5d2e1290a85334c2580e441
BLAKE2b-256 checksum
How to use checksums
74add74fb148624e3e68fb00a6f749af42ac33d13ad821c5709fc15c69f88b56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

Release files / wechat_notice-0.0.4-py3-none-any.whl

Download URL wechat_notice-0.0.4-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cfc459fb8d4a4a2351a15326e459c4e92305369f81edc0cf69dc973f07de3462
BLAKE2b-256 checksum
How to use checksums
57e7386be909677f309c313f42e4c0fe3cce81217eb87f4fab8a196c14d460e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

Security for wechat-notice 0.0.4

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