Create WSGI middleware

Open
#1,260 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
32/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
backend

Research direction

Start by reviewing the ASGI middleware from PR #1113 and the legacy implementation in src/reactpy/backend/flask.py. Check how simple_websocket can provide websocket communication under WSGI, then investigate a cross-platform test server such as fastwsgi and its compatibility. Done means ReactPy has WSGI support with websocket coverage in the test suite.

Written by the indexing model from the issue text.

Description

priority-2-moderate
Current Situation

We have a PR that added ASGI middleware. This PR did not include WSGI middleware to limit scope. However, it is technologically possible for us to run on WSGI.

Proposed Actions

Add WSGI support to ReactPy, which will involve utilizing the simple_websocket package for websocket communication.

We used to have this support for WSGI in our legacy flask backend. WSGI middleware design might take some inspiration from this legacy design.

We will need a cross-platform wsgi webserver for our test suite, but they are unfortunately kind of rare. We might be able to use fastwsgi if it supports simple_websocket.

Dominant language
Python
Stars
8.1k
Forks
332
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from reactive-python/reactpy

All issues in reactive-python/reactpy

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.