Skip to content

Instantly share code, notes, and snippets.

#!/bin/env python3
from flask import Flask
import geoip2.database
app = Flask(__name__)
reader = geoip2.database.Reader('GeoLite2-City.mmdb')
@app.route("/")
def hello():