hyperledger / aries-cloudagent-python

Hyperledger Aries Cloud Agent Python (ACA-Py) is a foundation for building decentralized identity applications and services running in non-mobile environments.
https://wiki.hyperledger.org/display/aries
Apache License 2.0
403 stars 510 forks source link

Use contextvars for managing dependency injection #1388

Open andrewwhitehead opened 3 years ago

andrewwhitehead commented 3 years ago

If we increase the minimum required Python version to 3.7, then we can support the use of contextvars. I'm not sure what an implementation would look like yet, but this should allow us to easily inject dependencies without explicitly passing in Context-type objects every time.

esune commented 8 months ago

I believe the minimum version supported by ACA-Py is currently 3.9: what work would be required to complete this issue, a refactor of the current code?

WadeBarnes commented 8 months ago

Correct min supported python version for ACA-Py is 3.9