Add a timeout for waiting for a response from Zenodo
Hi,
I currently using the equilibrator api for some basic thermodynamic calculations, but I am having a sudden problem where instantiating the ComponentContribution class either fails outright due to JSON decode errors or takes >15 minutes to instantiate. I've already downloaded required Zenodo data, so I am not sure what is going on.
The following code is sufficient to demonstrate this error on my end:
from equilibrator_api.component_contribution import ComponentContribution, Q_
cc = ComponentContribution()
Library version is 0.4.3 in a Python 3.7 virtual environment (Windows 10 x64). I poked around the code a little bit and following the execution path suggests to me that the slowdown is coming from when Zenodo is checked to get the hash of the cached data to compare with the locally stored files. Is it possible to avoid that step and just use the cached files without a hash check? I could be mistaken though.
Let me know if you have any questions about the issue that I can clarify.