Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I would like to create a Flask Python server to serve for a Mobile App / Web server as visualization for Data from PLC. I do not know how to connect Flask Server with another script and to exchange Data between it in full duplex. Is it possible to do it over Sqlite ? Can I write / read a data to the same DB from 2 scripts / servers ? I draw some explanation of my problem (first picture is a problem and a second one may be the possible solution ?/ thanks in advance for your experienced suggestions)enter image description here
Create apis in flask and use requests module from another script and consume the apis that are built on Flask.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 days ago.
Improve this question
I'm writing a simple API in Flask to receive and store file uploads from my React frontend using a FilePond file uploader. I am having such a hard time implementing the views as FilePond seems to have such specific requirements on how the server should operate.
I've attempted to convert this PHP implementation into Flask, however it seems overly complicated and non-applicable to Flask.
What is the simplest minimal way to get my Flask API correctly working with FilePond??
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 4 days ago.
Improve this question
Goodnight.
I'm developing a project that is a Web System for managing a company in which it will register customers and leads through an excel file, files that will contain 20k, 30k and even 60k. And I'm using FastAPI for the Back End.
I would like ideas on the best way to do this registration:
Use a Webhook: The API receives the file, copies the 60k data and sends it in JSON to a Webhook that will register in PostgreSQL.
Using the API: The API performs all registrations asynchronously, the user sends it through an asynchronous request using JavaScript to the API and it takes care of the rest, which can break the API?
Which option do you think is better? Share ideas with me.
At the moment I'm waiting for ideas to execute.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I programmed a Python program that can take a photo as an input and find faces (Face Detection). But I want to implement it in a cloud server.
My program should go and read the python code from the server and return a valuel.
Take your python program and make it an endpoint on a flask or django server.
Or if you don't want to host your server, put your program into for example an AWS Lambda and make it access it with API Gateway (https://docs.aws.amazon.com/apigateway/latest/developerguide/getting-started-with-lambda-integration.html)
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
Is there any way, through code, to prevent your app from idling? I'm thinking something like what is being done here. How to do this through code, but in python/django as that is what my app is done in, i.e. what is the equivalent in python to Node's setInterval. What are the disadvantages of using a pinging service over doing it through code(other than if the site goes down your app wont get pinged). Can you recommend a good pinging service? Thanks in advance.
You cannot do it from within the application. It needs to be woken up "externally". This can be just another Heroku application but that kind of defeats the purpose. There are some Heroku add ons that allow you to monitor your website thus also pinging it in regular intervals.
For example:
https://elements.heroku.com/addons/newrelic
With this your website would always stay awake.
The article you linked is imo more complicated than necessary. If you own a VPS you could host your website there. You could also write a curl command save it as a shell script and call it from cron (https://help.ubuntu.com/community/CronHowto).
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 1 year ago.
Improve this question
Should I use flask or Quart or just crossbar to serve dynamic and asynchronous web page ? I need websocket with RPC and PubSub.
I usually work on database with sqlalchemy , and I like brython instead of javascript.
I'd like to avoid Node.js if possible.
You can find a list of implementations here
I'm planning to use Node.js and the Crossbar.io documentation is very helpful. Seems like a good choice.