Gives access to client IP information.
Project description
The Unofficial Flask IP Info Extension
This library provides simple access to the client's IP in flask
.
from flask import Flask, request
from flask_ip_api import IPInfo
app = Flask(__name__)
IPInfo(app)
@app.route("/")
def index():
return request.ip["ip"]
if __name__ == "__main__":
app.run()
Uses the https://ipapi.com/ and https://ipinfo.io/ IP
APIs.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flask_ip_api-1.1.1.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for flask_ip_api-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffb31db00dc1faa78b452ac245b0d19ef54d53c00ca8e5510a0986cfde598965 |
|
MD5 | 9b71d7e10834698066a804269e4d4ea8 |
|
BLAKE2b-256 | 934a15b070543a8b131283de9cb383886e21cb9d8372062bae7b2ffb1f79a1c6 |