Skip to main content

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)

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.5.tar.gz (2.3 kB view details)

Uploaded Source

File details

Details for the file tornado-whois-0.5.tar.gz.

File metadata

  • Download URL: tornado-whois-0.5.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for tornado-whois-0.5.tar.gz
Algorithm Hash digest
SHA256 3ac4989b4e28ffeaf2e96a5f9ed2d8ff675555a4123f352e09843a37227483ba
MD5 47365a73934e7bab21a7ddf9e1681d18
BLAKE2b-256 840d496d86246ab2a596ec296c062d79577fdd5eecf398bb94f6a984141f0357

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page