florimondmanca / awesome-asgi

A curated list of awesome ASGI servers, frameworks, apps, libraries, and other resources
Creative Commons Zero v1.0 Universal
1.58k stars 98 forks source link

Added starception #84

Open euri10 opened 2 years ago

euri10 commented 2 years ago

Checklist

What is this project?

this is a exception handler / debugger middlware that displays amazing output in the developement phase

Do you know about other similar projects?

no

If so, how is this one different?


Anyone who agrees with this pull request can add a 👍.

florimondmanca commented 1 year ago

@euri10 Oops, just seeing this now. This looks pretty cool. Instead of "Others", should we initiate a "Debugging" section?

Am I right saying this middleware isn't framework-agnostic "pure ASGI", due to the request.app access here? But it will work with any Starlette-based framework?

I think it could be made framework-agnostic by doing that request.app.debug check safely (ignore if attributes aren't there) and accept a debug flag, e.g. via a parameter on the middleware.

euri10 commented 1 year ago

@euri10 Oops, just seeing this now. This looks pretty cool. Instead of "Others", should we initiate a "Debugging" section?

I'm happy wwith either

Am I right saying this middleware isn't framework-agnostic "pure ASGI", due to the request.app access here? But it will work with any Starlette-based framework?

yep I commented in your issue there, this is starlette only, which is too bad: as a user of "many" frameworks it would be awesome to have at least a common base of asgi "extensions" / "plugins" that stay the same !!