DNSPod API Python Web 示例
功能说明
用 Python 实现了一个 DNSPod API 的 Web 示例,已完成对域名和记录的基本操作,可直接使用。
已调整为只支持通过 Token 登录,请到 DNSPod 用户中心创建 API Token 获取 Token ID 及 Token Key。
功能包括:
- 用户登录
- 域名列表
- 域名暂停/启用
- 域名添加
- 域名删除
- 记录列表
- 记录暂停/启用
- 记录添加
- 记录修改
- 记录删除
环境要求
- Python2.x/3.x
- flask
- requests
安装说明
下载代码库之后,在当前目录运行
$ python app.py
您还可以通过 pip 来安装并测试
$ pip install dnspod-web
$ dnspod-web
然后在浏览器中打开 http://127.0.0.1:5000/ 即可查看示例。
DEMO
请打开 demo 目录查看相关截图。
LICENSE
Copyright 2011-2020 Li Kexian
Licensed under the Apache License 2.0
About
Metadata
Release files for dnspod-web 3.0.0
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 |
|---|---|---|---|---|
| dnspod-web-3.0.0.tar.gz | 45.3 kB | Without provenance | Details for dnspod-web-3.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dnspod_web-3.0.0-py3-none-any.whl | Python 3 | none | any | Details for dnspod_web-3.0.0-py3-none-any.whl |
Total release size: 94.7 kB
Release files / dnspod-web-3.0.0.tar.gz
| Download URL | dnspod-web-3.0.0.tar.gz |
|---|---|
| Size | 45.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
171cb8eac4234ee0cfabc1f88f360e207dcd673d059d9e387f4565251a6d694f
|
|
BLAKE2b-256 checksum How to use checksums |
5a4db34347a386bc5b894ef2f681c7d806f27157d0933ce731d0ca5942dffce9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6
|
Release files / dnspod_web-3.0.0-py3-none-any.whl
| Download URL | dnspod_web-3.0.0-py3-none-any.whl |
|---|---|
| Size | 49.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
13076074b0061ab0299bd89bd223f8389486616267a08658c849276cbfd35cd4
|
|
BLAKE2b-256 checksum How to use checksums |
88f6373d4fe9111cf69b4941ec35c0215f2fda361009b200c438cbabe85d3a0e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6
|
Security for dnspod-web 3.0.0
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.