pyechoip (pypi): A generic library for getting your externally visible IP address in python.
Keywords: ip|network|api