falcon
falcon copied to clipboard
Development server
(Copied by @vytas7 from the first comment of #1056 )
The updraft development server: https://github.com/falconry/updraft
Desired Features:
- Auto-reload
- Full pdb support
- Legible Tracebacks
Notes:
- Should probably log out a note about this being a development server.
It would be great to have a nice debugging/dev server that you can use to auto-reload, break into a REPL, etc.
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.
Something else that might be useful (TBD): https://github.com/jonathanslenders/python-prompt-toolkit
+1
I'll take a look at this. I'll probably be slow at it though. :-)
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.