Skip to main content

pydoh

CI Coverage pypi downloads versions license

DNS-over-HTTPS резолвер для питона. ноль зависимостей — весь HTTPS через стандартный http.client+ssl. провайдер/DPI видит только твой HTTPS к cloudflare, а не голые DNS-запросы.

sequenceDiagram
    App->>pydoh: resolve("example.com")
    pydoh->>Cloudflare: DNS-запрос внутри HTTPS POST
    Cloudflare-->>pydoh: ответ внутри HTTPS
    pydoh-->>App: ["93.184.216.34"]

установка

pip install pydoh

юзать

import pydoh

ips = pydoh.resolve("example.com")

или подменить резолвинг вообще везде в питоне одной строкой — requests, aiohttp, что угодно на сокетах будет резолвить через DoH:

import pydoh
pydoh.patch_socket()

фичи

  • zero deps, только stdlib
  • fallback между cloudflare / google / quad9 если один упал
  • кэш по TTL из ответа
  • typed (py.typed), питон 3.10–3.13

что не умеет

не проверяет DNSSEC, не поддерживает TCP-фрагментированные DNS-ответы больше одного UDP-пакета.

Metadata

Release files for pydoh 0.1.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 pydoh 0.1.0
File Size Uploaded
pydoh-0.1.0.tar.gz 7.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pydoh 0.1.0
File Interpreter ABI Platform
pydoh-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.7 kB

Release files / pydoh-0.1.0.tar.gz

Download URL pydoh-0.1.0.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5138e9cae50cc36ed413ca195d35eb3064b94ad7b5a77188c0dc738180dc46ac
BLAKE2b-256 checksum
How to use checksums
306d92edd259cbbd12249e19dcdfdb349b0bb7d40737cc948d42bda5e4a51b22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 19, 2026.

Transparency log

Release files / pydoh-0.1.0-py3-none-any.whl

Download URL pydoh-0.1.0-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d5b05e49465b3aa6ac425fa80ed927b2963fecca5bde0cbcf2aa0830d6dc0289
BLAKE2b-256 checksum
How to use checksums
446c6a0363ad6ad887d24b52d9f7b4dacd34e79158f6d82a089c63fb5bc94e14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 19, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

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