Skip to main content

tmtool

Project description

tm-pip-tools

工具集合

安装(Python 版本>=3.8.0)

pip install --upgrade tmtoolP

使用

发送邮件

from tmtool.tools import Tool
tool = Tool()

tool.mail_from_user_host = '发件地址host'
tool.mail_from_user = '发件人邮箱号'
tool.mail_from_user_pwd = '发件人密码'

tool.send_mail_msg(to_user='收件人邮箱地址(这里是列表,可填写多个)', title='邮件标题', content='邮件内容')

企业微信通知

tool.qy_wechat_token = '企业微信机器人token'
tool.send_qy_wechat_msg('消息内容')

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

tmtoolP-0.0.4.tar.gz (5.1 kB view hashes)

Uploaded Source

Built Distribution

tmtoolP-0.0.4-py3-none-any.whl (5.4 kB view hashes)

Uploaded Python 3

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