Skip to main content

DNSPod API Python Web 示例

License

功能说明

用 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)

Source distribution for dnspod-web 3.0.0
File Size Uploaded
dnspod-web-3.0.0.tar.gz 45.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dnspod-web 3.0.0
File Interpreter ABI Platform
dnspod_web-3.0.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

3.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page