Skip to main content

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)

Source distribution for flask-ip-api 1.1.1
File Size Uploaded Provenance Actions
flask_ip_api-1.1.1.tar.gz 2.9 kB Without provenance Details for flask_ip_api-1.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for flask-ip-api 1.1.1
File Interpreter ABI Platform Actions
flask_ip_api-1.1.1-py3-none-any.whl Python 3 none any Details for flask_ip_api-1.1.1-py3-none-any.whl

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

Security for flask-ip-api 1.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page