Skip to main content

Get IP, ISP, Location, OS from flask request

Project description

This library get some useful information from flask’s request object.Such as IP Address, ISP, Location, Web Browser, Operating System, etc.

Example

from flask import Flask
from flask_ipinfo import IPInfop

app = Flask(__name__)
ipinfo = IPInfo()

@app.route("/")
def hello():
    return "Your IP Address is :" + ipinfo.ipaddress

if __name__ == "__main__":
    app.run()

Supports

Tested on Python 3.5

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
Flask_IPInfo-0.0.10-py2.py3-none-any.whl (3.7 kB) Copy SHA256 hash SHA256 Wheel py2.py3 Jan 3, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page