Skip to content

Commit 822595f

Browse files
committed
[Python] Flask: Rename server FastWSGI to FastPySGI
1 parent 8fc13af commit 822595f

6 files changed

Lines changed: 14 additions & 14 deletions

File tree

frameworks/Python/flask/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ PostgresQL (psycopg2 on CPython, psycopg2cffi on PyPy)
2323

2424
* gunicorn+meinheld on CPython
2525
* gunicorn on PyPy
26-
* fastwsgi on CPython
26+
* fastpysgi on CPython
2727
* socketify on CPython
2828

2929
## Test URLs

frameworks/Python/flask/app.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -305,12 +305,12 @@ def run_app():
305305
response_add_date = False
306306
werkzeug.serving.run_simple(opt.host, opt.port, app, use_reloader=use_reloader)
307307

308-
if opt.server == 'fastwsgi':
309-
import fastwsgi
310-
response_server = "FastWSGI"
308+
if opt.server == 'fastpysgi':
309+
import fastpysgi
310+
response_server = "FastPySGI"
311311
response_add_date = False
312-
fastwsgi.server.backlog = 4096
313-
fastwsgi.run(app, host=opt.host, port=opt.port, loglevel=opt.verbose)
312+
fastpysgi.server.backlog = 4096
313+
fastpysgi.run(app, host=opt.host, port=opt.port, loglevel=opt.verbose)
314314

315315
if opt.server == 'socketify':
316316
import socketify

frameworks/Python/flask/benchmark_config.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@
156156
"versus": "wsgi",
157157
"tags": [ ]
158158
},
159-
"fastwsgi": {
159+
"fastpysgi": {
160160
"json_url": "/json-raw",
161161
"plaintext_url": "/plaintext",
162162
"port": 8080,
@@ -168,10 +168,10 @@
168168
"flavor": "Python3",
169169
"orm": "Raw",
170170
"platform": "WSGI",
171-
"webserver": "FastWSGI",
171+
"webserver": "FastPySGI",
172172
"os": "Linux",
173173
"database_os": "Linux",
174-
"display_name": "Flask [FastWSGI]",
174+
"display_name": "Flask [FastPySGI]",
175175
"notes": "",
176176
"versus": "wsgi"
177177
}

frameworks/Python/flask/config.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ platform = "WSGI"
112112
webserver = "Meinheld"
113113
versus = "wsgi"
114114

115-
[fastwsgi]
115+
[fastpysgi]
116116
urls.plaintext = "/plaintext"
117117
urls.json = "/json-raw"
118118
approach = "Realistic"
@@ -122,5 +122,5 @@ database_os = "Linux"
122122
os = "Linux"
123123
orm = "Raw"
124124
platform = "WSGI"
125-
webserver = "FastWSGI"
125+
webserver = "FastPySGI"
126126
versus = "wsgi"

frameworks/Python/flask/flask-fastwsgi.dockerfile renamed to frameworks/Python/flask/flask-fastpysgi.dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ RUN apt-get install libpq-dev python3-dev -y
66

77
WORKDIR /flask
88
COPY ./ /flask
9-
RUN pip3 install -U pip; pip3 install -r /flask/requirements-fastwsgi.txt
9+
RUN pip3 install -U pip; pip3 install -r /flask/requirements-fastpysgi.txt
1010

1111
EXPOSE 8080
1212

1313
ENV USE_UJSON=1
1414
ENV USE_RAW=1
1515

16-
CMD python ./app.py -s fastwsgi
16+
CMD python ./app.py -s fastpysgi
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
-r requirements.txt
2-
fastwsgi==0.0.9
2+
fastpysgi==0.2

0 commit comments

Comments
 (0)