vtexpy 0.0.0b36__py3-none-any.whl → 0.0.0b38__py3-none-any.whl

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.

vtex/_utils.py CHANGED
@@ -5,7 +5,6 @@ from uuid import UUID
5
5
 
6
6
  from dateutil.parser import parse as parse_datetime
7
7
  from dateutil.tz import tzoffset
8
- from distutils.util import strtobool
9
8
 
10
9
  from ._constants import APP_KEY_HEADER, APP_TOKEN_HEADER
11
10
  from ._logging import UTILS_LOGGER
@@ -16,7 +15,14 @@ TO_SNAKE_CASE_STEP_2_PATTERN = compile(r"([a-z0-9])([A-Z])")
16
15
 
17
16
 
18
17
  def str_to_bool(value: str) -> bool:
19
- return bool(strtobool(value))
18
+ if isinstance(value, str):
19
+ if value.lower() in {"true", "yes", "on", "y", "1"}:
20
+ return True
21
+
22
+ if value.lower() in {"false", "no", "off", "n", "0"}:
23
+ return False
24
+
25
+ raise ValueError(f"Invalid boolean repreentation: {value}")
20
26
 
21
27
 
22
28
  def omitting_undefined(obj: Dict[Any, Any]) -> Dict[Any, Any]:
@@ -1,23 +1,21 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: vtexpy
3
- Version: 0.0.0b36
3
+ Version: 0.0.0b38
4
4
  Summary: Unofficial VTEX API's Python SDK
5
- Home-page: https://github.com/lvieirajr/vtex-python
6
- License: Apache
7
- Keywords: vtex,sdk,client,api
8
- Author: Luis Vieira
9
- Author-email: lvieira@lvieira.com
10
- Maintainer: Luis Vieira
11
- Maintainer-email: lvieira@lvieira.com
12
- Requires-Python: >=3.9,<3.14
5
+ Project-URL: homepage, https://github.com/lvieirajr/vtex-python
6
+ Project-URL: repository, https://github.com/lvieirajr/vtex-python
7
+ Project-URL: documentation, https://github.com/lvieirajr/vtex-python
8
+ Author-email: Luis Vieira <lvieira@lvieira.com>
9
+ Maintainer-email: Luis Vieira <lvieira@lvieira.com>
10
+ License-Expression: Apache-2.0
11
+ License-File: LICENSE
12
+ Keywords: api,client,sdk,vtex
13
13
  Classifier: Development Status :: 4 - Beta
14
14
  Classifier: Intended Audience :: Developers
15
15
  Classifier: License :: OSI Approved :: Apache Software License
16
- Classifier: License :: Other/Proprietary License
17
16
  Classifier: Operating System :: OS Independent
18
17
  Classifier: Programming Language :: Python
19
18
  Classifier: Programming Language :: Python :: 3
20
- Classifier: Programming Language :: Python :: 3.9
21
19
  Classifier: Programming Language :: Python :: 3.10
22
20
  Classifier: Programming Language :: Python :: 3.11
23
21
  Classifier: Programming Language :: Python :: 3.12
@@ -25,14 +23,13 @@ Classifier: Programming Language :: Python :: 3.13
25
23
  Classifier: Topic :: Software Development :: Libraries
26
24
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
27
25
  Classifier: Typing :: Typed
28
- Requires-Dist: cachetools (>=5.0,<6.0)
29
- Requires-Dist: httpx (>=0.17,<1.0)
30
- Requires-Dist: pydantic (>=2.0,<3.0)
31
- Requires-Dist: python-dateutil (>=2.9,<3.0)
32
- Requires-Dist: tenacity (>=8.0,<10.0)
33
- Requires-Dist: typing-extensions (>=3.10,<5.0) ; python_version < "3.12"
34
- Project-URL: Documentation, https://github.com/lvieirajr/vtex-python
35
- Project-URL: Repository, https://github.com/lvieirajr/vtex-python
26
+ Requires-Python: <3.14,>=3.10
27
+ Requires-Dist: cachetools<6.0,>=5.0
28
+ Requires-Dist: httpx<1.0,>=0.17
29
+ Requires-Dist: pydantic<3.0,>=2.0
30
+ Requires-Dist: python-dateutil<3.0,>=2.9
31
+ Requires-Dist: tenacity<10.0,>=8.0
32
+ Requires-Dist: typing-extensions<5.0,>=3.10; python_version < '3.12'
36
33
  Description-Content-Type: text/markdown
37
34
 
38
35
  # VTEXPY
@@ -99,4 +96,3 @@ response = vtex_client.custom.request(
99
96
  # Other arguments such as: query params, headers, json data, response class, etc...
100
97
  )
