{ "info": { "author": "Yuanle Song", "author_email": "g-yygame-brd@yy.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: Artistic License", "License :: OSI Approved :: GNU General Public License (GPL)", "License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)", "Operating System :: OS Independent", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Topic :: Software Development :: Libraries" ], "description": "YY cloudns API python client\n============================\n\nA python client for the YY cloudns API. A command line program is also\nincluded.\n\nInstallation\n------------\n\nTo install cloudns, simply:\n\n.. code-block:: bash\n\n $ pip install cloudns\n\n\nQuick Start\n-----------\n\nThis client supports all functions defined in the API. To use those functions,\nfirst create a User object, then call methods on it.\n\n.. code-block:: pycon\n\n >>> import cloudns\n >>> u = cloudns.User('dw_foo', '8AFBE6DEA02407989AF4DD4C97BB6E25')\n >>> u.get_all_zones()\n ...\n >>> u.get_all_records('yyclouds.com')\n ...\n\nSince most api function requires a zone to work on, you can create a zone from\na User and call methods on zone. Zone contains the most frequently used\nfunctions from the API.\n\n.. code-block:: pycon\n\n >>> z = u.zone('yyclouds.com')\n >>> z.create_record('test-foo', '8.8.8.8', 'tel')\n >>> z.get_records_by_name('test-foo')\n ...\n >>> z.delete_records_by_name('test-foo')\n ...\n\nThis client does very strict error checking. Everything from HTTP error to bad\nresponse from cloudns server will raise an exception. All exceptions raised by\ncloudns will be a subclass of CloudnsError.\n\n.. code-block:: pycon\n\n >>> r = z.create_record('test-foo', '8.8.8.8', 'uni'); z.delete_record_by_id(r.rid)\n ... # Will raise exception. Pending record can not be deleted.\n\n\nCLI usage\n---------\n\nThis client includes a CLI script named cloudns. You can use it as a\ninteractive shell or as a command line program. This CLI script is available\nin v1.1.1.0+.\n\nExample usage:\n\nAs a normal command line program:\n\n.. code-block:: bash\n\n cloudns --passport mypsp --token mytoken --zone myzone.com create abc 10.0.0.1 tel\n cloudns --passport mypsp --token mytoken --zone myzone.com create abc 10.0.0.1 uni\n cloudns --passport mypsp --token mytoken --zone myzone.com search abc\n cloudns --passport mypsp --token mytoken --zone myzone.com delete abc\n\nAs an interactive shell:\n\n.. code-block:: bash\n\n $ cloudns --passport mypsp --token mytoken --zone myzone.com\n This is Cloudns REPL, an interactive shell for using cloudns.\n Type help or ? for usage\n\n cloudns> create abc 10.0.0.1 tel\n\n cloudns> create abc 10.0.0.1 uni\n\n cloudns> search abc\n 2 record(s).\n abc.myzone.com\t300\tA\t10.0.0.1\ttel\tACTIVE\n abc.myzone.com\t300\tA\t10.0.0.1\tuni\tACTIVE\n\n cloudns> delete abc\n\n cloudns> search abc\n No record found.\n\n cloudns> exit\n $\n\nFor more information, see\nhttps://cloudns.readthedocs.org/en/latest/cloudns_cli.html\n\nDocumentation\n-------------\n\nCloudns API documentation is available at\nhttp://www.nsbeta.info/doc/YY-DNS-API.pdf\n\nCloudns python client and cloudns CLI documentation is available at\nhttps://cloudns.readthedocs.org/\n\n\nChangeLog\n---------\n\n* v1.2.0.2 2014-07-31\n\n - bugfix: add zone parameter in user.delete_records()\n - support \"cloudns --version\"\n\n* v1.2.0.0 2013-11-27\n\n - use upstream 1.2 api, this client is backward compatible with v1.1.1.3.\n It just use the new api.\n - minor, some spelling fixes\n\n* v1.1.1.3 2013-11-08\n\n - add CLI program named cloudns\n - add test using tox\n\n* v1.1.0.2 2013-08-31\n\n - package tested on python 2.6/2.7/3.3\n - bugfix: fix an import error on python 3.3\n\n* v1.1.0.1 2013-08-13\n\n - initial release", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://pypi.python.org/pypi/cloudns", "keywords": null, "license": "Artistic License or GPLv2+", "maintainer": null, "maintainer_email": null, "name": "cloudns", "package_url": "https://pypi.org/project/cloudns/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/cloudns/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://pypi.python.org/pypi/cloudns" }, "release_url": "https://pypi.org/project/cloudns/1.2.0.2/", "requires_dist": null, "requires_python": null, "summary": "YY cloudns API python client", "version": "1.2.0.2" }, "last_serial": 1175692, "releases": { "1.1.0": [ { "comment_text": "", "digests": { "md5": "a437a9e875a76e9ae84de39bfbac19f3", "sha256": "bcfabe06936b2e25f42bdf464d0dc5c80c9ae491c5231de867afc51d025ea5c0" }, "downloads": -1, "filename": "cloudns-1.1.0.tar.gz", "has_sig": false, "md5_digest": "a437a9e875a76e9ae84de39bfbac19f3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4239, "upload_time": "2013-08-13T03:44:05", "url": "https://files.pythonhosted.org/packages/6a/8a/f8a1539991f129c72ed11a0343dbced95b662bad2b620402dabf57658d1a/cloudns-1.1.0.tar.gz" } ], "1.1.0.1": [ { "comment_text": "", "digests": { "md5": "73893731c9b5a86ce64fd5beac6ea10d", "sha256": "6ebefa8e666e806594ad7455d28772cf6896b3e5c266ce68067c7d6abc390210" }, "downloads": -1, "filename": "cloudns-1.1.0.1.tar.gz", "has_sig": false, "md5_digest": "73893731c9b5a86ce64fd5beac6ea10d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7171, "upload_time": "2013-08-13T14:40:29", "url": "https://files.pythonhosted.org/packages/f1/4b/9976ab0c1ffeaa4d719f8eb1f67a52d97c68bdc47d8dc3977b54cf2b70a9/cloudns-1.1.0.1.tar.gz" } ], "1.1.0.2": [ { "comment_text": "", "digests": { "md5": "3b30f1ad5b1fda816e6098b74c686ae6", "sha256": "3be17ffcabb27d2d235d5d4051b4494bc900cae1c83358bbbdff8e1f2decf758" }, "downloads": -1, "filename": "cloudns-1.1.0.2.tar.gz", "has_sig": false, "md5_digest": "3b30f1ad5b1fda816e6098b74c686ae6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8584, "upload_time": "2013-08-31T10:53:42", "url": "https://files.pythonhosted.org/packages/f9/5b/4ace1938dc100c729b389de63c06e50e0dc01eb8999e727f3b917e82aecc/cloudns-1.1.0.2.tar.gz" } ], "1.1.1.3": [ { "comment_text": "", "digests": { "md5": "c0f01bc5e3a98855e716e2f2ead8b1b8", "sha256": "d665810036246bc96ab95d7d8db25866db8b884348a628f046b47e3522429a41" }, "downloads": -1, "filename": "cloudns-1.1.1.3.tar.gz", "has_sig": false, "md5_digest": "c0f01bc5e3a98855e716e2f2ead8b1b8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13770, "upload_time": "2013-11-08T13:20:33", "url": "https://files.pythonhosted.org/packages/f4/40/e9ec5aa3949b76e47b7a53ca7f95a862628f59896d0f4a09624609bae62b/cloudns-1.1.1.3.tar.gz" } ], "1.2.0.0": [ { "comment_text": "", "digests": { "md5": "e3132af1ffecc323a25f015ff01adae7", "sha256": "0982dca9cb63b59f4e44c00a763aed94ed2bfeb384e7f9876b40eafc13057d54" }, "downloads": -1, "filename": "cloudns-1.2.0.0.tar.gz", "has_sig": false, "md5_digest": "e3132af1ffecc323a25f015ff01adae7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14376, "upload_time": "2013-11-27T12:42:39", "url": "https://files.pythonhosted.org/packages/ac/e6/571a5ddaaf8aa8a66961470d33018c1c045863933a04271fcf37c8a6ce5c/cloudns-1.2.0.0.tar.gz" } ], "1.2.0.2": [ { "comment_text": "", "digests": { "md5": "63fa8333518c39af60b21f612b509b36", "sha256": "16e9a5f6472a790a20d19fa6f62321d3e489c424eeb48b850ca1a5937616d2d8" }, "downloads": -1, "filename": "cloudns-1.2.0.2.tar.gz", "has_sig": false, "md5_digest": "63fa8333518c39af60b21f612b509b36", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14542, "upload_time": "2014-07-31T15:31:00", "url": "https://files.pythonhosted.org/packages/34/52/f0ed881ba1e882ac34c071b75ed488ad49ab91d568ed009d18147b881dcb/cloudns-1.2.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "63fa8333518c39af60b21f612b509b36", "sha256": "16e9a5f6472a790a20d19fa6f62321d3e489c424eeb48b850ca1a5937616d2d8" }, "downloads": -1, "filename": "cloudns-1.2.0.2.tar.gz", "has_sig": false, "md5_digest": "63fa8333518c39af60b21f612b509b36", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14542, "upload_time": "2014-07-31T15:31:00", "url": "https://files.pythonhosted.org/packages/34/52/f0ed881ba1e882ac34c071b75ed488ad49ab91d568ed009d18147b881dcb/cloudns-1.2.0.2.tar.gz" } ] }