UniSMS Python SDK
UniSMS - 高可用聚合短信服务平台官方 Python SDK.
文档
查看完整产品介绍与 API 文档请访问 UniSMS Documentation.
安装
Uni Python SDK 使用 PyPI 托管,可从公共 PyPI 仓库 中获得。
在项目中使用 pip 添加 unisms 作为依赖:
pip install unisms
使用示例
以下示例展示如何使用 Uni Python SDK 快速调用服务。
发送短信
from unisdk.sms import UniSMS
from unisdk.exception import UniException
client = UniSMS("your access key id", "your access key secret")
try:
res = client.send({
"to": "your phone number",
"signature": "UniSMS",
"templateId": "login_tmpl",
"templateData": {
"code": 7777
}
})
print(res.data)
except UniException as e:
print(e)
相关参考
其他语言 SDK
Metadata
Release files for unisms 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| unisms-0.0.7.tar.gz | 3.7 kB | Without provenance | Details for unisms-0.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| unisms-0.0.7-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for unisms-0.0.7-py2.py3-none-any.whl |
Total release size: 8.4 kB
Release files / unisms-0.0.7.tar.gz
| Download URL | unisms-0.0.7.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
55185e66e40e100f0fdb33854cabf7c1c1430cf8e5cdf3eab70b282a280064f7
|
|
BLAKE2b-256 checksum How to use checksums |
d9ab902eff7a3625cc1c2f6245d48db2ed3718a0660336dd51c8a0b156087309
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Release files / unisms-0.0.7-py2.py3-none-any.whl
| Download URL | unisms-0.0.7-py2.py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
f2606e68da8a39e8dac4b8fa83ea5c4575cb58e1ddbd988ef0ac522dc88d8db9
|
|
BLAKE2b-256 checksum How to use checksums |
40cb2acc0c801c2861ac5ebb66a2276baf6b48becbfe62203434106ad8d4454c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Security for unisms 0.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.