This pull request adds async support to pyDataverse based on the previously merged switch from requests to httpx. Asynchronous requests significantly improve pyDataverse's performance by using concurrent requests. The implementation provides a seamless usage to work either sync or async by the usage of a context manager.
Changes this PR introduces
This pull request adds async support to pyDataverse based on the previously merged switch from
requests
tohttpx
. Asynchronous requests significantly improve pyDataverse's performance by using concurrent requests. The implementation provides a seamless usage to work either sync or async by the usage of a context manager.Small benchmark
api/info/version
to demo.dataverse.orgOverview
_sync_request
and_async_request
base methodsAPI
to enable async requestsExample
Synchronous
Asynchronous