Skip to main content

An asynchronous Tornado wrapper for pycares

Project description

An asynchronous Tornado pycares DNS client wrapper, exporting the full API.

Version Downloads PythonVersions Status Coverage Code Climate

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


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)

Uploaded Source

Built Distribution

tdns-0.2.0-py2.py3-none-any.whl (8.7 kB view hashes)

Uploaded Python 2 Python 3

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