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.
Metadata
Release files for flask-ip-api 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| flask_ip_api-1.1.1.tar.gz | 2.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flask_ip_api-1.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.9 kB
Release files / flask_ip_api-1.1.1.tar.gz
| Download URL | flask_ip_api-1.1.1.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a51201b038f71ab6e55e4cfe7c59539ef60d41a0b1a254c54ed8e905a6cb0411
|
|
BLAKE2b-256 checksum How to use checksums |
92004857e62074e55bc420391860a9d0cf5656c2b26d78c64a47a2476fc82e45
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.12
|
Release files / flask_ip_api-1.1.1-py3-none-any.whl
| Download URL | flask_ip_api-1.1.1-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ffb31db00dc1faa78b452ac245b0d19ef54d53c00ca8e5510a0986cfde598965
|
|
BLAKE2b-256 checksum How to use checksums |
934a15b070543a8b131283de9cb383886e21cb9d8372062bae7b2ffb1f79a1c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.12
|