The MW API lacks support for asynchronous frameworks. We would like to add support for asynchronous functionality to mwapi using the asynchronous HTTP client/server aiohttp.
For revscoring models, with the implementation of the MWAPI HTTP cache to the api extractor (https://github.com/wikimedia/revscoring/pull/522), we can fetch data from the MediaWiki API asynchronously and populate the MWAPICache object, to prevent calling the blocking mwapi Session.
For non-revscoring models like outlink-topic model, we can simply change the blocking mwapi Session to the non-blocking mwapi AsyncSession to fetch data asynchronously.
PR: https://github.com/mediawiki-utilities/python-mwapi/pull/46