{ "info": { "author": "Kim Jin Su", "author_email": "item4_hun@hotmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "aiohttp-doh\n===========\n\nDNS over HTTPS reslover for aiohttp\n\n\nInstallation\n------------\n\n.. code-block:: bash\n\n $ pip install aiohttp-doh\n\n\nManual Usage\n------------\n\nIf you want use manualy, you must import ``ClientSession`` in ``aiohttp.client``\nmodule and ``TCPConnector`` in ``aiohttp.connector`` module and ``DNSOverHTTPSResolver``\nin ``aiohttp_doh`` package.\n\n.. code-block:: python3\n\n from aiohttp.client import ClientSession\n from aiohttp.connector import TCPConnector\n\n from aiohttp_doh import DNSOverHTTPSResolver\n\n def my_client_session(*args, **kwargs):\n resolver = DNSOverHTTPSResolver(endpoints=[\n 'https://cloudflare-dns.com/dns-query',\n ])\n connector = TCPConnector(resolver=resolver)\n return ClientSession(*args, **kwargs, connector=connector)\n\n async def main():\n async with my_client_session() as session:\n async with session.get('http://example.com') as resp:\n data = await resp.text()\n\n print(data)\n\n\nShortcut\n--------\n\nManual usage is too board. So I make shortcut to use easily.\nYou just replace ``aiohttp.ClientSession`` to ``aiohttp_doh.ClientSession``.\n\n.. code-block:: python3\n\n from aiohttp_doh import ClientSession\n\n async def main():\n async with ClientSession() as session:\n async with session.get('http://example.com') as resp:\n data = await resp.text()\n\n print(data)\n\n\nOptions\n-------\n\nYou can pass below parameter for configuration.\n\nendpoints\n List of str. DNS over HTTPS endpoints.\n Shortcut use `'https://dns.google.com/resolve'`\n and `'https://cloudflare-dns.com/dns-query'` both in default.\n You can also use others instead.\n\njson_loads\n Function for loads json. default is Python builtin json module's one.\n You can use third-party json library like simplejson or ujson.\n\nresolver_class\n Internal DNS resolver class. Using for connect to endpoint.\n default is aiohttp default.\n\n\nLicense\n-------\n\nMIT\n", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/item4/aiohttp-doh/", "keywords": "aiohttp,asyncio,dns,https,security", "license": "MIT", "maintainer": "Kim Jin Su", "maintainer_email": "item4_hun@hotmail.com", "name": "aiohttp-doh", "package_url": "https://pypi.org/project/aiohttp-doh/", "platform": "", "project_url": "https://pypi.org/project/aiohttp-doh/", "project_urls": { "Homepage": "https://github.com/item4/aiohttp-doh/", "Repository": "https://github.com/item4/aiohttp-doh/" }, "release_url": "https://pypi.org/project/aiohttp-doh/0.2.1/", "requires_dist": [ "aiohttp (>=3.5,<4.0)" ], "requires_python": ">=3.5.3", "summary": "DNS over HTTPS reslover for aiohttp", "version": "0.2.1" }, "last_serial": 4759517, "releases": { "0.0.0": [ { "comment_text": "", "digests": { "md5": "ea582837f4ba122ef6cc74ade63d1800", "sha256": "6ec6abafc3b77c4b34dddbb025fdaafa2fb4b7dd1918a98c63afd1c77dc5f76f" }, "downloads": -1, "filename": "aiohttp-doh-0.0.0.tar.gz", "has_sig": false, "md5_digest": "ea582837f4ba122ef6cc74ade63d1800", "packagetype": "sdist", "python_version": "source", "requires_python": "~=3.5", "size": 2371, "upload_time": "2018-05-12T17:47:21", "url": "https://files.pythonhosted.org/packages/62/8d/d3d5ac0fca65d1083ed3fc109a4cabf84b738a18f4e10840a24c4cb282b1/aiohttp-doh-0.0.0.tar.gz" } ], "0.0.1": [ { "comment_text": "", "digests": { "md5": "4fe6bf7c338c53d5aff872cc2dc82748", "sha256": "83a4e20b1a0ba49dfacade3d400ce1e1da9e25516f6ee3cada513a99613c97bf" }, "downloads": -1, "filename": "aiohttp_doh-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "4fe6bf7c338c53d5aff872cc2dc82748", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": "~=3.5", "size": 3138, "upload_time": "2018-07-28T16:14:46", "url": "https://files.pythonhosted.org/packages/2e/50/30dd9427c8067e974bab6407e5b8fbab75181b221980ed4549e887d35805/aiohttp_doh-0.0.1-py3-none-any.whl" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "7df14d4bb4916c078b0672cb8b323dee", "sha256": "602b262229bea7a0657510fe0127c0b1e6eaacdb44047661f27462d241e256df" }, "downloads": -1, "filename": "aiohttp_doh-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "7df14d4bb4916c078b0672cb8b323dee", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5.3", "size": 4963, "upload_time": "2018-10-23T13:45:43", "url": "https://files.pythonhosted.org/packages/49/1b/852e61d65b8bfb5b8df6efe0e7924b9d7b302d5bfcf8c91319c3d0740a1f/aiohttp_doh-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4a210acad3bc3eb4779630e718008b23", "sha256": "71af7da16c993834c93944edc17ccb749df36e87c7baf5d29030ecf02c97f320" }, "downloads": -1, "filename": "aiohttp-doh-0.1.1.tar.gz", "has_sig": false, "md5_digest": "4a210acad3bc3eb4779630e718008b23", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.3", "size": 2892, "upload_time": "2018-10-23T13:45:41", "url": "https://files.pythonhosted.org/packages/0d/33/26d5c944f23fbe6c1310ea65914d920a235c30f81ae1a298ce6a5726440f/aiohttp-doh-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "5f7b895139cb7db49f66bb77b7aecd17", "sha256": "931ef040019896ca0e6bc823ef5786da2a6fbedae54097b890dbb27527660f80" }, "downloads": -1, "filename": "aiohttp_doh-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "5f7b895139cb7db49f66bb77b7aecd17", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5.3", "size": 4959, "upload_time": "2019-01-30T12:04:31", "url": "https://files.pythonhosted.org/packages/77/ea/08a2338e4ae493bacf74541de5ea3fb24f18272bb582281136f494e58fe8/aiohttp_doh-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a86c0d82206d5c02d0bb438e74e0277c", "sha256": "99e348b1d7de327b11326e8d0aaf12a330e56a1f3ddef405754713de7b7797e2" }, "downloads": -1, "filename": "aiohttp-doh-0.2.0.tar.gz", "has_sig": false, "md5_digest": "a86c0d82206d5c02d0bb438e74e0277c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.3", "size": 2905, "upload_time": "2019-01-30T12:04:29", "url": "https://files.pythonhosted.org/packages/57/ca/afb2b96b441886ad3f3d48993db923b02e9d1ed191951ce8dafe4ac7cec2/aiohttp-doh-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "3c9ac1b46ef02472c5b9dfb90889b8fb", "sha256": "4ad9ede46cc1f58b007bb9283c7eb564cda580cd76b33d8f853a2605997ba222" }, "downloads": -1, "filename": "aiohttp_doh-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "3c9ac1b46ef02472c5b9dfb90889b8fb", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5.3", "size": 4971, "upload_time": "2019-01-30T12:18:25", "url": "https://files.pythonhosted.org/packages/2e/22/aa7965a87212c17fcf4d80e7f79adb1479b116c4b4f3996b9149ada0a913/aiohttp_doh-0.2.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e9d0238a36a308e7f95cb7c61414d8ed", "sha256": "2d464c66c7db87fee815f8f6ac80ac4a0181a632801584210d4b24b5815a7c37" }, "downloads": -1, "filename": "aiohttp-doh-0.2.1.tar.gz", "has_sig": false, "md5_digest": "e9d0238a36a308e7f95cb7c61414d8ed", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.3", "size": 2894, "upload_time": "2019-01-30T12:18:24", "url": "https://files.pythonhosted.org/packages/d1/60/046bd2a9e23fd15ef0eef3559f07d2348f5816deb99e1bd10823140196ac/aiohttp-doh-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3c9ac1b46ef02472c5b9dfb90889b8fb", "sha256": "4ad9ede46cc1f58b007bb9283c7eb564cda580cd76b33d8f853a2605997ba222" }, "downloads": -1, "filename": "aiohttp_doh-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "3c9ac1b46ef02472c5b9dfb90889b8fb", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5.3", "size": 4971, "upload_time": "2019-01-30T12:18:25", "url": "https://files.pythonhosted.org/packages/2e/22/aa7965a87212c17fcf4d80e7f79adb1479b116c4b4f3996b9149ada0a913/aiohttp_doh-0.2.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e9d0238a36a308e7f95cb7c61414d8ed", "sha256": "2d464c66c7db87fee815f8f6ac80ac4a0181a632801584210d4b24b5815a7c37" }, "downloads": -1, "filename": "aiohttp-doh-0.2.1.tar.gz", "has_sig": false, "md5_digest": "e9d0238a36a308e7f95cb7c61414d8ed", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.3", "size": 2894, "upload_time": "2019-01-30T12:18:24", "url": "https://files.pythonhosted.org/packages/d1/60/046bd2a9e23fd15ef0eef3559f07d2348f5816deb99e1bd10823140196ac/aiohttp-doh-0.2.1.tar.gz" } ] }