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 许可证 发布.
Release files for alibaba-sms 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| alibaba-sms-0.0.1.tar.gz | 5.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| alibaba_sms-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.6 kB
Release files / alibaba-sms-0.0.1.tar.gz
| Download URL | alibaba-sms-0.0.1.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8c419e5f7dec2fc9ff27901aef8bf073bec5a9fd6a5edd2363e224b6c72a856f
|
|
BLAKE2b-256 checksum How to use checksums |
e91c3cc01e80ea2b114d20d944c9d43879cd587526a226b410194cce27ae7f5b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / alibaba_sms-0.0.1-py3-none-any.whl
| Download URL | alibaba_sms-0.0.1-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a1c118acd8cdc973bf390b401df212c864e06b838a3ca9277ea08fdfb007a579
|
|
BLAKE2b-256 checksum How to use checksums |
9c25864c5f0563c0e53b0c40868691b1e781709ea84565c9347612f1316d735f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|