flagsmith-python-client icon indicating copy to clipboard operation
flagsmith-python-client copied to clipboard

Make the SDK Async-friendly

Open dabeeeenster opened this issue 2 years ago • 1 comments
trafficstars

If folk want to use this SDK in an async/non-blocking environment like FastAPI they will not have a good time. We should move to using async-friendly libraries.

dabeeeenster avatar Sep 05 '23 12:09 dabeeeenster

I like how sync and async clients are created in encode/httpx https://github.com/encode/httpx/blob/master/httpx/_client.py. Something similar can be used here, the only thing concerning would be a lot of duplicated codes, doc strings for Sync and async clients, but I don't think there are any workarounds for that.

tushar5526 avatar Jan 19 '24 09:01 tushar5526