code: def cmd_whois_ip(ip):
      
  
      warnings.filterwarnings("ignore")
  
      obj = IPWhois(ip)
      data = obj.lookup_rdap()
  
      print(json.dumps(data, indent=4))
docs: Simple whois client to check IP addresses (IPv4 and IPv6).
  
      Example:
  
      \b
      $ habu.whois.ip 8.8.8.8
      {
          "nir": null,
          "asn_registry": "arin",
          "asn": "15169",
          "asn_cidr": "8.8.8.0/24",
          "asn_country_code": "US",
          "asn_date": "1992-12-01",
          "asn_description": "GOOGLE - Google LLC, US",
          "query": "8.8.8.8",
          ...