Codebase list dnspython / 71b2f338-91d2-4ef3-b669-b7b9c0224ce9/main doc / async-backend.rst
71b2f338-91d2-4ef3-b669-b7b9c0224ce9/main

Tree @71b2f338-91d2-4ef3-b669-b7b9c0224ce9/main (Download .tar.gz)

async-backend.rst @71b2f338-91d2-4ef3-b669-b7b9c0224ce9/mainraw · history · blame

module:: dns.asyncbackend
.. _async-backend:

Asynchronous Backend Functions
==============================

Dnspython has a "backend" for Trio, Curio, and asyncio which implements
the library-specific functionality needed by the generic asynchronous
DNS code.

Dnspython attempts to determine which backend is in use by "sniffing" for it
with the ``sniffio`` module if it is installed.  If sniffio is not available,
dnspython try to detect asyncio directly.

.. autofunction:: dns.asyncbackend.get_default_backend
.. autofunction:: dns.asyncbackend.set_default_backend
.. autofunction:: dns.asyncbackend.sniff
.. autofunction:: dns.asyncbackend.get_backend