Skip to main content

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

Metadata

Release files for pydnspod2 0.1.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 pydnspod2 0.1.0
File Size Uploaded
pydnspod2-0.1.0.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pydnspod2 0.1.0
File Interpreter ABI Platform
pydnspod2-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.0 kB

Release files / pydnspod2-0.1.0.tar.gz

Download URL pydnspod2-0.1.0.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
6e5f46f37cf20c7d35f1bdf64e13235b060a97111ae5986d20a345ca6202f8ef
BLAKE2b-256 checksum
How to use checksums
55a91422eba78119d70034000fa6f040c05d8068b6b27410aa14ede29c5ce2f1
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / pydnspod2-0.1.0-py3-none-any.whl

Download URL pydnspod2-0.1.0-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e35794a7ddc73adf723f1a4cc0220fd10c676b24ddfb9704075e981793adc131
BLAKE2b-256 checksum
How to use checksums
cd639b29e9a7bd5ffd14924d143a9b537470deabcc3dc702ea4131e02acd942e
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.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