{ "info": { "author": "zhanghe", "author_email": "x_hezhang@126.com", "bugtrack_url": null, "classifiers": [], "description": "# \u8bf4\u660e\n* \u64cd\u4f5cdnspod\u57df\u540d(https://www.dnspod.cn)\n* \u652f\u6301\u5bf9\u7528\u6237\u3001\u57df\u540d\u4ee5\u53ca\u8bb0\u5f55\u76f8\u5173\u7684\u64cd\u4f5c\u3002\u5b9e\u73b0\u4e86\u5b98\u65b995%\u4ee5\u4e0a\u7684\u529f\u80fd\uff0c\u8986\u76d6\u4e86\u6240\u6709\u5e38\u7528\u529f\u80fd\u3002\n\n# \u5b89\u88c5\n```\n1. \u5b89\u88c5requests\npip install requests\n\n2. \u5b89\u88c5dns-dnspod\npip install dns-dnspod\n\n3. \u4f7f\u7528\nimport pydnspod\n\nuser_id = 'your-user-id'\nuser_token = 'your-user-token'\n\n\u521b\u5efa\u8fde\u63a5:\ndp = pydnspod.connect(user_id, user_token)\n\n\u83b7\u53d6api\u7248\u672c:\ndp.api_version()\n\n\u64cd\u4f5c\u7528\u6237: dp.user.*\ndp.user.detail() # \u83b7\u53d6\u7528\u6237\u7684\u8be6\u7ec6\u4fe1\u606f\ndp.user.modify_email() # \u4fee\u6539\u7528\u6237\u7684\u90ae\u7bb1\ndp.user.modify_password() # \u4fee\u6539\u7528\u6237\u7684\u5bc6\u7801\ndp.user.modify_userinfo() # \u4fee\u6539\u7528\u6237\u4e2a\u4eba\u4fe1\u606f\ndp.user.user_log() # \u83b7\u53d6\u7528\u6237\u767b\u5f55\u65e5\u5fd7\n\n\u64cd\u4f5c\u57df\u540d: dp.domain.*\ndp.domain.add() # \u6dfb\u52a0domain\ndp.domain.remove() # \u5220\u9664domain\ndp.domain.list() # \u5217\u51fadomain\ndp.domain.info() # domain\u4fe1\u606f\ndp.domain.log() # domain\u64cd\u4f5c\u65e5\u5fd7\ndp.domain.mark() # domain\u8bbe\u7f6e\u661f\u6807\ndp.domain.purview() # \u57df\u540d\u6743\u9650\ndp.domain.remark() # \u57df\u540d\u5907\u6ce8\ndp.domain.group_add() # \u6dfb\u52a0\u5206\u7ec4\ndp.domain.group_list() # \u5217\u51fa\u5206\u7ec4\ndp.domain.group_remove() # \u5220\u9664\u5206\u7ec4\ndp.domain.group_modify() # \u4fee\u6539\u5206\u7ec4\ndp.domain.record_line() # \u83b7\u53d6\u57df\u540d\u652f\u6301\u7684\u7ebf\u8def\u7c7b\u578b\ndp.domain.record_type() # \u83b7\u53d6\u57df\u540d\u652f\u6301\u7684\u8bb0\u5f55\u7c7b\u578b\n\n\u64cd\u4f5c\u8bb0\u5f55: dp.record.*\npd.record.add() # \u6dfb\u52a0record\npd.record.info() # \u67e5\u770brecord\u4fe1\u606f\npd.record.list() # \u67e5\u8be2\u7b26\u5408\u6761\u4ef6\u7684record\npd.record.remove() # \u5220\u9664record\npd.record.remark() # \u7ed9record\u8bbe\u7f6e\u5907\u6ce8\npd.record.modify() # \u4fee\u6539record\npd.record.modify_status() # \u4fee\u6539record\u7684\u72b6\u6001\u3002\u542f\u7528\u6216\u7981\u7528\npd.record.record_id() # \u83b7\u53d6\u7b26\u5408\u6761\u4ef6\u7684\u5b50\u57df\u540d\u7684record id\npd.record.status() # \u83b7\u53d6\u542f\u7528\u6216\u7981\u7528\u7684records\u3002\n```", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/x-hezhang/pydnspod", "keywords": "dns,dnspod", "license": "GPLv3", "maintainer": "", "maintainer_email": "", "name": "dns-dnspod", "package_url": "https://pypi.org/project/dns-dnspod/", "platform": "", "project_url": "https://pypi.org/project/dns-dnspod/", "project_urls": { "Homepage": "https://github.com/x-hezhang/pydnspod" }, "release_url": "https://pypi.org/project/dns-dnspod/1.0.0/", "requires_dist": null, "requires_python": "", "summary": "manage dnspod domain and records", "version": "1.0.0" }, "last_serial": 5576923, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "ee0c21428f8b732b8aab7d970a075a36", "sha256": "042c6953b270516b720636fd147fd2a9f053846a8073428bbe9890d37a04d5a7" }, "downloads": -1, "filename": "dns-dnspod-1.0.0.tar.gz", "has_sig": false, "md5_digest": "ee0c21428f8b732b8aab7d970a075a36", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5467, "upload_time": "2019-07-24T09:59:24", "url": "https://files.pythonhosted.org/packages/b6/9b/e79d80c17dbd30abe08ef2d4ddb10339ff62b6ded6ac8d30fd9d31d68cc1/dns-dnspod-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ee0c21428f8b732b8aab7d970a075a36", "sha256": "042c6953b270516b720636fd147fd2a9f053846a8073428bbe9890d37a04d5a7" }, "downloads": -1, "filename": "dns-dnspod-1.0.0.tar.gz", "has_sig": false, "md5_digest": "ee0c21428f8b732b8aab7d970a075a36", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5467, "upload_time": "2019-07-24T09:59:24", "url": "https://files.pythonhosted.org/packages/b6/9b/e79d80c17dbd30abe08ef2d4ddb10339ff62b6ded6ac8d30fd9d31d68cc1/dns-dnspod-1.0.0.tar.gz" } ] }