Serverjiang for Python
Project description
sendu
Serverjiang for python.
Install
pip install sendu
Getting started
You should go to Server-Chan get a SCKEY and bind WeChat. Your URL will be like 'https://sc.ftqq.com/[SCKEY].send '. You can use following functions to send text, picture, markdown files.
from sendu import sendu
svc = sendu.sendu(user_URL) # If you're the first time using sendu on this computer
svc = sendu.sendu() # If you're not the first time on this computer
svc.output_to_weixin("ATestMessage.")
svc.output_to_weixin_picture("http://sc.ftqq.com/static/image/bottom_logo.png")
svc.output_to_weixin_markdown("README.md")
Demo
I'm the first time on this computer:
from sendu import sendu
svc = sendu.sendu('https://sc.ftqq.com/{your-key}.send')
svc.output_to_weixin("ATestMessage.")
svc.output_to_weixin_picture("http://sc.ftqq.com/static/image/bottom_logo.png")
svc.output_to_weixin_markdown("README.md")
I'm not the first time on this computer:
from sendu import sendu
svc = sendu.sendu()
svc.output_to_weixin("ATestMessage.")
svc.output_to_weixin_picture("http://sc.ftqq.com/static/image/bottom_logo.png")
svc.output_to_weixin_markdown("README.md")
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
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 sendu-0.0.3.linux-x86_64.tar.gz.
File metadata
- Download URL: sendu-0.0.3.linux-x86_64.tar.gz
- Upload date:
- Size: 1.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.20.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b24b191044eb056e6b3097e0838f9101661c673efe0f013a6c1961929abc5ca
|
|
| MD5 |
60ec5156d0e7c6df2383818504ba8aa7
|
|
| BLAKE2b-256 |
99977b3197960849c15cdba96a5e09ec7cc50a5bec47dcab87384525b1e0ca9a
|
File details
Details for the file sendu-0.0.3-py3-none-any.whl.
File metadata
- Download URL: sendu-0.0.3-py3-none-any.whl
- Upload date:
- Size: 1.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.20.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd5ac58c700a0d0893058abba733d0b99898599a0a826549924ebba1931e13a6
|
|
| MD5 |
77c9e04256304202f79db367500746ba
|
|
| BLAKE2b-256 |
0f76d1c2e8262ac8204da87b294e6e6c03c7bfbc79783ae36fcc9254c4a7b1f5
|