Skip to main content

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)

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 details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for tornado-whois-0.7.tar.gz
Algorithm Hash digest
SHA256 e4e2ea83668dd300a204ad68d29500972cac82945186e9df78daf6eff1e030c5
MD5 a5449176a4a1048547d7c421f09c6ce4
BLAKE2b-256 06e7d182ad14ed593dfcf22632a66d8e381e16d14079e6fa564883294551e67f

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