Skip to main content

Asynchronous python tornado whois client

Project description

Asynchronous Whois client for tornado framework

Example

from tornado import ioloop, gen
from tornadowhois import AsyncWhoisClient


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

ioloop.IOLoop.current().run_sync(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().run_sync(main)

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

tornado-whois-0.6.tar.gz (2.3 kB view hashes)

Uploaded Source

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