Asyncio Support #162
-
I am thinking of using this module and I was wondering how friendly it would be with an async application. Is there documented or undocumented support for async? If not, are there plans to add support ? Do you think just invoking the endpoint in a thread pool executor would be sufficient to avoid blocking? The main reason I would want to use this client is code generation and typing. Anyone ever tried sgqlc with async? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Our core does not do I/O, it's more on how to generate the operation string and how to parse the results into an easy to use structure. We do offer some endpoints to make it simpler and none of them use asyncio yet, but it's a matter of writing that code. See https://github.com/profusion/sgqlc/blob/master/sgqlc/endpoint/http.py you may create something like that on top of the asyncio http module. |
Beta Was this translation helpful? Give feedback.
Our core does not do I/O, it's more on how to generate the operation string and how to parse the results into an easy to use structure.
We do offer some endpoints to make it simpler and none of them use asyncio yet, but it's a matter of writing that code. See https://github.com/profusion/sgqlc/blob/master/sgqlc/endpoint/http.py you may create something like that on top of the asyncio http module.