Skip to main content

pydnspod - a dnspod api sdk

Project description

pydnspod

pydnspod 是一个 DNSPod 国内版 API 的 Python SDK.

DNSPod API Docs

Installation

pip install pydnspod2

特性

  • 支持自定义User-Agent
  • 支持D令牌
  • 发送请求前检查是否遗漏参数,避免无效请求
  • 使用命名参数,可以单独指定特定api的返回结果的format、lang

使用方法

from pydnspod import pydnspod

if __name__ == "__main__":
    login_email = ''
    login_password = ''
    api = pydnspod.Api(login_email, login_password)
    print api.version()

    user_manager=pydnspod.User(login_email, login_password)
    print user_manager.detail()

    domain_manager = pydnspod.Domain(login_email, login_password)
    print domain_manager.create(domain="domain.name")
    print domain_manager.info(domain="domain.name")

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pydnspod2, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size pydnspod2-0.1.0-py3-none-any.whl (5.1 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size pydnspod2-0.1.0.tar.gz (4.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page