vtexpy 0.0.0b32__tar.gz → 0.0.0b33__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of vtexpy might be problematic. Click here for more details.
- {vtexpy-0.0.0b32 → vtexpy-0.0.0b33}/PKG-INFO +1 -1
- {vtexpy-0.0.0b32 → vtexpy-0.0.0b33}/pyproject.toml +1 -1
- {vtexpy-0.0.0b32 → vtexpy-0.0.0b33}/vtex/_api/base.py +0 -8
- {vtexpy-0.0.0b32 → vtexpy-0.0.0b33}/vtex/_api/orders.py +2 -2
- {vtexpy-0.0.0b32 → vtexpy-0.0.0b33}/vtex/_api/payments_gateway.py +1 -1
- {vtexpy-0.0.0b32 → vtexpy-0.0.0b33}/LICENSE +0 -0
- {vtexpy-0.0.0b32 → vtexpy-0.0.0b33}/README.md +0 -0
- {vtexpy-0.0.0b32 → vtexpy-0.0.0b33}/vtex/__init__.py +0 -0
- {vtexpy-0.0.0b32 → vtexpy-0.0.0b33}/vtex/_api/__init__.py +0 -0
- {vtexpy-0.0.0b32 → vtexpy-0.0.0b33}/vtex/_api/catalog.py +0 -0
- {vtexpy-0.0.0b32 → vtexpy-0.0.0b33}/vtex/_api/checkout.py +0 -0
- {vtexpy-0.0.0b32 → vtexpy-0.0.0b33}/vtex/_api/custom.py +0 -0
- {vtexpy-0.0.0b32 → vtexpy-0.0.0b33}/vtex/_api/license_manager.py +0 -0
- {vtexpy-0.0.0b32 → vtexpy-0.0.0b33}/vtex/_api/logistics.py +0 -0
- {vtexpy-0.0.0b32 → vtexpy-0.0.0b33}/vtex/_api/master_data.py +0 -0
- {vtexpy-0.0.0b32 → vtexpy-0.0.0b33}/vtex/_api/pricing.py +0 -0
- {vtexpy-0.0.0b32 → vtexpy-0.0.0b33}/vtex/_api/promotions_and_taxes.py +0 -0
- {vtexpy-0.0.0b32 → vtexpy-0.0.0b33}/vtex/_api/types/__init__.py +0 -0
- {vtexpy-0.0.0b32 → vtexpy-0.0.0b33}/vtex/_api/types/catalog.py +0 -0
- {vtexpy-0.0.0b32 → vtexpy-0.0.0b33}/vtex/_api/types/generic.py +0 -0
- {vtexpy-0.0.0b32 → vtexpy-0.0.0b33}/vtex/_api/types/license_manager.py +0 -0
- {vtexpy-0.0.0b32 → vtexpy-0.0.0b33}/vtex/_config.py +0 -0
- {vtexpy-0.0.0b32 → vtexpy-0.0.0b33}/vtex/_constants.py +0 -0
- {vtexpy-0.0.0b32 → vtexpy-0.0.0b33}/vtex/_dto.py +0 -0
- {vtexpy-0.0.0b32 → vtexpy-0.0.0b33}/vtex/_exceptions.py +0 -0
- {vtexpy-0.0.0b32 → vtexpy-0.0.0b33}/vtex/_logging.py +0 -0
- {vtexpy-0.0.0b32 → vtexpy-0.0.0b33}/vtex/_sentinels.py +0 -0
- {vtexpy-0.0.0b32 → vtexpy-0.0.0b33}/vtex/_types.py +0 -0
- {vtexpy-0.0.0b32 → vtexpy-0.0.0b33}/vtex/_utils.py +0 -0
- {vtexpy-0.0.0b32 → vtexpy-0.0.0b33}/vtex/_vtex.py +0 -0
- {vtexpy-0.0.0b32 → vtexpy-0.0.0b33}/vtex/py.typed +0 -0
|
@@ -129,7 +129,6 @@ class BaseAPI:
|
|
|
129
129
|
and not rate_limiter.test(rate_limit, rate_limit_key)
|
|
130
130
|
):
|
|
131
131
|
sleep(1)
|
|
132
|
-
self.logger.info(f"{rate_limiter} limited {rate_limit_key}")
|
|
133
132
|
|
|
134
133
|
try:
|
|
135
134
|
response = client.request(
|
|
@@ -146,13 +145,6 @@ class BaseAPI:
|
|
|
146
145
|
finally:
|
|
147
146
|
if rate_limit and rate_limit_key and rate_limiter:
|
|
148
147
|
rate_limiter.hit(rate_limit, rate_limit_key)
|
|
149
|
-
remaining = rate_limiter.get_window_stats(
|
|
150
|
-
rate_limit,
|
|
151
|
-
rate_limit_key,
|
|
152
|
-
).remaining
|
|
153
|
-
self.logger.info(
|
|
154
|
-
f"Remaining requests for {rate_limit_key}: {remaining}",
|
|
155
|
-
)
|
|
156
148
|
|
|
157
149
|
response.request.headers = Headers(
|
|
158
150
|
redact_headers(dict(response.request.headers)),
|
|
@@ -88,7 +88,7 @@ class OrdersAPI(BaseAPI):
|
|
|
88
88
|
environment=self.ENVIRONMENT,
|
|
89
89
|
params=params,
|
|
90
90
|
config=self.client.config.with_overrides(**kwargs),
|
|
91
|
-
rate_limit=parse("
|
|
91
|
+
rate_limit=parse("1800 per minute"),
|
|
92
92
|
rate_limit_key=f"{self.client.config.account_name}:orders",
|
|
93
93
|
response_class=VTEXPaginatedItemsResponse[Any, Any],
|
|
94
94
|
)
|
|
@@ -105,7 +105,7 @@ class OrdersAPI(BaseAPI):
|
|
|
105
105
|
endpoint=f"/api/oms/pvt/orders/{order_id}",
|
|
106
106
|
environment=self.ENVIRONMENT,
|
|
107
107
|
config=self.client.config.with_overrides(**kwargs),
|
|
108
|
-
rate_limit=parse("
|
|
108
|
+
rate_limit=parse("5800 per minute"),
|
|
109
109
|
rate_limit_key=f"{self.client.config.account_name}:orders",
|
|
110
110
|
response_class=VTEXDataResponse[Any],
|
|
111
111
|
)
|
|
@@ -37,7 +37,7 @@ class PaymentsGatewayAPI(BaseAPI):
|
|
|
37
37
|
endpoint=f"/api/pvt/transactions/{transaction_id}/interactions",
|
|
38
38
|
environment=self.ENVIRONMENT,
|
|
39
39
|
config=self.client.config.with_overrides(**kwargs),
|
|
40
|
-
rate_limit=parse("
|
|
40
|
+
rate_limit=parse("3800 per minute"),
|
|
41
41
|
rate_limit_key=(
|
|
42
42
|
f"{self.client.config.account_name}:transaction_interactions"
|
|
43
43
|
),
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|