Skip to main content

A dnspod api SDK.

官方API文档

安装

pip install dnspod-sdk

使用

from dnspod_sdk import DnspodClient

token_id = 0
token = "<your token>"
user_agent = "程序英文名称/版本(联系邮箱))"

dc = DnspodClient(token_id, token, user_agent)

r = dc.post("/Info.Version")
print(r.json())

r = dc.post("/Domain.List", data={"type": "all", "length": 1})
print(r.json())

Release files for dnspod-sdk 0.0.2

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-sdk 0.0.2
File Size Uploaded
dnspod-sdk-0.0.2.tar.gz 1.9 kB Details

Release files / dnspod-sdk-0.0.2.tar.gz

Download URL dnspod-sdk-0.0.2.tar.gz
Size 1.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f7ffbaf2f416965b09b19fa32fc5930d8ed067e4bbaeddc74685e923202bf42f
BLAKE2b-256 checksum
How to use checksums
f39814e689f60e85e5abbac594e0af4a4e7978933e246b5c755bbac15abec8e4
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/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.5

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file

0.0.1

1 release file

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