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_info 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.0.0.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for flask_ip_api-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62d2cff58e5f3fd619e8b6e055b1626966f58c58b372fca2063e439a1f62c5e4 |
|
MD5 | 44664c9338d9890d3e422de66d4c697e |
|
BLAKE2b-256 | 144fa2772593496715768a9a8352dafd78d07c297f22d250b963f919f3585909 |