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()

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for tdns, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size tdns-0.2.0-py2.py3-none-any.whl (8.7 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size tdns-0.2.0.tar.gz (6.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page