This is the official Python client library for the IPinfo.io IP address API, allowing you to look up your own IP address, or get any of the following details for an IP: You'll need an IPinfo API ...
All without needing to worry about writing an HTTP server or complicated request handling logic.