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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pywework-1.1.5-py2.py3-none-any.whl
(135.4 kB
view details)
File details
Details for the file pywework-1.1.5-py2.py3-none-any.whl.
File metadata
- Download URL: pywework-1.1.5-py2.py3-none-any.whl
- Upload date:
- Size: 135.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e544036406569b6c9e4294cbd7ad8b4d256b8c3072812310ebd2ced03b479727
|
|
| MD5 |
6b5f643a2648c30e9b6e7a5ea7d76661
|
|
| BLAKE2b-256 |
e64fea6923f8cfe04f1568716768b44a6fa544524edbcc44d721a8ab18e93090
|