Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retryafter fix #164

Open
wants to merge 34 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
3f238d0
Add option to use api_key or access_token in config
hsyyid Oct 12, 2021
3d29e25
added incoming
sehnem Dec 21, 2021
48235d7
bump version
sehnem Dec 21, 2021
a51edc2
Merge pull request #1 from hotgluexyz/feature/inTransit
hsyyid Dec 21, 2021
0b10935
support for shop details
sehnem Dec 24, 2021
5fd38d8
Merge pull request #2 from hotgluexyz/feature/shopDetails
hsyyid Dec 24, 2021
136ad34
added fulfillment
sehnem Jan 7, 2022
f16a027
discount ans price_rule streams
sehnem Jan 10, 2022
022c74f
fix price_rules schema
sehnem Jan 10, 2022
fb5ea57
fix stream
sehnem Jan 13, 2022
bb6a12d
Merge pull request #3 from hotgluexyz/feature/optimizeTap
hsyyid Feb 3, 2022
6c21612
changes on backoff config
sehnem Feb 5, 2022
f2ccf58
increase retries
sehnem Feb 5, 2022
d55d533
Merge pull request #4 from hotgluexyz/fix/retries
hsyyid Feb 5, 2022
9dfb5b8
improve and mute backoff
sehnem Feb 7, 2022
9ee48fb
Merge pull request #5 from hotgluexyz/fix/retries
hsyyid Feb 7, 2022
bacead1
create products events
sehnem Feb 15, 2022
0ea5793
fix replication key for inventory levels
sehnem Feb 24, 2022
9fdc582
Merge pull request #7 from hotgluexyz/fix/inventoryLevelStates
hsyyid Feb 24, 2022
e731f58
fix version number
sehnem Feb 24, 2022
d8b5775
hide gql error print
sehnem Apr 6, 2022
f8270a3
Merge pull request #8 from hotgluexyz/fix/incomingError
hsyyid Apr 6, 2022
38dd59b
added smart collections
sehnem May 12, 2022
e3b9d1e
Merge pull request #9 from hotgluexyz/feature/addCollects
hsyyid May 12, 2022
fb24dc8
fix backoff pagination
sehnem May 23, 2022
1abfbab
fix backoff pagination
sehnem May 23, 2022
bbcb0ce
Merge pull request #10 from hotgluexyz/fix/paginationBackoff
hsyyid May 24, 2022
40ce4da
increase default window size
sehnem Nov 10, 2022
5d2eb96
Remove inventory items filter
sehnem Nov 30, 2022
7d8dd9f
Merge pull request #11 from hotgluexyz/feature/gqlItems
hsyyid Nov 30, 2022
9aad168
added new stream and update shopify library (#12)
AlvaroRaul7 Dec 16, 2022
892d726
make api version configurable (#13)
sehnem Dec 20, 2022
544467e
add sleep time to avoid 2 req per second limit (#14)
keyn4 Apr 18, 2023
9480cdf
Minor firs for 429 backoff
xacadil Apr 19, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.secrets
todo.org
# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ This tap:

## Quick Start

1. Install
1. Install the tap locally

pip install tap-shopify
pip install -e .

2. Create the config file

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@

setup(
name="tap-shopify",
version="1.4.0",
version="1.4.13",
description="Singer.io tap for extracting Shopify data",
author="Stitch",
url="http://github.com/singer-io/tap-shopify",
classifiers=["Programming Language :: Python :: 3 :: Only"],
python_requires='>=3.5.2',
py_modules=["tap_shopify"],
install_requires=[
"ShopifyAPI==8.4.1",
"ShopifyAPI==12.1.0",
"singer-python==5.12.1",
],
extras_require={
Expand Down
11 changes: 8 additions & 3 deletions tap_shopify/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import time
import math
import copy
import logging

import pyactiveresource
import shopify
Expand All @@ -14,16 +15,20 @@
from singer import Transformer
from tap_shopify.context import Context
from tap_shopify.exceptions import ShopifyError
from tap_shopify.streams.base import shopify_error_handling
import tap_shopify.streams # Load stream objects into Context

REQUIRED_CONFIG_KEYS = ["shop", "api_key"]
REQUIRED_CONFIG_KEYS = ["shop"]
LOGGER = singer.get_logger()
SDC_KEYS = {'id': 'integer', 'name': 'string', 'myshopify_domain': 'string'}

logging.getLogger('backoff').setLevel(logging.CRITICAL)

@shopify_error_handling
def initialize_shopify_client():
api_key = Context.config['api_key']
api_key = Context.config.get('access_token', Context.config.get("api_key"))
shop = Context.config['shop']
version = '2021-04'
version = Context.config.get('api_version', '2022-04')
session = shopify.Session(shop, version, api_key)
shopify.ShopifyResource.activate_session(session)
# Shop.current() makes a call for shop details with provided shop and api_key
Expand Down
Loading