falconry / falcon

The no-magic web data plane API and microservices framework for Python developers, with a focus on reliability, correctness, and performance at scale.
https://falcon.readthedocs.io/en/stable/
Apache License 2.0
9.51k stars 937 forks source link

Development server #25

Open kgriffs opened 11 years ago

kgriffs commented 11 years ago

(Copied by @vytas7 from the first comment of #1056 )

The updraft development server: https://github.com/falconry/updraft

Desired Features:

Notes:

kgriffs commented 11 years ago

It would be great to have a nice debugging/dev server that you can use to auto-reload, break into a REPL, etc.

kgriffs commented 10 years ago

From IRC:

xris: has any thought been given to some sort of debug middleware like other frameworks provide? xris: I've been playing with pycharm's debugger today (looks like a variation of pydev for eclipse) and it'd be easy to add as middleware, but I'm wondering if a pluggable sort of thing built into falcon might be useful.

kgriffs commented 9 years ago

Something else that might be useful (TBD): https://github.com/jonathanslenders/python-prompt-toolkit

kevinisaac commented 9 years ago

+1

csojinb commented 9 years ago

I'll take a look at this. I'll probably be slow at it though. :-)

vytas7 commented 4 years ago

Normally, it would be unclear if this provides much value over just using Gunicorn (autoreload is supported) or similar as a debugging server.

However, now that we are going to support both WSGI and ASGI, could it be worth revisiting this? We could combine wsgiref and asgiref into one tool that would automatically recognize which flavour of Falcon (or a non-Falcon app, for that matter) we're dealing with, and would start serving accordingly.