On Wed, 12 Dec 2018 at 17:21, Richard Duivenvoorde <rdmaili...@duif.net> wrote: > > On 12/12/18 5:55 AM, shiva reddy wrote: > > Hi, > > I have used 'requests' library to access web resources in my plugin. > > I am wondering if I should migrate to any QGIS core library instead ? > > If yes would appreciate getting any cheat sheet. > > Hi Shiva, > > there is no python core lib yet, but I often pull the > Boundles/Alessandro/Luigi's one from here: > > https://github.com/boundlessgeo/lib-qgis-commons/blob/master/qgiscommons2/network/networkaccessmanager.py > > For now I copy it in my plugins, but I'm very much in favour of adding > some python core/common libs to QGIS so everybody uses the same/right > way of doing http(s) stuff (meaning: using the proxy from settings etc)
That's what this (WIP) does: https://github.com/qgis/QGIS/pull/8440 Nyall _______________________________________________ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer