vtexpy 0.0.0b22__tar.gz → 0.0.0b24__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.
- {vtexpy-0.0.0b22 → vtexpy-0.0.0b24}/PKG-INFO +1 -1
- {vtexpy-0.0.0b22 → vtexpy-0.0.0b24}/pyproject.toml +1 -1
- {vtexpy-0.0.0b22 → vtexpy-0.0.0b24}/vtex/_constants.py +2 -8
- {vtexpy-0.0.0b22 → vtexpy-0.0.0b24}/vtex/_vtex.py +7 -1
- {vtexpy-0.0.0b22 → vtexpy-0.0.0b24}/LICENSE +0 -0
- {vtexpy-0.0.0b22 → vtexpy-0.0.0b24}/README.md +0 -0
- {vtexpy-0.0.0b22 → vtexpy-0.0.0b24}/vtex/__init__.py +0 -0
- {vtexpy-0.0.0b22 → vtexpy-0.0.0b24}/vtex/_api/__init__.py +0 -0
- {vtexpy-0.0.0b22 → vtexpy-0.0.0b24}/vtex/_api/base.py +0 -0
- {vtexpy-0.0.0b22 → vtexpy-0.0.0b24}/vtex/_api/catalog.py +0 -0
- {vtexpy-0.0.0b22 → vtexpy-0.0.0b24}/vtex/_api/checkout.py +0 -0
- {vtexpy-0.0.0b22 → vtexpy-0.0.0b24}/vtex/_api/custom.py +0 -0
- {vtexpy-0.0.0b22 → vtexpy-0.0.0b24}/vtex/_api/license_manager.py +0 -0
- {vtexpy-0.0.0b22 → vtexpy-0.0.0b24}/vtex/_api/logistics.py +0 -0
- {vtexpy-0.0.0b22 → vtexpy-0.0.0b24}/vtex/_api/master_data.py +0 -0
- {vtexpy-0.0.0b22 → vtexpy-0.0.0b24}/vtex/_api/orders.py +0 -0
- {vtexpy-0.0.0b22 → vtexpy-0.0.0b24}/vtex/_api/payments_gateway.py +0 -0
- {vtexpy-0.0.0b22 → vtexpy-0.0.0b24}/vtex/_api/promotions_and_taxes.py +0 -0
- {vtexpy-0.0.0b22 → vtexpy-0.0.0b24}/vtex/_api/types/__init__.py +0 -0
- {vtexpy-0.0.0b22 → vtexpy-0.0.0b24}/vtex/_api/types/catalog.py +0 -0
- {vtexpy-0.0.0b22 → vtexpy-0.0.0b24}/vtex/_api/types/generic.py +0 -0
- {vtexpy-0.0.0b22 → vtexpy-0.0.0b24}/vtex/_api/types/license_manager.py +0 -0
- {vtexpy-0.0.0b22 → vtexpy-0.0.0b24}/vtex/_config.py +0 -0
- {vtexpy-0.0.0b22 → vtexpy-0.0.0b24}/vtex/_dto.py +0 -0
- {vtexpy-0.0.0b22 → vtexpy-0.0.0b24}/vtex/_exceptions.py +0 -0
- {vtexpy-0.0.0b22 → vtexpy-0.0.0b24}/vtex/_logging.py +0 -0
- {vtexpy-0.0.0b22 → vtexpy-0.0.0b24}/vtex/_sentinels.py +0 -0
- {vtexpy-0.0.0b22 → vtexpy-0.0.0b24}/vtex/_types.py +0 -0
- {vtexpy-0.0.0b22 → vtexpy-0.0.0b24}/vtex/_utils.py +0 -0
- {vtexpy-0.0.0b22 → vtexpy-0.0.0b24}/vtex/py.typed +0 -0
|
@@ -18,7 +18,6 @@ TIMEOUT_ENV_VAR = "VTEX_TIMEOUT"
|
|
|
18
18
|
RETRY_ATTEMPTS_ENV_VAR = "VTEX_RETRY_ATTEMPTS"
|
|
19
19
|
RETRY_BACKOFF_MIN_ENV_VAR = "VTEX_RETRY_BACKOFF_MIN"
|
|
20
20
|
RETRY_BACKOFF_MAX_ENV_VAR = "VTEX_RETRY_BACKOFF_MAX"
|
|
21
|
-
RETRY_BACKOFF_EXPONENTIAL_ENV_VAR = "VTEX_RETRY_BACKOFF_EXPONENTIAL"
|
|
22
21
|
RETRY_STATUSES_ENV_VAR = "VTEX_RETRY_STATUSES"
|
|
23
22
|
RAISE_FOR_STATUS_ENV_VAR = "VTEX_RAISE_FOR_STATUS"
|
|
24
23
|
LOG_RETRIES_ENV_VAR = "VTEX_LOG_RETRIES"
|
|
@@ -29,11 +28,10 @@ LOG_4XX_ENV_VAR = "VTEX_LOG_4XX"
|
|
|
29
28
|
LOG_5XX_ENV_VAR = "VTEX_LOG_5XX"
|
|
30
29
|
|
|
31
30
|
DEFAULT_TIMEOUT = MINUTE
|
|
32
|
-
DEFAULT_RETRY_ATTEMPTS =
|
|
31
|
+
DEFAULT_RETRY_ATTEMPTS = 10
|
|
33
32
|
DEFAULT_RETRY_BACKOFF_MIN = SECOND
|
|
34
33
|
DEFAULT_RETRY_BACKOFF_MAX = MINUTE
|
|
35
34
|
DEFAULT_RETRY_STATUSES = [
|
|
36
|
-
401,
|
|
37
35
|
407,
|
|
38
36
|
408,
|
|
39
37
|
409,
|
|
@@ -55,7 +53,6 @@ DEFAULT_LOG_3XX = INFO
|
|
|
55
53
|
DEFAULT_LOG_4XX = WARNING
|
|
56
54
|
DEFAULT_LOG_5XX = WARNING
|
|
57
55
|
|
|
58
|
-
|
|
59
56
|
# Generics
|
|
60
57
|
MIN_PAGE_SIZE = 1
|
|
61
58
|
|
|
@@ -66,7 +63,7 @@ LIST_SKU_IDS_MAX_PAGE_SIZE = 1_000
|
|
|
66
63
|
LIST_CATEGORIES_START_PAGE = 1
|
|
67
64
|
LIST_CATEGORIES_MAX_PAGE_SIZE = 50
|
|
68
65
|
|
|
69
|
-
GET_CATEGORY_TREE_MAX_LEVELS =
|
|
66
|
+
GET_CATEGORY_TREE_MAX_LEVELS = 1_000
|
|
70
67
|
|
|
71
68
|
# License Manager
|
|
72
69
|
LIST_ROLES_START_PAGE = 1
|
|
@@ -91,6 +88,3 @@ LIST_FEED_ORDERS_MAX_PAGE_SIZE = 10
|
|
|
91
88
|
LIST_ORDERS_START_PAGE = 1
|
|
92
89
|
LIST_ORDERS_MAX_PAGE = 30
|
|
93
90
|
LIST_ORDERS_MAX_PAGE_SIZE = 100
|
|
94
|
-
|
|
95
|
-
# Transactions
|
|
96
|
-
LIST_TRANSACTION_INTERACTIONS_RETRIES = 10
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from functools import cached_property
|
|
2
|
-
from typing import TYPE_CHECKING
|
|
2
|
+
from typing import TYPE_CHECKING, Any
|
|
3
3
|
|
|
4
4
|
from ._config import VTEXConfig
|
|
5
5
|
from ._logging import CLIENT_LOGGER
|
|
@@ -28,6 +28,12 @@ class VTEX:
|
|
|
28
28
|
self.logger = CLIENT_LOGGER
|
|
29
29
|
self.config = config
|
|
30
30
|
|
|
31
|
+
def with_config_overrides(self, **kwargs: Any) -> "VTEX":
|
|
32
|
+
if not kwargs:
|
|
33
|
+
return self
|
|
34
|
+
|
|
35
|
+
return VTEX(config=self.config.with_overrides(**kwargs))
|
|
36
|
+
|
|
31
37
|
@cached_property
|
|
32
38
|
def custom(self) -> "CustomAPI":
|
|
33
39
|
from ._api import CustomAPI
|
|
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
|