Pyramid Dependency Injection to expose python class/types #3765
eisenhaus335
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, Pyramid do not have kind of interface to expose python types. Although, Zope Interface could be used for certain functionality. It seems perhaps unable to do other common python framework could do, like for example Litestar and Sanic. By using dependency injection, it could use Pyramid Registry to expose typing without
request.db
and guessing the return valueI don't know how to introduce this into Pyramid so I just give the idea. Maybe the idea could fit well for Pyramid or no. I am bit skeptical though as doing this maybe involve tinkering with the codebase but maybe i put this for idea discussion
Beta Was this translation helpful? Give feedback.
All reactions