HTTPX is a much more modern HTTP library than requests, it is higher performance, supports async/await, supports HTTP/2, and supports steaming large responses (in sync or async mode).
The downside is the httpx library is larger in size and has more dependencies to pull in than requests does.
Related to #157
I think switching from requests to httpx would open the door to a bunch of features in SparqlWrapper, including better Session support, streaming requests and streaming responses, and multiple parallel queries.
Opinions? @edmondchuc @nicholascar
HTTPX is a much more modern HTTP library than
requests, it is higher performance, supports async/await, supports HTTP/2, and supports steaming large responses (in sync or async mode).The downside is the
httpxlibrary is larger in size and has more dependencies to pull in thanrequestsdoes.Related to #157
I think switching from
requeststohttpxwould open the door to a bunch of features in SparqlWrapper, including better Session support, streaming requests and streaming responses, and multiple parallel queries.Opinions? @edmondchuc @nicholascar