{"id":22286537,"url":"https://github.com/mansuf/requests-doh","last_synced_at":"2025-07-28T22:31:41.697Z","repository":{"id":56734720,"uuid":"524064798","full_name":"mansuf/requests-doh","owner":"mansuf","description":"DNS over HTTPS resolver for python requests using dnspython library","archived":false,"fork":false,"pushed_at":"2024-09-07T13:42:17.000Z","size":76,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-10T23:19:04.852Z","etag":null,"topics":["dns","dns-over-https","dnspython","http","https","python","python3","requests"],"latest_commit_sha":null,"homepage":"https://requests-doh.mansuf.link","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mansuf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null},"funding":{"github":["mansuf"],"ko_fi":"rahmanyusuf"}},"created_at":"2022-08-12T11:37:01.000Z","updated_at":"2024-10-31T08:50:22.000Z","dependencies_parsed_at":"2024-01-14T14:32:34.117Z","dependency_job_id":"c4b5dbec-7558-40bf-8921-7000d2499ada","html_url":"https://github.com/mansuf/requests-doh","commit_stats":{"total_commits":56,"total_committers":1,"mean_commits":56.0,"dds":0.0,"last_synced_commit":"6cf75504f9f23a20861c67416a2fb64333d905fa"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mansuf%2Frequests-doh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mansuf%2Frequests-doh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mansuf%2Frequests-doh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mansuf%2Frequests-doh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mansuf","download_url":"https://codeload.github.com/mansuf/requests-doh/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227961850,"owners_count":17847836,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dns","dns-over-https","dnspython","http","https","python","python3","requests"],"created_at":"2024-12-03T16:56:21.996Z","updated_at":"2024-12-03T16:56:22.784Z","avatar_url":"https://github.com/mansuf.png","language":"Python","funding_links":["https://github.com/sponsors/mansuf","https://ko-fi.com/rahmanyusuf"],"categories":[],"sub_categories":[],"readme":"[![pypi-total-downloads](https://img.shields.io/pypi/dm/requests-doh?label=DOWNLOADS\u0026style=for-the-badge)](https://pypi.org/project/requests-doh)\n[![python-ver](https://img.shields.io/pypi/pyversions/requests-doh?style=for-the-badge)](https://pypi.org/project/requests-doh)\n[![pypi-release-ver](https://img.shields.io/pypi/v/requests-doh?style=for-the-badge)](https://pypi.org/project/requests-doh)\n\n# requests-doh\n\nDNS over HTTPS resolver for python [requests](https://github.com/psf/requests) using [dnspython](https://github.com/rthalley/dnspython) module\n\n## Key features\n\n- Resolve hosts using [public DNS servers](https://adguard-dns.io/kb/general/dns-providers)\nor custom DNS servers over HTTPS\n- DNS caching, making faster to resolve hosts\n- Easy to use\n\n## Installation\n\nYou must have Python 3.8.x or up with Pip installed.\n\n### PyPI (stable version)\n\n```shell\n# For Linux / Mac OS\npython3 -m pip install requests-doh\n\n# For Windows\npy -3 -m pip install requests-doh\n```\n\n### Git (Development version)\n\n```shell\ngit clone https://github.com/mansuf/requests-doh.git\ncd requests-doh\npython setup.py install\n```\n\nFor more information about installation, see [Installation](https://requests-doh.mansuf.link/en/stable/installation.html)\n\n## Usage\n\n```python\n# for convenience\nfrom requests_doh import DNSOverHTTPSSession\n\n# By default, DoH provider will set to `cloudflare`\nsession = DNSOverHTTPSSession(provider='google')\nr = session.get('https://google.com')\nprint(r.content)\n```\n\nFor more information about usage, see [API usage](https://requests-doh.mansuf.link/en/stable/api_usage.html)\n\n## Links\n\n- [PyPI](https://pypi.org/project/requests-doh/)\n- [Docs](https://requests-doh.mansuf.link/)\n\n## License\n\nSee [LICENSE](https://github.com/mansuf/requests-doh/blob/main/LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmansuf%2Frequests-doh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmansuf%2Frequests-doh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmansuf%2Frequests-doh/lists"}