Skip to main content

A simple handy tool for wework text msg sending

Project description

pywework

Handy tool for text message sending in Wechat Work

Package pywework is a handy tool for text message in Wechat Work which is compatible with python2.7+ and python3.6+.

User Guild

Configuration file: /etc/wework/wework.cfg

{
    "corpid": "",
    "app":
    {
        "appname":{
            "agentid": "",
            "secret": "",
            "chatid": "",
            "robot": "robotname"
        }
    },
    "party":
    {
        "default": "2"
    },
    "robot": {
        "robotname": "robot hook key"
    },
    "user":
    [
        "dev"
    ]
}

Code talks

from pywework import WeApp


with WeApp("appname") as app:
    app.send_app_msg("Hello world")
    app.send_app_msg("Hello world", touser="username")
    app.send_app_msg("Hello world", touser=["username"])
    app.send_roon_msg("Helo world")
    app.send_room_msg("Hello world", touser="username")
    app.send_room_msg("Hello world", touser=["username", "userphone"])

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pywework-1.1.5-py2.py3-none-any.whl (135.4 kB view hashes)

Uploaded Python 2 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