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
sendu-0.0.1.tar.gz
(3.0 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
sendu-0.0.1-py3-none-any.whl
(1.5 kB
view details)
File details
Details for the file sendu-0.0.1.tar.gz.
File metadata
- Download URL: sendu-0.0.1.tar.gz
- Upload date:
- Size: 3.0 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 |
9777ecd9e1ab50f263b6286674e76a61f912d52e7cc303e427c52ca252e2eb70
|
|
| MD5 |
293ce36d7dc342db820245591136f0cf
|
|
| BLAKE2b-256 |
a6c40a97784fa09c07c6720c9334cbd3b2f2b46abc605676c9d3a8cea94109c8
|
File details
Details for the file sendu-0.0.1-py3-none-any.whl.
File metadata
- Download URL: sendu-0.0.1-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 |
0c5c0148a0b85d96c70e6fc291f92bce69cc20ff9580fff10554cf7c21f578f3
|
|
| MD5 |
640bd0cfd9436198db82f15e6c571502
|
|
| BLAKE2b-256 |
b0a43ec8f3ab454bc5f3265269e88d9bbb3ca6bc3e7bed99fbb1966d5d89f80e
|