Skip to main content

DNS over HTTPS resolver for python requests

Project description

pypi-total-downloads python-ver pypi-release-ver

requests-doh

DNS over HTTPS resolver for python requests using dnspython module

Key features

  • Resolve hosts using public DNS servers or custom DNS servers over HTTPS
  • DNS caching, making faster to resolve hosts
  • Easy to use

Installation

You must have Python 3.8.x or up with Pip installed.

PyPI (stable version)

# For Linux / Mac OS
python3 -m pip install requests-doh

# For Windows
py -3 -m pip install requests-doh

Git (Development version)

git clone https://github.com/mansuf/requests-doh.git
cd requests-doh
python setup.py install

For more information about installation, see Installation

Usage

# for convenience
from requests_doh import DNSOverHTTPSSession

# By default, DoH provider will set to `cloudflare`
session = DNSOverHTTPSSession(provider='google')
r = session.get('https://google.com')
print(r.content)

For more information about usage, see API usage

Links

License

See LICENSE

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

requests-doh-0.3.2.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

requests_doh-0.3.2-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file requests-doh-0.3.2.tar.gz.

File metadata

  • Download URL: requests-doh-0.3.2.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for requests-doh-0.3.2.tar.gz
Algorithm Hash digest
SHA256 a84359ac063abff3fa12b5ad764271b9f8a33899b29dd46b146f16e1c401598e
MD5 ad2b1da4ffaf40e85169105b17878b24
BLAKE2b-256 3bc254730cb1587d7e8cdcccf8c91d2144585f0e48c0c5717a20db5a566b41e2

See more details on using hashes here.

Provenance

File details

Details for the file requests_doh-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: requests_doh-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for requests_doh-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a1d7ab1cb1407fe6d6225327d9ee883c96ed552b8bca71bfe41c54f75032e529
MD5 752c421e4142f2d09c7c3bf7d6c6f25b
BLAKE2b-256 c9ca1e54d7ae7665a59fd182a6e18f2969c56aa9addbc9e339414f944c78b402

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page