Skip to main content

DNSPod API Python Web Example

Project description

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

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

dnspod-web-3.0.0.tar.gz (45.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dnspod_web-3.0.0-py3-none-any.whl (49.5 kB view details)

Uploaded Python 3

File details

Details for the file dnspod-web-3.0.0.tar.gz.

File metadata

  • Download URL: dnspod-web-3.0.0.tar.gz
  • Upload date:
  • Size: 45.3 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for dnspod-web-3.0.0.tar.gz
Algorithm Hash digest
SHA256 171cb8eac4234ee0cfabc1f88f360e207dcd673d059d9e387f4565251a6d694f
MD5 77d9b8d1a6749b6d6f10e4d5449f08af
BLAKE2b-256 5a4db34347a386bc5b894ef2f681c7d806f27157d0933ce731d0ca5942dffce9

See more details on using hashes here.

File details

Details for the file dnspod_web-3.0.0-py3-none-any.whl.

File metadata

  • Download URL: dnspod_web-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 49.5 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for dnspod_web-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 13076074b0061ab0299bd89bd223f8389486616267a08658c849276cbfd35cd4
MD5 070406a06aee812400dda7601c6e3ac3
BLAKE2b-256 88f6373d4fe9111cf69b4941ec35c0215f2fda361009b200c438cbabe85d3a0e

See more details on using hashes here.

Supported by

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