Skip to main content

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


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 details)

Uploaded Source

Built Distribution

flask_ip_api-1.1.1-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file flask_ip_api-1.1.1.tar.gz.

File metadata

  • Download URL: flask_ip_api-1.1.1.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.12

File hashes

Hashes for flask_ip_api-1.1.1.tar.gz
Algorithm Hash digest
SHA256 a51201b038f71ab6e55e4cfe7c59539ef60d41a0b1a254c54ed8e905a6cb0411
MD5 44ead2268701027d1ef91b01e01b061a
BLAKE2b-256 92004857e62074e55bc420391860a9d0cf5656c2b26d78c64a47a2476fc82e45

See more details on using hashes here.

File details

Details for the file flask_ip_api-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: flask_ip_api-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.12

File hashes

Hashes for flask_ip_api-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ffb31db00dc1faa78b452ac245b0d19ef54d53c00ca8e5510a0986cfde598965
MD5 9b71d7e10834698066a804269e4d4ea8
BLAKE2b-256 934a15b070543a8b131283de9cb383886e21cb9d8372062bae7b2ffb1f79a1c6

See more details on using hashes here.

Supported by

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