DNSPod API Python Web Example
Project description
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
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
dnspod-web-3.0.0.tar.gz
(45.3 kB
view hashes)
Built Distribution
dnspod_web-3.0.0-py3-none-any.whl
(49.5 kB
view hashes)
Close
Hashes for dnspod_web-3.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13076074b0061ab0299bd89bd223f8389486616267a08658c849276cbfd35cd4 |
|
MD5 | 070406a06aee812400dda7601c6e3ac3 |
|
BLAKE2b-256 | 88f6373d4fe9111cf69b4941ec35c0215f2fda361009b200c438cbabe85d3a0e |