Xqt created this task. Xqt added projects: Pywikibot, Performance Issue. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION **Feature summary**: Use only one entry point for all http requests. Due to T68102 <https://phabricator.wikimedia.org/T68102> all http requests should be make through `pywikibot.comms.http` but there might me reasons to use the underlying `requests` package within framework or scripts. Related modules can be found here <https://codesearch.wmcloud.org/pywikibot/?q=import+requests%7Cfrom+requests+import&files=&excludeFiles=&repos=>. **Use case(s)**: There are other http libraries which can be used instead of `request`. Having only one central entry point for the underlying http module enables to switch from one module to an other if the API is simular or use it as an alternative. This can be done like: try: import httpx as requests except ImportError: import requests **Benefits**: `httpx` may be a good candidate because in addition to the synchonous processing it also supports asynconous coroutines which may help to implement concurrent processing for I/Os which are not treat save. This would help to solve T57889 <https://phabricator.wikimedia.org/T57889> or more special T314121 <https://phabricator.wikimedia.org/T314121>. TASK DETAIL https://phabricator.wikimedia.org/T334053 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Aklapper, Xqt, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Framawiki, Vali.matei, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Dinoguy1000, jayvdb, Masti, Alchimista, Jay8g
_______________________________________________ pywikibot-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected]
