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.


from flask import Flask
from flask_ipinfo import IPInfop

app = Flask(__name__)
ipinfo = IPInfo()

def hello():
    return "Your IP Address is :" + ipinfo.ipaddress

if __name__ == "__main__":


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.

Files for Flask-IPInfo, version 0.0.10
Filename, size File type Python version Upload date Hashes
Filename, size Flask_IPInfo-0.0.10-py2.py3-none-any.whl (3.7 kB) File type Wheel Python version py2.py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page