Skip to main content

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

Metadata

Release files for requests-doh 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for requests-doh 1.0.0
File Size Uploaded
requests_doh-1.0.0.tar.gz 13.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for requests-doh 1.0.0
File Interpreter ABI Platform
requests_doh-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 27.0 kB

Release files / requests_doh-1.0.0.tar.gz

Download URL requests_doh-1.0.0.tar.gz
Size 13.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6ce8bc96245030a198ef20d2100b4dcb3b120a05a58df703f8be121a79f8f2fb
BLAKE2b-256 checksum
How to use checksums
a38dd9b24a0c0975c9330bcc152af2b5c9a34fa5af0307c10366fdc27e75f24e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Release files / requests_doh-1.0.0-py3-none-any.whl

Download URL requests_doh-1.0.0-py3-none-any.whl
Size 13.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eea6583b792b7d3dfde74fd28eedc2b95d6ea896368119eede31f0d6ff2c838c
BLAKE2b-256 checksum
How to use checksums
d5f179f00f86e53510b75a14dc500286f351550cc8207c81e7de1f38072fbcac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page