Python的Serverjiang
项目描述
森都
用于python的Serverjiang。
安装
pip install sendu
入门
你应该去Server-Chan获取一个SCKEY并绑定微信。您的 URL 将类似于“ https://sc.ftqq.com/[SCKEY].send ”。您可以使用以下功能发送文本、图片、markdown 文件。
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")
演示
我是第一次上这台电脑:
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")
我不是第一次上这台电脑了:
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")
项目详情
下载文件
下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。
源分布
sendu-0.0.3.linux-x86_64.tar.gz
(1.1 kB
查看哈希)
内置分布
sendu-0.0.3-py3-none-any.whl
(1.5 kB
查看哈希)