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-1.0.0.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file requests_doh-1.0.0.tar.gz.

File metadata

  • Download URL: requests_doh-1.0.0.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for requests_doh-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6ce8bc96245030a198ef20d2100b4dcb3b120a05a58df703f8be121a79f8f2fb
MD5 90c8243ae47da7066b98f28d07f0678d
BLAKE2b-256 a38dd9b24a0c0975c9330bcc152af2b5c9a34fa5af0307c10366fdc27e75f24e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for requests_doh-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eea6583b792b7d3dfde74fd28eedc2b95d6ea896368119eede31f0d6ff2c838c
MD5 eff63eebcc513dde3eddf0a01fe55a09
BLAKE2b-256 d5f179f00f86e53510b75a14dc500286f351550cc8207c81e7de1f38072fbcac

See more details on using hashes here.

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