How bechirfathallah/ip-whois-app works
IP Whois App is a Python application for showing the machine’s public IPv4/IPv6 addresses and looking up IP geolocation and network details through public REST APIs. Its principal search workflow is input, validation in the console app, API lookup, response-to-model conversion, and display; it also has a Tkinter interface with its own lookup flow. The README describes private-address rejection, but the sampled validator only checks whether an address parses, and the GUI does not use it. The GUI and API relationships are visible in the excerpts; other unsampled behavior is not inferred.
Main entry points: api_client.py IP API client · main.py Console app · display.py Console display · gui.py Tkinter GUI
Components 10
Application flows
- Console app
main.py - Console display
src/display.py - Tkinter GUI
gui.py
Validation and data
- IP validator
src/validator.py - IP info model
src/models.py
API integration
- IP API client
src/api_client.py - ipify API
- ipwho.is API
Other components
- Console user
- GUI user
Connections 12
- Console user → Console app: uses
main.py - Console app → Console display: prompts and displays
main.py - Console app → IP validator: validates input
main.py - Console app → IP API client: requests IP data
main.py - Console app → IP info model: builds lookup model
main.py - GUI user → Tkinter GUI: uses
gui.py - Tkinter GUI → IP API client: requests IP data
gui.py - IP API client → ipify API: requests public IP
src/api_client.py - ipify API → IP API client: returns IP
src/api_client.py - IP API client → ipwho.is API: requests IP details
src/api_client.py - ipwho.is API → IP API client: returns lookup data
src/api_client.py - Console display → Console user: shows results
src/display.py