vtexpy 0.0.0b42__tar.gz → 0.0.0b43__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.0b42 → vtexpy-0.0.0b43}/.pre-commit-config.yaml +3 -3
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/PKG-INFO +1 -1
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/pyproject.toml +1 -1
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/uv.lock +5 -5
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/vtex/_api/custom.py +4 -5
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/vtex/_api/license_manager.py +2 -2
- vtexpy-0.0.0b43/vtex/_api/types/license_manager.py +26 -0
- vtexpy-0.0.0b42/vtex/_api/types/license_manager.py +0 -56
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/.github/CODEOWNERS +0 -0
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/.github/actions/setup-python/action.yaml +0 -0
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/.github/workflows/publish.yaml +0 -0
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/.gitignore +0 -0
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/CHANGELOG.md +0 -0
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/CONTRIBUTING.md +0 -0
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/LICENSE +0 -0
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/Makefile +0 -0
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/README.md +0 -0
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/mise.local.toml.sample +0 -0
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/mise.toml +0 -0
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/tests/__init__.py +0 -0
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/tests/base.py +0 -0
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/tests/conftest.py +0 -0
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/tests/integration.py +0 -0
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/tests/unit.py +0 -0
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/tests/vtex/__init__.py +0 -0
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/tests/vtex/api/__init__.py +0 -0
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/tests/vtex/test_config.py +0 -0
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/vtex/__init__.py +0 -0
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/vtex/_api/__init__.py +0 -0
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/vtex/_api/base.py +0 -0
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/vtex/_api/catalog.py +0 -0
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/vtex/_api/checkout.py +0 -0
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/vtex/_api/logistics.py +0 -0
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/vtex/_api/master_data.py +0 -0
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/vtex/_api/orders.py +0 -0
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/vtex/_api/payments_gateway.py +0 -0
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/vtex/_api/pricing.py +0 -0
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/vtex/_api/promotions_and_taxes.py +0 -0
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/vtex/_api/search.py +0 -0
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/vtex/_api/types/__init__.py +0 -0
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/vtex/_api/types/catalog.py +0 -0
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/vtex/_api/types/generic.py +0 -0
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/vtex/_config.py +0 -0
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/vtex/_constants.py +0 -0
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/vtex/_dto.py +0 -0
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/vtex/_exceptions.py +0 -0
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/vtex/_logging.py +0 -0
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/vtex/_sentinels.py +0 -0
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/vtex/_types.py +0 -0
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/vtex/_utils.py +0 -0
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/vtex/_vtex.py +0 -0
- {vtexpy-0.0.0b42 → vtexpy-0.0.0b43}/vtex/py.typed +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
repos:
|
|
3
3
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
4
|
-
rev:
|
|
4
|
+
rev: v6.0.0
|
|
5
5
|
hooks:
|
|
6
6
|
- id: check-added-large-files
|
|
7
7
|
- id: check-ast
|
|
@@ -11,11 +11,11 @@ repos:
|
|
|
11
11
|
- id: mixed-line-ending
|
|
12
12
|
- id: trailing-whitespace
|
|
13
13
|
- repo: https://github.com/astral-sh/uv-pre-commit
|
|
14
|
-
rev: 0.
|
|
14
|
+
rev: 0.9.28
|
|
15
15
|
hooks:
|
|
16
16
|
- id: uv-lock
|
|
17
17
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
18
|
-
rev: v0.
|
|
18
|
+
rev: v0.14.14
|
|
19
19
|
hooks:
|
|
20
20
|
- id: ruff
|
|
21
21
|
args: ["--fix"]
|
|
@@ -193,7 +193,7 @@ source = { registry = "https://pypi.org/simple" }
|
|
|
193
193
|
dependencies = [
|
|
194
194
|
{ name = "decorator" },
|
|
195
195
|
{ name = "ipython", version = "8.38.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },
|
|
196
|
-
{ name = "ipython", version = "9.
|
|
196
|
+
{ name = "ipython", version = "9.10.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
|
|
197
197
|
{ name = "tomli", marker = "python_full_version < '3.11'" },
|
|
198
198
|
]
|
|
199
199
|
sdist = { url = "https://files.pythonhosted.org/packages/3d/1b/7e07e7b752017f7693a0f4d41c13e5ca29ce8cbcfdcc1fd6c4ad8c0a27a0/ipdb-0.13.13.tar.gz", hash = "sha256:e3ac6018ef05126d442af680aad863006ec19d02290561ac88b8b1c0b0cfc726", size = 17042, upload-time = "2023-03-09T15:40:57.487Z" }
|
|
@@ -228,7 +228,7 @@ wheels = [
|
|
|
228
228
|
|
|
229
229
|
[[package]]
|
|
230
230
|
name = "ipython"
|
|
231
|
-
version = "9.
|
|
231
|
+
version = "9.10.0"
|
|
232
232
|
source = { registry = "https://pypi.org/simple" }
|
|
233
233
|
resolution-markers = [
|
|
234
234
|
"python_full_version >= '3.11'",
|
|
@@ -246,9 +246,9 @@ dependencies = [
|
|
|
246
246
|
{ name = "traitlets", marker = "python_full_version >= '3.11'" },
|
|
247
247
|
{ name = "typing-extensions", marker = "python_full_version == '3.11.*'" },
|
|
248
248
|
]
|
|
249
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
249
|
+
sdist = { url = "https://files.pythonhosted.org/packages/a6/60/2111715ea11f39b1535bed6024b7dec7918b71e5e5d30855a5b503056b50/ipython-9.10.0.tar.gz", hash = "sha256:cd9e656be97618a0676d058134cd44e6dc7012c0e5cb36a9ce96a8c904adaf77", size = 4426526, upload-time = "2026-02-02T10:00:33.594Z" }
|
|
250
250
|
wheels = [
|
|
251
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
251
|
+
{ url = "https://files.pythonhosted.org/packages/3d/aa/898dec789a05731cd5a9f50605b7b44a72bd198fd0d4528e11fc610177cc/ipython-9.10.0-py3-none-any.whl", hash = "sha256:c6ab68cc23bba8c7e18e9b932797014cc61ea7fd6f19de180ab9ba73e65ee58d", size = 622774, upload-time = "2026-02-02T10:00:31.503Z" },
|
|
252
252
|
]
|
|
253
253
|
|
|
254
254
|
[[package]]
|
|
@@ -869,7 +869,7 @@ wheels = [
|
|
|
869
869
|
|
|
870
870
|
[[package]]
|
|
871
871
|
name = "vtexpy"
|
|
872
|
-
version = "0.0.
|
|
872
|
+
version = "0.0.0b43"
|
|
873
873
|
source = { editable = "." }
|
|
874
874
|
dependencies = [
|
|
875
875
|
{ name = "cachetools" },
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from datetime import datetime
|
|
2
|
-
from typing import Any, List, Type, Union
|
|
2
|
+
from typing import Any, List, Type, Union, cast
|
|
3
3
|
|
|
4
4
|
from httpx._types import (
|
|
5
5
|
CookieTypes,
|
|
@@ -16,7 +16,6 @@ from .._types import HTTPMethodType
|
|
|
16
16
|
from .._utils import to_datetime
|
|
17
17
|
from .base import BaseAPI
|
|
18
18
|
from .types.catalog import Seller
|
|
19
|
-
from .types.license_manager import AccountSite
|
|
20
19
|
|
|
21
20
|
|
|
22
21
|
class CustomAPI(BaseAPI):
|
|
@@ -56,15 +55,15 @@ class CustomAPI(BaseAPI):
|
|
|
56
55
|
)
|
|
57
56
|
|
|
58
57
|
def get_account_name(self) -> str:
|
|
59
|
-
return self.client.license_manager.get_account().data["account_name"]
|
|
58
|
+
return cast(str, self.client.license_manager.get_account().data["account_name"])
|
|
60
59
|
|
|
61
60
|
def get_creation_date(self) -> datetime:
|
|
62
61
|
return to_datetime(
|
|
63
62
|
self.client.license_manager.get_account().data["creation_date"],
|
|
64
63
|
).replace(hour=0, minute=0, second=0, microsecond=0)
|
|
65
64
|
|
|
66
|
-
def list_sites(self) -> List[
|
|
67
|
-
return self.client.license_manager.get_account().data["sites"]
|
|
65
|
+
def list_sites(self) -> List[Any]:
|
|
66
|
+
return cast(list[Any], self.client.license_manager.get_account().data["sites"])
|
|
68
67
|
|
|
69
68
|
def get_main_seller(self) -> Seller:
|
|
70
69
|
for seller in self.client.catalog.list_sellers(seller_type=1).items:
|
|
@@ -12,7 +12,7 @@ from .._dto import VTEXDataResponse, VTEXItemsResponse, VTEXPaginatedItemsRespon
|
|
|
12
12
|
from .._sentinels import UNDEFINED, UndefinedSentinel
|
|
13
13
|
from .._types import OrderingDirectionType
|
|
14
14
|
from .base import BaseAPI
|
|
15
|
-
from .types.license_manager import
|
|
15
|
+
from .types.license_manager import ListRolesData, Role, UserRole
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
class LicenseManagerAPI(BaseAPI):
|
|
@@ -30,7 +30,7 @@ class LicenseManagerAPI(BaseAPI):
|
|
|
30
30
|
endpoint="/api/vlm/account",
|
|
31
31
|
environment=self.ENVIRONMENT,
|
|
32
32
|
config=self.client.config.with_overrides(**kwargs),
|
|
33
|
-
response_class=VTEXDataResponse[
|
|
33
|
+
response_class=VTEXDataResponse[Any],
|
|
34
34
|
)
|
|
35
35
|
|
|
36
36
|
def get_user_roles(
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
from typing import List
|
|
2
|
+
|
|
3
|
+
from ..._types import TypedDict
|
|
4
|
+
from .generic import PagePagination
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class UserRole(TypedDict):
|
|
8
|
+
id: int
|
|
9
|
+
name: str
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class RoleProduct(TypedDict):
|
|
13
|
+
name: str
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class Role(TypedDict):
|
|
17
|
+
id: int
|
|
18
|
+
is_admin: bool
|
|
19
|
+
name: str
|
|
20
|
+
products: List[RoleProduct]
|
|
21
|
+
role_type: int
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class ListRolesData(TypedDict):
|
|
25
|
+
items: List[Role]
|
|
26
|
+
paging: PagePagination
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
from typing import List, Union
|
|
2
|
-
|
|
3
|
-
from ..._types import TypedDict
|
|
4
|
-
from .generic import PagePagination
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
class AccountAppKey(TypedDict):
|
|
8
|
-
app_key: str
|
|
9
|
-
id: str
|
|
10
|
-
is_active: bool
|
|
11
|
-
is_blocked: bool
|
|
12
|
-
label: str
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
class AccountSite(TypedDict):
|
|
16
|
-
name: str
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
class GetAccountData(TypedDict):
|
|
20
|
-
account_name: str
|
|
21
|
-
app_keys: List[AccountAppKey]
|
|
22
|
-
company_name: str
|
|
23
|
-
creation_date: str
|
|
24
|
-
have_parent_account: bool
|
|
25
|
-
id: str
|
|
26
|
-
inactivation_date: Union[str, None]
|
|
27
|
-
is_active: bool
|
|
28
|
-
is_operating: bool
|
|
29
|
-
name: str
|
|
30
|
-
operation_date: Union[str, None]
|
|
31
|
-
parent_account_id: Union[str, None]
|
|
32
|
-
parent_account_name: Union[str, None]
|
|
33
|
-
sites: List[AccountSite]
|
|
34
|
-
trading_name: str
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
class UserRole(TypedDict):
|
|
38
|
-
id: int
|
|
39
|
-
name: str
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
class RoleProduct(TypedDict):
|
|
43
|
-
name: str
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
class Role(TypedDict):
|
|
47
|
-
id: int
|
|
48
|
-
is_admin: bool
|
|
49
|
-
name: str
|
|
50
|
-
products: List[RoleProduct]
|
|
51
|
-
role_type: int
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
class ListRolesData(TypedDict):
|
|
55
|
-
items: List[Role]
|
|
56
|
-
paging: PagePagination
|
|
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
|
|
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
|