Skip to content

tkudla/tornado-whois

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tornado-Whois

Asynchronous Whois client for tornado framework

Example

from tornado import ioloop, gen
from tornadowhois import AsyncWhoisClient


@gen.coroutine
def main():

    data = yield 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()


@gen.coroutine
def main():

    data = yield AsyncWhoisClient(resolver).lookup("example.com")
    print data

ioloop.IOLoop.current().run_sync(main)

About

Python Tornado Asynchronous Whois Client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages