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 PlanetLink0.0.2: add clearContent and getSendContent function
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.2.tar.gz
(4.1 kB
view details)
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
File details
Details for the file PlanetLink-0.0.2.tar.gz.
File metadata
- Download URL: PlanetLink-0.0.2.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae6140f6893288f16e3dbd895a6ed6c203d5536011df9be64838a0d31b658fb9
|
|
| MD5 |
74b552105b1f9362364ccb4e09532709
|
|
| BLAKE2b-256 |
2ff42df8047632494f446f4b5d920d3307f671672382b2e0f0da311ea79a23ea
|
File details
Details for the file PlanetLink-0.0.2-py3-none-any.whl.
File metadata
- Download URL: PlanetLink-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2b1cced0355d3efd7dc6c17a400c078ebe7764d54d5e6457f7135bf3136f426
|
|
| MD5 |
fd16929e524a2debde10bd0946398749
|
|
| BLAKE2b-256 |
32358f0e1eb79be00ce945f0628ebfdb3f648530caaaa2ed5fd38c73c664452f
|