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.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

Flask_IPInfo-0.0.10-py2.py3-none-any.whl (3.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file Flask_IPInfo-0.0.10-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for Flask_IPInfo-0.0.10-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 53c07b3f185cabf1ffb0f727e5b193ee1ea2a76d97c03a295eca608325ecaa84
MD5 8674d6adf4f7744c2e08dcea9b1327bd
BLAKE2b-256 06517292815d5a649675f0af6d0e4777e7977f0883e8b7e86673e3e4f28b2f19

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page