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.1.tar.gz
(2.6 kB
view hashes)