I’ve finally gone and done it. My first open source project is now live on github: https://github.com/mattharley/flask-geoip2
This code makes it super simple to create your own geoip server based on the brilliant MaxMind database and python libraries. Clone it, fork it (fork me? fork you!), pull request and do whatever you like to it.
* This product includes GeoLite2 data created by MaxMind, available from http://www.maxmind.com