Skip to content

A fast and asynchronous wrapper for the WhoIS API written in Python.

License

Notifications You must be signed in to change notification settings

rfoxxxy/whois_api_python

Repository files navigation

WhoIS API Wrapper

codecov Python 3.10 MIT License

API Documentation: whois.neonteam.cc/docs

Installation

pip3 install git+https://github.com/rfoxxxy/whois_api_python

or

poetry add git+https://github.com/rfoxxxy/whois_api_python

Usage example

import asyncio
from whois_api import WhoIS
whois = WhoIS()


async def main():
    ip_info = await whois.ip.info("1.0.0.1")
    print("Estonian:", ip_info.fmt_location("est"))
    print("Russian:", ip_info.fmt_location("rus"))


asyncio.run(main())

About

A fast and asynchronous wrapper for the WhoIS API written in Python.

Resources

License

Stars

Watchers

Forks

Languages