Skip to content

Commit 3d474c8

Browse files
committed
added some helpers (retry, load_all_pages, key_maker)
added rate_limit to ApiResponse
1 parent 4206333 commit 3d474c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name='python-amazon-sp-api',
5-
version='0.6.1',
5+
version='0.6.2',
66
install_requires=[
77
"requests",
88
"six~=1.15.0",

sp_api/util/load_all_pages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
def make_sleep_time(rate_limit):
5-
return 1 / rate_limit
5+
return 1 / float(rate_limit)
66

77

88
def load_all_pages(throttle_by_seconds: float = 2, next_token_param='NextToken', use_rate_limit_header: bool = False):

0 commit comments

Comments
 (0)