Skip to main content

Asynchronous python tornado whois client

Project description

Asynchronous Whois client for tornado framework

Installation

pip install tornado-whois

Example

from tornado import ioloop, gen
from tornadowhois import AsyncWhoisClient


async def main():
    data = await AsyncWhoisClient().lookup("example.com")
    print(data)

ioloop.IOLoop.current().spawn_callback(main)

Example with non-blocking resolver

from tornado import ioloop, gen
from tornado.platform.caresresolver import CaresResolver
from tornadowhois import AsyncWhoisClient

resolver = CaresResolver()

async def main():
    data = await AsyncWhoisClient(resolver).lookup("example.com")
    print(data)

ioloop.IOLoop.current().spawn_callback(main)

Project details


Download files

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

Files for tornado-whois, version 0.7
Filename, size File type Python version Upload date Hashes
Filename, size tornado-whois-0.7.tar.gz (2.4 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