Skip to content

23.16.0

Compare
Choose a tag to compare
@hynek hynek released this 14 Aug 08:43
· 257 commits to main since this release
23.16.0
b3c9b73

Added

  • enter keyword argument to all register_(value|factory)(). It prevents svcs from entering context managers if the factory returns one. This is useful for context managers like database transactions that you want to start manually.

  • Services acquired using aget() now also can receive the current container if they take one argument that is named svcs_container or that is annotated as being svcs.Container and has any name.