Skip to main content

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

Project description

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.

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

wechat_notice-0.0.4.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

wechat_notice-0.0.4-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file wechat_notice-0.0.4.tar.gz.

File metadata

  • Download URL: wechat_notice-0.0.4.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for wechat_notice-0.0.4.tar.gz
Algorithm Hash digest
SHA256 3a552f04101299bd506165f5d8fe709bc5cf6d68e5d2e1290a85334c2580e441
MD5 62fe17b0625b0e37f3f1064597b34689
BLAKE2b-256 74add74fb148624e3e68fb00a6f749af42ac33d13ad821c5709fc15c69f88b56

See more details on using hashes here.

File details

Details for the file wechat_notice-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: wechat_notice-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for wechat_notice-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 cfc459fb8d4a4a2351a15326e459c4e92305369f81edc0cf69dc973f07de3462
MD5 11e604a50f3f1b56dbd7b8a25583d69d
BLAKE2b-256 57e7386be909677f309c313f42e4c0fe3cce81217eb87f4fab8a196c14d460e2

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