# PlanetLink
A pypi package to send message in different mediums.
## Usage
1. **import**
```python
from PlanetLink.wxBot import wxBot
```
2. **define veriables**
```python
corpid = 'xxxxxxxxxx'
corpsecret = 'xxxxxxxxxxxxxxxxxxxxxx'
agentid = 'xxxxxx'
title = 'title'
sign = 'sign'
```
3. **initial**
```python
bot = wxBot()
bot.initBot(corpid,corpsecret,agentid,title,sign)
```
4. **add content to wxMessageDemo**
```python
bot.addContent("title: 'test1'\nvalue: 'val1'")
bot.addContent("title: 'test2'\nvalue: 'val2'")
```
5. **send**
```python
bot.send()
```
6. **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
* [x] ~~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
- `0.0.2` : add clearContent and getSendContent function
Raw data
{
"_id": null,
"home_page": "https://github.com/vu1nex/PlanetLink",
"name": "PlanetLink",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "wx,wechat,bot,message,reminder",
"author": "vu1nex",
"author_email": "me@vu1nex.com",
"download_url": "https://files.pythonhosted.org/packages/2f/f4/2df8047632494f446f4b5d920d3307f671672382b2e0f0da311ea79a23ea/PlanetLink-0.0.2.tar.gz",
"platform": null,
"description": "# PlanetLink\n\nA pypi package to send message in different mediums.\n\n## Usage\n\n1. **import**\n\n ```python\n from PlanetLink.wxBot import wxBot\n ```\n\n2. **define veriables**\n\n ```python\n corpid = 'xxxxxxxxxx'\n corpsecret = 'xxxxxxxxxxxxxxxxxxxxxx'\n agentid = 'xxxxxx'\n title = 'title'\n sign = 'sign'\n ```\n\n3. **initial**\n\n ```python\n bot = wxBot()\n bot.initBot(corpid,corpsecret,agentid,title,sign)\n ```\n\n4. **add content to wxMessageDemo**\n ```python\n bot.addContent(\"title: 'test1'\\nvalue: 'val1'\")\n bot.addContent(\"title: 'test2'\\nvalue: 'val2'\")\n ```\n\n5. **send**\n ```python\n bot.send()\n ```\n \n6. **get message**\n\n ```\n Message: \u26d4 title\n [2023-11-16 16:59:17]\n ========================\n title: 'test1'\n value: 'val1'\n -------------------------------------\n title: 'test2'\n value: 'val2'\n -------------------------------------\n ```\n\n## Message Configs\n\n### **Sign and symbol**\n\n| **sign** | **symbol** |\n| ------------------ | ---------------- |\n| WARNING | \u26a0\ufe0f |\n| ERROR | \u274c |\n| COMPLETE | \u2705 |\n| INFO | \ud83d\udd35 |\n| ELSE | \u26d4 |\n\n\n## TODO List\n\n* [x] ~~release pypi package~~\n* [ ] add return value and error log\n* [ ] add list form of message\n\n## Update History\n\n* [20220924] first version of weChat message send API\n* [20231116] rebuild code and release the first pypi package\n\n## Pypi release version log\n\n- `0.0.1` : first version of PlanetLink\n- `0.0.2` : add clearContent and getSendContent function\n",
"bugtrack_url": null,
"license": "",
"summary": "A pypi package to send message in different mediums.",
"version": "0.0.2",
"project_urls": {
"Homepage": "https://github.com/vu1nex/PlanetLink"
},
"split_keywords": [
"wx",
"wechat",
"bot",
"message",
"reminder"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "32358f0e1eb79be00ce945f0628ebfdb3f648530caaaa2ed5fd38c73c664452f",
"md5": "fd16929e524a2debde10bd0946398749",
"sha256": "d2b1cced0355d3efd7dc6c17a400c078ebe7764d54d5e6457f7135bf3136f426"
},
"downloads": -1,
"filename": "PlanetLink-0.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "fd16929e524a2debde10bd0946398749",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 4843,
"upload_time": "2023-11-19T15:08:04",
"upload_time_iso_8601": "2023-11-19T15:08:04.888536Z",
"url": "https://files.pythonhosted.org/packages/32/35/8f0e1eb79be00ce945f0628ebfdb3f648530caaaa2ed5fd38c73c664452f/PlanetLink-0.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "2ff42df8047632494f446f4b5d920d3307f671672382b2e0f0da311ea79a23ea",
"md5": "74b552105b1f9362364ccb4e09532709",
"sha256": "ae6140f6893288f16e3dbd895a6ed6c203d5536011df9be64838a0d31b658fb9"
},
"downloads": -1,
"filename": "PlanetLink-0.0.2.tar.gz",
"has_sig": false,
"md5_digest": "74b552105b1f9362364ccb4e09532709",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4083,
"upload_time": "2023-11-19T15:08:06",
"upload_time_iso_8601": "2023-11-19T15:08:06.407112Z",
"url": "https://files.pythonhosted.org/packages/2f/f4/2df8047632494f446f4b5d920d3307f671672382b2e0f0da311ea79a23ea/PlanetLink-0.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-11-19 15:08:06",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "vu1nex",
"github_project": "PlanetLink",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "planetlink"
}