Asynchronous Whois client for tornado framework
Example
from tornado import ioloop, gen
from tornadowhois import AsyncWhoisClient
async def main():
data = await 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()
async def main():
data = await 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.6.tar.gz
(2.3 kB
view details)
File details
Details for the file tornado-whois-0.6.tar.gz.
File metadata
- Download URL: tornado-whois-0.6.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85c05e99938a4b92cd36a6287748b1063bf2632f3828472f324bdaf362b8c6d6
|
|
| MD5 |
8dde6939682b0ae0650122b45322d7c7
|
|
| BLAKE2b-256 |
ab5fe6bfcfc23a158244476d6fba938c2f99d929d36f13d166672c2cfdccd1ce
|