You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openserverless.apache.org by "sciabarracom (via GitHub)" <gi...@apache.org> on 2025/07/03 11:59:42 UTC

[I] Implement an adapter to run Python wsgi based applications [openserverless]

sciabarracom opened a new issue, #148:
URL: https://github.com/apache/openserverless/issues/148

   At the moment we mostly deploy "functions", however many python applications are wsgi servers (flask and fastapi for example)
   
   It is possible to implement an adapter that can run wsgi based applications as functions so you can deploy as functions many microframework applications


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@openserverless.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [help-wanted] Implement an adapter to run Python wsgi based applications [openserverless]

Posted by "94lama (via GitHub)" <gi...@apache.org>.
94lama commented on issue #148:
URL: https://github.com/apache/openserverless/issues/148#issuecomment-4583137722

   Hi, I sent the PR for this issue few days ago


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@openserverless.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [help-wanted] Implement an adapter to run Python wsgi based applications [openserverless]

Posted by "med2004x (via GitHub)" <gi...@apache.org>.
med2004x commented on issue #148:
URL: https://github.com/apache/openserverless/issues/148#issuecomment-3946209783

   Hi team,
   
   This request to add a WSGI adapter so that Flask or FastAPI applications can be deployed as functions caught my eye. I work primarily on backend and systems projects, and have built microservice platforms using FastAPI, Flask and Django (e.g. eSook and Humanly), often integrating them into heterogeneous stacks with Go and Rust. I've implemented ASGI/WSGI bridges before to expose APIs in distributed environments, and I'd be happy to help build out a WSGI adapter for OpenServerless.
   
   If you already have a target API or specification for the adapter, feel free to share it; otherwise I can draft a proposal that wraps a WSGI app into an ASGI-compatible handler suitable for your runtime. Thanks for your work on this project and looking forward to contributing.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@openserverless.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [help-wanted] Implement an adapter to run Python wsgi based applications [openserverless]

Posted by "94lama (via GitHub)" <gi...@apache.org>.
94lama commented on issue #148:
URL: https://github.com/apache/openserverless/issues/148#issuecomment-4583210148

   Sure! I left the comment just to update the thread to update also the contributors who are not registered in the Apache mail service 😊


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@openserverless.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [help-wanted] Implement an adapter to run Python wsgi based applications [openserverless]

Posted by "ane1990 (via GitHub)" <gi...@apache.org>.
ane1990 commented on issue #148:
URL: https://github.com/apache/openserverless/issues/148#issuecomment-3268988230

   hi @94lama ,
   i was able to test the app deploying this action 'wsgi-test' under mastrogpt package, using this snippet:
   ```
   #--docker registry.hub.docker.com/94lama/openserverless-runtime-python:latest
   #--web true
   
   import json
   from flask import Flask, request
   from hello import hello
   
   app = Flask(__name__)
   
   @app.route("/")
   def home():
       return "Hello, world!"
   
   @app.route("/hello")
   def salute():
       return hello()
   
   @app.route("/post", methods=["POST"])
   def post():
       return json.dumps(request.json)
   
   @app.route("/test")
   def test():
       name = request.args.get("name", "No name")
       return f"Test: {name}"
   ```
   some results from my tests:
   
   GET https://aanelli.openserverless.dev/api/my/mastrogpt/wsgi-test/ -> **test ok**
   GET https://aanelli.openserverless.dev/api/my/mastrogpt/wsgi-test/hello -> **test ok**
   GET https://aanelli.openserverless.dev/api/my/mastrogpt/wsgi-test/test -> **test ok**
   GET https://aanelli.openserverless.dev/api/my/mastrogpt/wsgi-test/test?name=alberto -> *test ok**
   GET https://aanelli.openserverless.dev/api/my/mastrogpt/wsgi-test/test?name=pippo-> **test KO, receiving old value 'alberto' from prev request**
   POST https://aanelli.openserverless.dev/api/my/mastrogpt/wsgi-test/post --> **test KO method not allowed **
   `curl --location --request POST 'https://aanelli.openserverless.dev/api/my/mastrogpt/wsgi-test/post'`
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@openserverless.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [help-wanted] Implement an adapter to run Python wsgi based applications [openserverless]

Posted by "94lama (via GitHub)" <gi...@apache.org>.
94lama commented on issue #148:
URL: https://github.com/apache/openserverless/issues/148#issuecomment-3258394233

   I'm working on the implementation for a Flask application. The image url is the following:
   registry.hub.docker.com/94lama/openserverless-runtime-python:latest
   
   To use it it is necessary to:
   - create a __main__.py file in the main directory, which imports app
   - use the flag "--docker registry.hub.docker.com/94lama/openserverless-runtime-python:latest"


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@openserverless.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [help-wanted] Implement an adapter to run Python wsgi based applications [openserverless]

Posted by "msciab (via GitHub)" <gi...@apache.org>.
msciab commented on issue #148:
URL: https://github.com/apache/openserverless/issues/148#issuecomment-4583145207

   Hello Ricardo Thank you we are reviewing it but our priorità is the source release we will be acl soon


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@openserverless.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org