If you are using Python Shopify API
and getting following error
"Exceeded 4 calls per second for api client. Reduce request rates to resume uninterrupted service."
but want your script to continue working with some timeout after that,
you can use following script from shopify_limits_patch.py
.
For that just copy shopify_limits_patch.py
to your project and import shopify_limits_patch
.
Or if you want to call it implicitly import it, remove last line patch_shopify_with_limits()
and call it before all your shopify calls.
This is solution for issue described here: Shopify/shopify_python_api#256
If you have any suggestions for code - leave comment :)
It works perfectly in late 2024, the only change i made is
I created a shopify_patched module, and inside the init file, i added
To import the library, i replaced all:
with
Is that correct?