Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

posted data to flask

from flask import Flask, request, jsonify

app = Flask(__name__)

@app.route('/post')
def post():
    res = request.json
    return jsonify(res)
  
app.run()
Comment

PREVIOUS NEXT
Code Example
Python :: how to retrieve dictionary values in python by index 
Python :: how to get the local time in python 
Python :: print all unique values in a dictionary 
Python :: label encoding in python 
Python :: python add field to dictionary 
Python :: np one hot encoding 
Python :: numpy sort 
Python :: python if in list multiple 
Python :: python list splicing 
Python :: combination 
Python :: comment out a block in python 
Python :: python web parsing 
Python :: how to plot confusion matrix 
Python :: debug mode: on flask pythin window 
Python :: python requests get 
Python :: dimension of tensor 
Python :: write json pythonb 
Python :: french to english 
Python :: dockerfile for django project 
Python :: rotate image python 
Python :: python relative file path doesnt work 
Python :: print list in python 
Python :: how to make a def in python 
Python :: pandas crosstab 
Python :: how to get random number python 
Python :: requests.Session() proxies 
Python :: python get the last element from the list 
Python :: python convert images to pdf 
Python :: write binary file in python 
Python :: simple graph in matplotlib categorical variables 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =