Hi Mikko, I use colander, cornice and cornice-swagger packages with Pyramid. They allow schema verification and validation, and OpenAPI specification generation...
Best regards, Thierry -- https://www.ulthar.net -- http://pyams.readthedocs.io Le ven. 4 oct. 2024 à 09:58, Mikko Ohtamaa <[email protected]> a écrit : > > >> On the minus side, the dependency injection system seemed far from clear >> to me. But the two biggest problems, for my needs, were: >> >> - FastAPI doesn't offer rich security policies (the security system in >> Pyramid is based on Zope's, with roles, permissions, ACLs, route factories, >> contexts, etc.). Itonly offers "Oauth2 scopes", which can represent global >> permissions. So, no contextual permissions, workflows, etc, at least not >> with a substantial amount of work. >> >> - FastAPI doesn't seem to allow application composition the way Pyramid >> does (the exact term in the Pyramid docs is "extending an application") >> > > Would it be possible to mix the best parts of FastAPI and Pyramid? > > - FastAPI for schema generation and validation > - Pyramid as a web server and routing > > As pointed our earlier, FastAPI uses Starlette web server. Would we be > able to replace Starlette with Pyramid? > > Or more generally: > > Do we have any OpenAPI specification (YAML, JSON) generation tools from > Pyramid endpoints? (As discussed earlier, we have the opposite, manually > writing YAML and then importing it through pyramid_openapi3). > > Br, > Mikko > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/pylons-discuss/CAK8RCUtrjtxH3dneehNu9mQzz28s4G3g1gMvu1iC1ziFrR6afg%40mail.gmail.com > <https://groups.google.com/d/msgid/pylons-discuss/CAK8RCUtrjtxH3dneehNu9mQzz28s4G3g1gMvu1iC1ziFrR6afg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/CAPX_VWBJPmidWB8mikF5MWUMdG0fjTAp%3DPWLRvXqsV9ZQWf4RQ%40mail.gmail.com.
