how do i process a file while making a flask server?

Multi tool use
Multi tool use
The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


how do i process a file while making a flask server?



I have my code her. I was wondering how do I get this file to even be recognized or saved as a local variable in the Python code? (the file is a csv btw). Here is the image


from flask import Flask
from flask_restful import Api, Resource, reqparse

app = Flask(__name__)
api = Api(app)

class Dataframe(Resource):
def post(self, name):
parser = reqparse.RequestParser()
parser.add_argument("data")
args = parser.parse_args()[enter image description here][1]
return args, 201


api.add_resource(Dataframe, "/<string:name>")
app.run(debug=True)









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

kdAfA,IVOAwKQvSb,JxJb 6 iPnkau65DbQ
1CBF F8H,vi7JYxUNA9,vF0HK,Whu8lc

Popular posts from this blog

Makefile test if variable is not empty

Visual Studio Code: How to configure includePath for better IntelliSense results

Will Oldham