vgdev/stable/: shopify-python-api-patcher-0.0.3 metadata and description
Shopify python api helper.
author | Neal Wong |
author_email | neal.wkacc@gmail.com |
classifiers |
|
keywords | shopify python api |
license | MIT |
requires_dist |
|
Because this project isn't in the mirror_whitelist
,
no releases from root/pypi are included.
File | Tox results | History |
---|---|---|
shopify_python_api_patcher-0.0.3-py2.py3-none-any.whl
|
|
shopify_python_api_patcher
=====================
A library aims to make using ShopifyAPI library easier with error handling.
Error handling strategy:
* Maximum error retry times can be customized via shopify_python_api_patcher.max_retries, default is 12
* When BadRequest, UnauthorizedAccess, ForbiddenAccess, ResourceNotFound, MethodNotAllowed, ResourceConflict, ResourceInvalid happens, raise exception immediately
* When ServerError happens, retry until max_retries
* When ClientError happens, errors with code 429 and 104 will retry until max_retries, all other errors will be raised immediately
* When ConnectionError or pyactiveresource.formats.Error happens, try to reset connection and retry
* When SocketError happens, if connection is disconnected, try to reset connection and retry, otherwise, error will be raised immediately
Installation
-------------
The simplest way is to install it via `devpi`:
devpi install shopify_python_api_patcher
Usage
-------------
Just import and you are ready to go!
```python
import shopify_python_api_patcher
```
Run Test
-------------
`pip install -r requirements-dev.txt`
`tox`
Render warnings:
<string>:2: (WARNING/2) Title underline too short.
shopify_python_api_patcher
=====================
=====================
A library aims to make using ShopifyAPI library easier with error handling.
Error handling strategy:
* Maximum error retry times can be customized via shopify_python_api_patcher.max_retries, default is 12
* When BadRequest, UnauthorizedAccess, ForbiddenAccess, ResourceNotFound, MethodNotAllowed, ResourceConflict, ResourceInvalid happens, raise exception immediately
* When ServerError happens, retry until max_retries
* When ClientError happens, errors with code 429 and 104 will retry until max_retries, all other errors will be raised immediately
* When ConnectionError or pyactiveresource.formats.Error happens, try to reset connection and retry
* When SocketError happens, if connection is disconnected, try to reset connection and retry, otherwise, error will be raised immediately
Installation
-------------
The simplest way is to install it via `devpi`:
devpi install shopify_python_api_patcher
Usage
-------------
Just import and you are ready to go!
```python
import shopify_python_api_patcher
```
Run Test
-------------
`pip install -r requirements-dev.txt`
`tox`
Render warnings:
<string>:2: (WARNING/2) Title underline too short.
shopify_python_api_patcher
=====================