Alibaba cloud SMS service SDK
Project description
Alibaba SMS 阿里云短信发送 SDK
官方 SDK 过于庞大,如果仅仅是为了发送短信,宁愿自己实现一个。
项目特色
- 多次发送复用底层连接。
- 轻量级,只包含短信发送必要代码。
- 适度封装,使用简单,但是可通过参数改变默认行为。
快速上手
安装
pip install alibaba-sms
使用
from alibaba_sms import AliSMS
client = AliSMS("access_key_id", "access_key_secret")
client.send("phone_number", "code", "sign_name", "template_code")
更多参数参考源码中的文档和注释。
许可证
Alibaba SMS 项目基于 MIT 许可证 发布.
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
alibaba-sms-0.0.1.tar.gz
(5.2 kB
view hashes)
Built Distribution
Close
Hashes for alibaba_sms-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1c118acd8cdc973bf390b401df212c864e06b838a3ca9277ea08fdfb007a579 |
|
MD5 | c0a863cc12d2f508e8be9714c13cb545 |
|
BLAKE2b-256 | 9c25864c5f0563c0e53b0c40868691b1e781709ea84565c9347612f1316d735f |