Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

flask get ip of user

from flask import request
from flask import jsonify

@app.route("/get_my_ip", methods=["GET"])
def get_my_ip():
    return jsonify({'ip': request.remote_addr}), 200
Comment

PREVIOUS NEXT
Code Example
Python :: len of int python 
Python :: tkinter radio buttons 
Python :: show image python 
Python :: python largest value in list 
Python :: replace nat with date pandas 
Python :: how to use sum with range python 
Python :: timeit jupyter 
Python :: split a given number in python 
Python :: python list except last element 
Python :: simple http server python 
Python :: promote a row in panda dataframe to header 
Python :: convex hull algorithm python 
Python :: python create environment linux 
Python :: remove rows from pandas dataframe that have text 
Python :: create 3x3 numpy array 
Python :: descending python dataframe df 
Python :: localize timezone python 
Python :: how to plot corilation python 
Python :: converting jupyter notebook files to python 
Python :: difference between 2 timestamps pandas 
Python :: play mp3 file python 
Python :: model o weight 
Python :: Python make directories recursively 
Python :: erase % sign in row pandas 
Python :: python take the month of date in new column 
Python :: convert string to list of dictionaries 
Python :: how to check whole number in python 
Python :: numpy how to slice individual columns 
Python :: how to say something python 
Python :: python get pid of process 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =