Replies: 1 comment 1 reply
-
Hm, I'm afraid there isn't a better way, since mapping functionality on import symbols are kinda the whole point of integrations. Quart is a bit of a special case, but the complexity would not be worth it. Generally speaking, I'm not enthusiastic in adding more integrations to svcs for web frameworks that I don't use. My preferred way would be if you went the route of Django and litestar and put it separately. Otherwise I would have to beg you for help every time something inevitably breaks. I'm happy to provide help in doing so – getting packages on PyPI is not that big of a deal anymore! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Quart is an async port of Flask which these days has been largely integrated into the same codebase, albeit with different imports etc. We use Quart for an internal API service, and I was looking at whether svcs might be something we could use to bring our test mocking under control. I tried using the flask integration, but that doesn't work for us since the integration imports the
flask
objects directly. As an experiment, I created a new quart integration basically using copy/paste/search/replace of flask with quart, which seemed to work fine - the two are very much like-for-like.So my question is whether there's a better way to do this, and indeed whether there may be an option to make this available within svcs itself to ensure support going forward?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions