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
from tornadowhois import AsyncWhoisClient
from tornado.platform.caresresolver import CaresResolver

async def main():
    whois = AsyncWhoisClient(CaresResolver())
    is_available = await whois.check_domain("tornadoweb.org")
    if is_available:
        print("tornadoweb.org is available")

    read_result = await whois.whois_query("tornadoweb.org")
    print(read_result)

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.

Source Distribution

tornado-whois-0.8.tar.gz (2.5 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