101
98
  ```
102
-
@@ -1,4 +1,14 @@
1
1
  vtex/__init__.py,sha256=SLnqpZa19ISSQ9LDaCVLDAj-OxFlgVkQyEknydu20VU,636
2
+ vtex/_config.py,sha256=EhvVHgby0PY4rdIlKbWsH8y3fugDoxaQCCOLahzQY1w,12301
3
+ vtex/_constants.py,sha256=Oijo8dlWaC9m_liGlqFMWdh0HN7pPtFs75sTA2CjJOA,2047
4
+ vtex/_dto.py,sha256=6CSgQfQp94tA5M9rKxgWf_ftRyoZB804iABIpB5Ff6Y,6479
5
+ vtex/_exceptions.py,sha256=dNRhdk6k4capnsUSHPOKsvACwLfG8cwTNXltao3t344,2152
6
+ vtex/_logging.py,sha256=zahPJIk10YvNs6qoNqhUy7OoDG7dr634CPwiGjT0aEk,2246
7
+ vtex/_sentinels.py,sha256=HLkYBJVHTx9GoyACPO1SuINaGlU2YiqOPuFXUa7iG8A,1120
8
+ vtex/_types.py,sha256=xrqHzmrc0IhE5fc1aGf0StCm3BQbVFyk3LG4Hd7Wd2Q,631
9
+ vtex/_utils.py,sha256=GHNxlqBs73KXHN8Aejh7dT9dhFLhBk13EN-9nIEaimk,3413
10
+ vtex/_vtex.py,sha256=IBPVQ__xiQGJEoht4oCnd-pAYKNJDrKoU06yieQL84o,2342
11
+ vtex/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
12
  vtex/_api/__init__.py,sha256=2OarRhTDq1Oj65v7WkMr3Bi7EAnQMPm2Ypgv9flzE6c,385
3
13
  vtex/_api/base.py,sha256=Pjww58gnM31C7Oo0AC_TNOcqLM8mSmfk2kQfnVyaQnQ,7079
4
14
  vtex/_api/catalog.py,sha256=UaVWI9Vhhu6wHejO851hVSDmcLUDtfwcnsGasZGEKiw,4661
@@ -15,17 +25,7 @@ vtex/_api/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
25
  vtex/_api/types/catalog.py,sha256=O_qLoiGMyBxRdmxPclbbPobUxJSzViqzHiKf8tgfm_I,394
16
26
  vtex/_api/types/generic.py,sha256=m1lFTPeyBNi-K0shvK4uxE5SUyvhTTX_5Ls2VockkdI,344
17
27
  vtex/_api/types/license_manager.py,sha256=KYISnKdQ548g6x5cNieoaN6gh9C1LQVFv4sH-II1maI,1015
18
- vtex/_config.py,sha256=EhvVHgby0PY4rdIlKbWsH8y3fugDoxaQCCOLahzQY1w,12301
19
- vtex/_constants.py,sha256=Oijo8dlWaC9m_liGlqFMWdh0HN7pPtFs75sTA2CjJOA,2047
20
- vtex/_dto.py,sha256=6CSgQfQp94tA5M9rKxgWf_ftRyoZB804iABIpB5Ff6Y,6479
21
- vtex/_exceptions.py,sha256=dNRhdk6k4capnsUSHPOKsvACwLfG8cwTNXltao3t344,2152
22
- vtex/_logging.py,sha256=zahPJIk10YvNs6qoNqhUy7OoDG7dr634CPwiGjT0aEk,2246
23
- vtex/_sentinels.py,sha256=HLkYBJVHTx9GoyACPO1SuINaGlU2YiqOPuFXUa7iG8A,1120
24
- vtex/_types.py,sha256=xrqHzmrc0IhE5fc1aGf0StCm3BQbVFyk3LG4Hd7Wd2Q,631
25
- vtex/_utils.py,sha256=ngC2rRdhBO5cjAAByS0_2LMeXKsI6rnfiHGP96U0m88,3215
26
- vtex/_vtex.py,sha256=IBPVQ__xiQGJEoht4oCnd-pAYKNJDrKoU06yieQL84o,2342
27
- vtex/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
28
- vtexpy-0.0.0b36.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
29
- vtexpy-0.0.0b36.dist-info/METADATA,sha256=L0Id-l0beaRXrccnUfVt1x9pXeLaqCfWbKTjTwbwzCY,3493
30
- vtexpy-0.0.0b36.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
31
- vtexpy-0.0.0b36.dist-info/RECORD,,
28
+ vtexpy-0.0.0b38.dist-info/METADATA,sha256=EQBUUi5vJFS_XPvM53nMqvDaYhagsbBi-CIIhD7t5vQ,3408
29
+ vtexpy-0.0.0b38.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
30
+ vtexpy-0.0.0b38.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
31
+ vtexpy-0.0.0b38.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 1.9.1
2
+ Generator: hatchling 1.27.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any