An asynchronous Tornado wrapper for pycares
Project description
An asynchronous Tornado pycares DNS client wrapper, exporting the full API.
Documentation is available at tdns.readthedocs.io.
Example
from tornado import gen, ioloop
import tdns
loop = ioloop.IOLoop()
channel = tdns.Channel(io_loop=loop)
@gen.coroutine
def on_start():
response = yield channel.query('google.com', tdns.QUERY_TYPE_MX)
print(response)
loop.stop()
loop.add_callback(on_start)
loop.start()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tdns-0.2.0.tar.gz
(6.3 kB
view hashes)