manusimidt / py-xbrl

Python-based parser for parsing XBRL and iXBRL files
https://py-xbrl.readthedocs.io/en/latest/
GNU General Public License v3.0
111 stars 40 forks source link

Connection manager #19

Closed Pablompg closed 3 years ago

Pablompg commented 3 years ago

I have created an abstraction layer on top of requests.get() using a class called ConnectionManager.

This class allows the user to specify how many times to retry a request if it fails. It can also modify the time to wait between retries and the sleeping time after a successful retry. Unittests have yet not been created for this class. I have tried not to modify the original code, but some changes were required.

Pablompg commented 3 years ago

I have added a new commit adding the 503 ERROR to status_forcelist