python-dependency-injector
python-dependency-injector copied to clipboard
ContextVar scope?
Hey there,
I see you have a threadlocal scope provider. However do you have a co-routine local scope provider that would use ContextVars rather than thread locals?
Would that be trivial to implement (happy to do it myself if you think it's a good idea).
Hey @sonthonaxrk. Yep, that's a good idea. I see your PR, thanks for the input.
Thanks @rmk135. I'm running my PR in a little PoC project right now and seeing if there are any kinks that I need to work out. I'll probably find some time on the weekend to tidy it up, make it backwards compatible in a few days and put it in a releasable state :)
Sounds good. I’m on vacation this and following week. Will join you after that.
Best, Roman
On Mar 31, 2021, at 3:01 AM, RK @.***> wrote:
Thanks @rmk135. I'm running my PR in a little PoC project right now and seeing if there are any kinks that I need to work out. I'll probably find some time on the weekend to tidy it up and make it backwards compatible in a few days, and put it in a releasable state :)
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
@rmk135 hey Roman,
I've updated the PR. Things should be working now.
Published on PyPI in version 4.32.0. Many thanks to @sonthonaxrk for giving a life to this provider.
Thanks man. I’ll update the documentation soon.
It seems this can be closed. Am I missing something?
@chbndrhnns This provider still misses the documentation. I'm working on a new release and will include it there. Thanks for the reminder
It seems to me that piece of documentation is still missing.