A pypi package to send message in different mediums.
Project description
PlanetLink
A pypi package to send message in different mediums.
Usage
-
import
from PlanetLink.wxBot import wxBot
-
define veriables
corpid = 'xxxxxxxxxx' corpsecret = 'xxxxxxxxxxxxxxxxxxxxxx' agentid = 'xxxxxx' title = 'title' sign = 'sign'
-
initial
bot = wxBot() bot.initBot(corpid,corpsecret,agentid,title,sign)
-
add content to wxMessageDemo
bot.addContent("title: 'test1'\nvalue: 'val1'") bot.addContent("title: 'test2'\nvalue: 'val2'")
-
**send **
bot.send()
-
get message
Message: ⛔ title [2023-11-16 16:59:17] ======================== title: 'test1' value: 'val1' ------------------------------------- title: 'test2' value: 'val2' -------------------------------------
Message Configs
Sign and symbol
sign | symbol |
---|---|
WARNING | ⚠️ |
ERROR | ❌ |
COMPLETE | ✅ |
INFO | 🔵 |
ELSE | ⛔ |
TODO List
-
release pypi package - add return value and error log
- add list form of message
Update History
- [20220924] first version of weChat message send API
- [20231116] rebuild code and release the first pypi package
Pypi release version log
0.0.1
: first version of PlanetLink
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
PlanetLink-0.0.1.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for PlanetLink-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29ef5e07d995b4a6a5ce32c96d1e9f82831b8c98f6ead6e46f080b5f5e7ff542 |
|
MD5 | 4885372409db70eb510a2d9185746313 |
|
BLAKE2b-256 | 8f7f0db0090fe2feb7240bdafcd8febc12feff0d8cafecf731cce337887fa182 |