ChillarAnand / avilpage.com

Personal & Tech Blog
https://avilpage.com
4 stars 2 forks source link

Betamax vs requests_cache #9

Closed sdementen closed 3 years ago

sdementen commented 6 years ago

For a better control, you can use betamax to record and replay API calls. Betamax also allows to avoid storing passwords/API keys/...

ChillarAnand commented 6 years ago

@sdementen Thank you for suggesting betamax. It also seems to have integration with pytest. Will try it out.

sdementen commented 6 years ago

Learning curve a bit higher than requests_cache but is worth the investment. But requests_cache is nice when using an API in a script and not wanting to trigger a real call when in development/iteration mode (because slow, expensive, hitting a quota,...)

ChillarAnand commented 3 years ago

Thanks, @sdementen