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.
Source Distribution
tornado-whois-0.7.tar.gz
(2.4 kB
view hashes)