Questions tagged [waitress]

Waitress is meant to be a production-quality pure-Python WSGI server with very acceptable performance.

190 questions
3
votes
1 answer

Python Dash server with waitress

I have a dashboard application written in Dash framework. It also has a few Restful API's written using flask. I am adding flask app to Dash server, as import dash import flask import dash_bootstrap_components as dbc flask_server =…
phileinSophos
  • 362
  • 4
  • 22
3
votes
4 answers

Using Gevent in flask: API is not asynchronous

Earlier I was using Waitress. Now I'm using Gevent to run my Flask app that has only one API from flask import Flask, request, jsonify import documentUtil from gevent.pywsgi import WSGIServer app =…
Gissipi_453
  • 1,250
  • 1
  • 25
  • 61
3
votes
1 answer

Python Flask with Waitress WSGI not working with Heroku

I was learning about building web apps and putting them on Heroku. I made a basic HTML website, which runs perfectly on the local server but it's showing "Application Error " on Heroku. I was initially using gunicorn (which was giving me an H10…
Rohan
  • 77
  • 9
3
votes
1 answer

How to tell when flask server using waitress is overloaded

I have a simple flask application that runs a machine learning model on data sent in a post request to an endpoint (say /predict). The flask app uses waitress in production with the default parameters. Since prediction can take a while I have a…
scowan
  • 77
  • 7
3
votes
0 answers

How to restart flask server via API while it uses multiprocessing inside

I have a flask app with waitress that gets some data in post-request, then it runs some long computations in long_function and returns result. These computations are parallel and I'm using pebble because I need a timeout option. Also I want the…
Anna
  • 199
  • 1
  • 10
3
votes
1 answer

Flask with Waitress - get request headers returns None

Using just the Flask server with Python, the following get request works: from flask import Flask, request app = Flask(__name__) class Result(Resource): def get(self): image_id = request.headers.get('image_id') api.add_resource(Result,…
lepton
  • 715
  • 1
  • 6
  • 22
3
votes
1 answer

Deployment of Flask based Api (using waitress) to Docker

I am trying to create a docker container for a simple Flask based Api (python 3 dependant) but I am having issues and I don't understand what the issue is. My Dockerfile is: FROM python:3-alpine RUN pip install --upgrade pip RUN pip install…
Swatcat
  • 73
  • 6
  • 21
  • 57
3
votes
3 answers

Plotly dash in docker do not load assets

I have a multi-page dash application that works as expected when running it locally with: waitress-serve --listen=0.0.0.0:80 web_app.wsgi:application so all the assets within the assets folder loads correctly, the images ar loaded with…
Patrik
  • 55
  • 1
  • 6
3
votes
1 answer

No module named flask with waitress-serve and virtualenv (App engine flex)

I'm working on a project which used to be run on Linux for test. It's an App Engine flex project, run with gunicorn. Gunicorn does not work on Windows if I understood well, so I've been adviced to use waitress. I also use virtualenv in my…
Valentin Coudert
  • 1,759
  • 3
  • 19
  • 44
3
votes
1 answer

Deploying a python flask web application on Heroku with Windows

I am trying to deploy a flask app I made to Heroku with success. The app is generated but I get errors when I push the code to the Heroku repository. My flask app is inside a module called server.py and the variable is named app. At first I tried…
NotSure
  • 651
  • 2
  • 7
  • 24
2
votes
2 answers

Running a Pyramid WSGI application under tornado

Pyramid uses it's own Waitress web server for development purposes, but I want to serve my WSGI app under Tornado. I think I should configure it using the pserve .ini files, but I can't get it to work
stipetic
  • 41
  • 1
  • 7
2
votes
0 answers

Is there an option to make TeamCity clone a Mercurial repository with minimal processing instead of init/pull?

We have an old TeamCity server that uses an old Kallithea on Windows. One of our projects has become relatively big and now only clonable with "--stream" option. Without it the "remote host closes connection". Kallitheas WSGI server (Waitress) seems…
The incredible Jan
  • 741
  • 10
  • 17
2
votes
0 answers

Alternative command of gunicorn for waitress

So basically I'm trying to use gunicorn on Windows using the command gunicorn core.wsgi:application -w 4 I know that gunicorn does not work on Windows bc the package 'fcntl' does not exist in Windows. The alternative to gunicorn on Windows is…
2
votes
0 answers

task queue on flask server everytime to retrieve data for live-data analysis

i am now creating a Flask App as a restful API where it receive data from another server, and the flask app will do some calculations using an AI model i created previously. I realized that whenever my flask was trying to retrieve previous data from…
2
votes
0 answers

Python Flask - Session Not Being Set with Waitress

I am using waitress on IIS with Flask. I have a route that sets a session as follows @gp_clinicals_bp.route("/setting", methods=["POST","GET"]) def gp_clinicals(): session["gp_clinicals_meds_repeat"] = "123456" return…
pee2pee
  • 3,619
  • 7
  • 52
  • 133
1 2
3
12 13