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


Download files

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

Source Distribution

pydnspod2-0.1.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

pydnspod2-0.1.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file pydnspod2-0.1.0.tar.gz.

File metadata

  • Download URL: pydnspod2-0.1.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.5.5

File hashes

Hashes for pydnspod2-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6e5f46f37cf20c7d35f1bdf64e13235b060a97111ae5986d20a345ca6202f8ef
MD5 a9989eca64bdfed0bf3df4eccd837b9c
BLAKE2b-256 55a91422eba78119d70034000fa6f040c05d8068b6b27410aa14ede29c5ce2f1

See more details on using hashes here.

File details

Details for the file pydnspod2-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pydnspod2-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.5.5

File hashes

Hashes for pydnspod2-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e35794a7ddc73adf723f1a4cc0220fd10c676b24ddfb9704075e981793adc131
MD5 627ee948f3dc9942e722273efc3f1831
BLAKE2b-256 cd639b29e9a7bd5ffd14924d143a9b537470deabcc3dc702ea4131e02acd942e

See more details on using hashes here.

Supported by

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