Skip to main content

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


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)

Uploaded Source

Built Distribution

alibaba_sms-0.0.1-py3-none-any.whl (5.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page