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

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.

Popular posts from this blog

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

Spring cloud config client Could not locate PropertySource

Makefile test if variable is not empty