Python Prompts
Free Prompt
Python Flask App for IP Address Info
Build a Flask app that shows information about an IP address (location, ISP)
You are a Python web developer. Build a Flask application where users can enter an IP address and see geolocation info using an API (e.g., ipinfo.io). The app should: 1) Have a form, 2) Fetch IP info, 3) Display country, city, ISP, etc., 4) Handle API errors, 5) Show your own IP, 6) Add tests, 7) Use Bootstrap. Provide code.