torip/ipapis.py
def locate(self, ip):
        """
        Main function of the class whose output will be a dictionary with the information
        provided by the selected API.
        :param ip: IP or server name (String)
        :return: dict()
        """
        err = self.check_address(ip)
        if err is not None:
            raise ToripException(f"{err}")
        url = self.build_url(ip)
        data = yield self.fetch_data(url)
        result = None
        if data:
            result = LocateApi.enrich(self.adapt(data))
        return result

        Main function of the class whose output will be a dictionary with the information
        provided by the selected API.
        :param ip: IP or server name (String)
        :return: dict()
        
Main function of the class whose output will be a dictionary with the information
provided by the selected API.
Main function of the class whose output will be a dictionary with the information provided by the selected API .
def locate(self, ip):
        err = self.check_address(ip)
        if err is not None:
            raise ToripException(f"{err}")
        url = self.build_url(ip)
        data = yield self.fetch_data(url)
        result = None
        if data:
            result = LocateApi.enrich(self.adapt(data))
        return result
def locate ( self , ip ) : err = self . check_address ( ip ) if err is not None : raise ToripException ( f"{err}" ) url = self . build_url ( ip ) data = yield self . fetch_data ( url ) result = None if data : result = LocateApi . enrich ( self . adapt ( data ) ) return result
Main function of the class whose output will be a dictionary with the information
provided by the selected API.
Main function of the class whose output will be a dictionary with the information provided by the selected API .
"""
        Main function of the class whose output will be a dictionary with the information
        provided by the selected API.
        :param ip: IP or server name (String)
        :return: dict()
        """
None
self
ip
IP or server name (String)
IP or server name ( String )