vgdev/stable/: shopify-python-api-patcher-0.0.3 metadata and description

Homepage Simple index

Shopify python api helper.

author Neal Wong
author_email neal.wkacc@gmail.com
classifiers
  • Development Status :: 3 - Alpha
  • Intended Audience :: Developers
  • License :: OSI Approved :: MIT License
  • Natural Language :: English
  • Operating System :: OS Independent
  • Programming Language :: Python :: 2
  • Programming Language :: Python :: 2.7
  • Programming Language :: Python :: 3
  • Programming Language :: Python :: 3.4
  • Programming Language :: Python :: 3
  • Programming Language :: Python :: 3.5
  • Programming Language :: Python :: 3
  • Programming Language :: Python :: 3.6
  • Programming Language :: Python :: 3.7
  • Programming Language :: Python :: Implementation :: CPython
  • Topic :: Software Development :: Libraries :: Python Modules
  • Topic :: Utilities
keywords shopify python api
license MIT
requires_dist
  • ShopifyAPI
  • wrapt

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
Size
5 KB
Type
Python Wheel
Python
2.7
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
=====================