Hi, you could use standard
When writing Python middleware I suggest keeping all the functionality in a separate file, and make it testable on its own. Then provide a file with the hook declarations, etc. This pattern is used in the sample middlewares that we've published.
We would like to optimize the development experience of rich plugins in future releases, so any feedback is appreciated.