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 over HTTPS
  • DNS local cache, 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.2.3.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

requests_doh-0.2.3-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: requests-doh-0.2.3.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for requests-doh-0.2.3.tar.gz
Algorithm Hash digest
SHA256 1be665fb157fec4ca9d6f10da052d1f64df50c4313ca63d5b77948128b189fc6
MD5 0ab89595e9c8183e7ae8a60354c33048
BLAKE2b-256 07543805a4842f0d523044596fe89b5cfe6dcf2475160e939ed5834640e784fb

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for requests_doh-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 70bfa4f1cf1b6ecbb1732b03cb754ce2670938cf97c0fa5ce285caac1bc77f5d
MD5 251513d90c8b500d090902c0ddd06f36
BLAKE2b-256 7ac6134227d346e8c7fd4483dbbd854991fe3ffd23e0bfa24c5aa2cb76f83592

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