Python Prompts Free Prompt

Python Flask App for IP Address Info

Build a Flask app that shows information about an IP address (location, ISP)
☆ Save
Prompt
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.

How to use this prompt

1
Click Copy Prompt above to copy to your clipboard.
2
Open ChatGPT, Claude, Gemini, or any AI assistant and paste the prompt.
3
Replace any [PLACEHOLDER] values with your specific details.
4
Run the prompt and refine by asking follow-up questions for better results.