{ "info": { "author": "Alexander Zhuko", "author_email": "zhukovaa90@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": ".. image:: https://travis-ci.org/ZhukovAlexander/aio-doh.svg?branch=master\n :target: https://travis-ci.org/ZhukovAlexander/aio-doh\n \n*******\naio-doh\n*******\nIs a tiny asynchronous client for Google's Public `DNS-over-HTTPS `_ service. It is built on top of ``asyncio`` and ``aiohttp``\n\nInstallation\n############\n\n.. code-block:: bash\n\n pip install aio-doh\n \nExample usage\n#############\n\n.. code-block:: python\n\n >>> from doh import DOHClient\n >>> from asyncio import get_event_loop\n >>>\n >>> loop = get_event_loop()\n >>> client = DOHClient(loop)\n >>> loop.run_until_complete(client.resolve('example.com'))\n ['93.184.216.34']\n >>>\n \nAPI\n###\nThe API is simple and small\n\n``DOHClient.query(hostname, type, dnssec)``\n ``hostname`` - name of a target host; ``type`` - DNS record type for a query; ``dnssec`` - enable DNSSEC validation. Returns a complete DNS response as a python dictionary.\n\n``DOHClient.resolve(hostname, type, dnssec)``\n ``hostname`` - name of a target host; ``type`` - DNS record type for a query; ``dnssec`` - enable DNSSEC validation. Returns a list of IP adresses.\n\n``DOHClient.gethostbyname(hostname, type, dnssec)``\n ``hostname`` - name of a target host; ``type`` - DNS record type for a query; ``dnssec`` - enable DNSSEC validation. Returns the first IP adress found if any or raises an error.\n\nDocumentation\n#############\nTODO\n\nContributing\n############\nFile and issue or create a pull request.", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ZhukovAlexander/aio-doh", "keywords": "python dns https asyncio", "license": "", "maintainer": "", "maintainer_email": "", "name": "aio-doh", "package_url": "https://pypi.org/project/aio-doh/", "platform": "", "project_url": "https://pypi.org/project/aio-doh/", "project_urls": { "Homepage": "https://github.com/ZhukovAlexander/aio-doh" }, "release_url": "https://pypi.org/project/aio-doh/0.0.4/", "requires_dist": null, "requires_python": ">=3.6", "summary": "Asynchronous DNS-over-HTTPS client for Python", "version": "0.0.4" }, "last_serial": 3422222, "releases": { "0.0.4": [ { "comment_text": "", "digests": { "md5": "78ce32162ed884b1cc4a7b547f651f08", "sha256": "75ca607ef03139b487ee8a9966fbd44b8c8ea7f6870ada3475ae5a2f491500b5" }, "downloads": -1, "filename": "aio_doh-0.0.4-py3.6.egg", "has_sig": false, "md5_digest": "78ce32162ed884b1cc4a7b547f651f08", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": ">=3.6", "size": 7249, "upload_time": "2017-12-16T20:38:24", "url": "https://files.pythonhosted.org/packages/c6/c4/8f5d8e0245bd8b0db9d6919309a40a295093fb5a3751217d9b3b3189aa65/aio_doh-0.0.4-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "70be6a1891eb44f88d8478312efd2bfb", "sha256": "08acd3a10b33a1e47a600634dfd0a8dba9c5928f4f770c590c962059fb356b07" }, "downloads": -1, "filename": "aio-doh-0.0.4.tar.gz", "has_sig": false, "md5_digest": "70be6a1891eb44f88d8478312efd2bfb", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 8648, "upload_time": "2017-12-16T20:38:23", "url": "https://files.pythonhosted.org/packages/00/18/0ea989df937960ab7e0921354b65762c2d924f5c30f832a67e981fc10c7d/aio-doh-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "78ce32162ed884b1cc4a7b547f651f08", "sha256": "75ca607ef03139b487ee8a9966fbd44b8c8ea7f6870ada3475ae5a2f491500b5" }, "downloads": -1, "filename": "aio_doh-0.0.4-py3.6.egg", "has_sig": false, "md5_digest": "78ce32162ed884b1cc4a7b547f651f08", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": ">=3.6", "size": 7249, "upload_time": "2017-12-16T20:38:24", "url": "https://files.pythonhosted.org/packages/c6/c4/8f5d8e0245bd8b0db9d6919309a40a295093fb5a3751217d9b3b3189aa65/aio_doh-0.0.4-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "70be6a1891eb44f88d8478312efd2bfb", "sha256": "08acd3a10b33a1e47a600634dfd0a8dba9c5928f4f770c590c962059fb356b07" }, "downloads": -1, "filename": "aio-doh-0.0.4.tar.gz", "has_sig": false, "md5_digest": "70be6a1891eb44f88d8478312efd2bfb", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 8648, "upload_time": "2017-12-16T20:38:23", "url": "https://files.pythonhosted.org/packages/00/18/0ea989df937960ab7e0921354b65762c2d924f5c30f832a67e981fc10c7d/aio-doh-0.0.4.tar.gz" } ] }