vtexpy 0.0.0b37__tar.gz → 0.0.0b38__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.0b38/.github/CODEOWNERS +1 -0
- vtexpy-0.0.0b38/.github/actions/setup-python/action.yaml +28 -0
- vtexpy-0.0.0b38/.github/workflows/publish.yaml +82 -0
- vtexpy-0.0.0b38/.gitignore +91 -0
- vtexpy-0.0.0b38/.pre-commit-config.yaml +26 -0
- vtexpy-0.0.0b38/Makefile +118 -0
- {vtexpy-0.0.0b37 → vtexpy-0.0.0b38}/PKG-INFO +17 -21
- vtexpy-0.0.0b38/mise.toml +9 -0
- {vtexpy-0.0.0b37 → vtexpy-0.0.0b38}/pyproject.toml +33 -53
- vtexpy-0.0.0b38/tests/__init__.py +3 -0
- vtexpy-0.0.0b38/tests/base.py +2 -0
- vtexpy-0.0.0b38/tests/conftest.py +0 -0
- vtexpy-0.0.0b38/tests/integration.py +8 -0
- vtexpy-0.0.0b38/tests/unit.py +8 -0
- vtexpy-0.0.0b38/tests/vtex/__init__.py +0 -0
- vtexpy-0.0.0b38/tests/vtex/api/__init__.py +0 -0
- vtexpy-0.0.0b38/tests/vtex/test_config.py +1005 -0
- vtexpy-0.0.0b38/uv.lock +684 -0
- vtexpy-0.0.0b38/vtex/_api/types/__init__.py +0 -0
- {vtexpy-0.0.0b37 → vtexpy-0.0.0b38}/vtex/_utils.py +8 -2
- vtexpy-0.0.0b38/vtex/py.typed +0 -0
- /vtexpy-0.0.0b37/vtex/_api/types/__init__.py → /vtexpy-0.0.0b38/CHANGELOG.md +0 -0
- /vtexpy-0.0.0b37/vtex/py.typed → /vtexpy-0.0.0b38/CONTRIBUTING.md +0 -0
- {vtexpy-0.0.0b37 → vtexpy-0.0.0b38}/LICENSE +0 -0
- {vtexpy-0.0.0b37 → vtexpy-0.0.0b38}/README.md +0 -0
- {vtexpy-0.0.0b37 → vtexpy-0.0.0b38}/vtex/__init__.py +0 -0
- {vtexpy-0.0.0b37 → vtexpy-0.0.0b38}/vtex/_api/__init__.py +0 -0
- {vtexpy-0.0.0b37 → vtexpy-0.0.0b38}/vtex/_api/base.py +0 -0
- {vtexpy-0.0.0b37 → vtexpy-0.0.0b38}/vtex/_api/catalog.py +0 -0
- {vtexpy-0.0.0b37 → vtexpy-0.0.0b38}/vtex/_api/checkout.py +0 -0
- {vtexpy-0.0.0b37 → vtexpy-0.0.0b38}/vtex/_api/custom.py +0 -0
- {vtexpy-0.0.0b37 → vtexpy-0.0.0b38}/vtex/_api/license_manager.py +0 -0
- {vtexpy-0.0.0b37 → vtexpy-0.0.0b38}/vtex/_api/logistics.py +0 -0
- {vtexpy-0.0.0b37 → vtexpy-0.0.0b38}/vtex/_api/master_data.py +0 -0
- {vtexpy-0.0.0b37 → vtexpy-0.0.0b38}/vtex/_api/orders.py +0 -0
- {vtexpy-0.0.0b37 → vtexpy-0.0.0b38}/vtex/_api/payments_gateway.py +0 -0
- {vtexpy-0.0.0b37 → vtexpy-0.0.0b38}/vtex/_api/pricing.py +0 -0
- {vtexpy-0.0.0b37 → vtexpy-0.0.0b38}/vtex/_api/promotions_and_taxes.py +0 -0
- {vtexpy-0.0.0b37 → vtexpy-0.0.0b38}/vtex/_api/types/catalog.py +0 -0
- {vtexpy-0.0.0b37 → vtexpy-0.0.0b38}/vtex/_api/types/generic.py +0 -0
- {vtexpy-0.0.0b37 → vtexpy-0.0.0b38}/vtex/_api/types/license_manager.py +0 -0
- {vtexpy-0.0.0b37 → vtexpy-0.0.0b38}/vtex/_config.py +0 -0
- {vtexpy-0.0.0b37 → vtexpy-0.0.0b38}/vtex/_constants.py +0 -0
- {vtexpy-0.0.0b37 → vtexpy-0.0.0b38}/vtex/_dto.py +0 -0
- {vtexpy-0.0.0b37 → vtexpy-0.0.0b38}/vtex/_exceptions.py +0 -0
- {vtexpy-0.0.0b37 → vtexpy-0.0.0b38}/vtex/_logging.py +0 -0
- {vtexpy-0.0.0b37 → vtexpy-0.0.0b38}/vtex/_sentinels.py +0 -0
- {vtexpy-0.0.0b37 → vtexpy-0.0.0b38}/vtex/_types.py +0 -0
- {vtexpy-0.0.0b37 → vtexpy-0.0.0b38}/vtex/_vtex.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* @lvieirajr
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
#name: "Setup Python"
|
|
2
|
+
#description: "Sets up specific Python version with caching enabled"
|
|
3
|
+
#
|
|
4
|
+
#inputs:
|
|
5
|
+
# python:
|
|
6
|
+
# description: "Python version"
|
|
7
|
+
# required: true
|
|
8
|
+
#
|
|
9
|
+
#runs:
|
|
10
|
+
# using: "composite"
|
|
11
|
+
# steps:
|
|
12
|
+
# - name: Set up Python ${{ inputs.python }}
|
|
13
|
+
# uses: actions/setup-python@v5
|
|
14
|
+
# with:
|
|
15
|
+
# python-version: ${{ inputs.python }}
|
|
16
|
+
# update-environment: true
|
|
17
|
+
# - name: Cache Python dependencies
|
|
18
|
+
# uses: actions/cache@v4
|
|
19
|
+
# with:
|
|
20
|
+
# path: ${{ env.pythonLocation }}
|
|
21
|
+
# key: python-cache-${{ inputs.python }}-${{ hashFiles('**/poetry.lock') }}
|
|
22
|
+
# restore-keys: python-cache-${{ inputs.python }}-
|
|
23
|
+
# - name: Install Poetry
|
|
24
|
+
# run: pip install --upgrade poetry
|
|
25
|
+
# shell: bash
|
|
26
|
+
# - name: Install dependencies
|
|
27
|
+
# run: poetry install --compile --no-interaction --no-root --sync
|
|
28
|
+
# shell: bash
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
#name: "Publish"
|
|
2
|
+
#
|
|
3
|
+
#permissions:
|
|
4
|
+
# attestations: write
|
|
5
|
+
# contents: read
|
|
6
|
+
# id-token: write
|
|
7
|
+
#
|
|
8
|
+
#env:
|
|
9
|
+
# PIP_CACHE_DIR: "~/.cache/pip"
|
|
10
|
+
# PIP_DEFAULT_TIMEOUT: "60"
|
|
11
|
+
# PIP_DISABLE_PIP_VERSION_CHECK: "on"
|
|
12
|
+
# PIP_ROOT_USER_ACTION: "ignore"
|
|
13
|
+
# POETRY_CACHE_DIR: "~/.cache/poetry"
|
|
14
|
+
# POETRY_VIRTUALENVS_CREATE: "false"
|
|
15
|
+
#
|
|
16
|
+
#on:
|
|
17
|
+
# push:
|
|
18
|
+
# branches:
|
|
19
|
+
# - "**"
|
|
20
|
+
#
|
|
21
|
+
#jobs:
|
|
22
|
+
# ruff:
|
|
23
|
+
# name: "Ruff"
|
|
24
|
+
# runs-on: "ubuntu-latest"
|
|
25
|
+
# steps:
|
|
26
|
+
# - uses: actions/checkout@v4
|
|
27
|
+
# - uses: ./.github/actions/setup-python
|
|
28
|
+
# with:
|
|
29
|
+
# python: "3.9"
|
|
30
|
+
# - name: Run Ruff checker
|
|
31
|
+
# run: ruff check --output-format=github ./
|
|
32
|
+
# - name: Run Ruff formatter
|
|
33
|
+
# run: ruff format --check ./
|
|
34
|
+
#
|
|
35
|
+
# mypy:
|
|
36
|
+
# name: "Mypy"
|
|
37
|
+
# runs-on: "ubuntu-latest"
|
|
38
|
+
# steps:
|
|
39
|
+
# - uses: actions/checkout@v4
|
|
40
|
+
# - uses: ./.github/actions/setup-python
|
|
41
|
+
# with:
|
|
42
|
+
# python: "3.9"
|
|
43
|
+
# - name: Run Mypy
|
|
44
|
+
# run: mypy ./
|
|
45
|
+
#
|
|
46
|
+
# pytest:
|
|
47
|
+
# name: "Pytest"
|
|
48
|
+
# runs-on: "ubuntu-latest"
|
|
49
|
+
# strategy:
|
|
50
|
+
# matrix:
|
|
51
|
+
# python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
|
|
52
|
+
# steps:
|
|
53
|
+
# - uses: actions/checkout@v4
|
|
54
|
+
# - uses: ./.github/actions/setup-python
|
|
55
|
+
# with:
|
|
56
|
+
# python: ${{ matrix.python-version }}
|
|
57
|
+
# - name: Run Pytest
|
|
58
|
+
# run: pytest ./
|
|
59
|
+
#
|
|
60
|
+
# publish:
|
|
61
|
+
# name: "Publish"
|
|
62
|
+
# runs-on: "ubuntu-latest"
|
|
63
|
+
# needs:
|
|
64
|
+
# - ruff
|
|
65
|
+
# - mypy
|
|
66
|
+
# - pytest
|
|
67
|
+
# steps:
|
|
68
|
+
# - uses: actions/checkout@v4
|
|
69
|
+
# - uses: ./.github/actions/setup-python
|
|
70
|
+
# with:
|
|
71
|
+
# python: "3.9"
|
|
72
|
+
# - name: Update version for non-main branches
|
|
73
|
+
# if: github.ref_name != 'main'
|
|
74
|
+
# run: poetry version "$(poetry version -s).dev$((RANDOM % 9999999))"
|
|
75
|
+
# - name: Build package
|
|
76
|
+
# run: poetry build --no-interaction
|
|
77
|
+
# - name: Publish package
|
|
78
|
+
# uses: pypa/gh-action-pypi-publish@release/v1
|
|
79
|
+
# with:
|
|
80
|
+
# attestations: true
|
|
81
|
+
# skip-existing: true
|
|
82
|
+
# repository-url: ${{ github.ref_name == 'main' && 'https://upload.pypi.org/legacy/' || 'https://test.pypi.org/legacy/' }}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
### START Mac OS ###
|
|
2
|
+
*.icloud
|
|
3
|
+
._*
|
|
4
|
+
.AppleDB
|
|
5
|
+
.AppleDesktop
|
|
6
|
+
.AppleDouble
|
|
7
|
+
.DocumentRevisions-V100
|
|
8
|
+
.DS_Store
|
|
9
|
+
.LSOverride
|
|
10
|
+
.Spotlight-V100
|
|
11
|
+
.TemporaryItems
|
|
12
|
+
.Trashes
|
|
13
|
+
.VolumeIcon.icns
|
|
14
|
+
.apdisk
|
|
15
|
+
.com.apple.timemachine.donotpresent
|
|
16
|
+
.fseventsd
|
|
17
|
+
Network Trash Folder
|
|
18
|
+
Temporary Items
|
|
19
|
+
### END Mac OS ###
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### START Linux ###
|
|
23
|
+
*~
|
|
24
|
+
.directory
|
|
25
|
+
.fuse_hidden*
|
|
26
|
+
.nfs*
|
|
27
|
+
.Trash-*
|
|
28
|
+
### END Linux ###
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### START Windows ###
|
|
32
|
+
*.cab
|
|
33
|
+
*.lnk
|
|
34
|
+
*.msi
|
|
35
|
+
*.msix
|
|
36
|
+
*.msm
|
|
37
|
+
*.msp
|
|
38
|
+
*.stackdump
|
|
39
|
+
$RECYCLE.BIN/
|
|
40
|
+
[Dd]esktop.ini
|
|
41
|
+
Thumbs.db
|
|
42
|
+
Thumbs.db:encryptable
|
|
43
|
+
ehthumbs.db
|
|
44
|
+
ehthumbs_vista.db
|
|
45
|
+
### END Windows ###
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
### START Others ###
|
|
49
|
+
# Backups / Logs / Temporary files
|
|
50
|
+
*.bak
|
|
51
|
+
*.log
|
|
52
|
+
*.swp
|
|
53
|
+
*.tmp
|
|
54
|
+
|
|
55
|
+
# IDEs
|
|
56
|
+
.idea/
|
|
57
|
+
*.project
|
|
58
|
+
*.tmproj
|
|
59
|
+
*.vscode
|
|
60
|
+
.devcontainer
|
|
61
|
+
|
|
62
|
+
# Environment
|
|
63
|
+
.env
|
|
64
|
+
### END Others ###
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
# Python
|
|
68
|
+
__pycache__/
|
|
69
|
+
*.py[cod]
|
|
70
|
+
*$py.class
|
|
71
|
+
.python-version
|
|
72
|
+
|
|
73
|
+
# Mypy
|
|
74
|
+
.mypy_cache/
|
|
75
|
+
.dmypy.json
|
|
76
|
+
dmypy.json
|
|
77
|
+
|
|
78
|
+
# PyTest
|
|
79
|
+
.pytest_cache/
|
|
80
|
+
|
|
81
|
+
# Ruff
|
|
82
|
+
.ruff_cache/
|
|
83
|
+
|
|
84
|
+
# Coverage
|
|
85
|
+
.coverage*
|
|
86
|
+
|
|
87
|
+
# Build
|
|
88
|
+
dist/
|
|
89
|
+
|
|
90
|
+
# Bootstrap
|
|
91
|
+
.bootstrapped-*
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
repos:
|
|
3
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
4
|
+
rev: v5.0.0
|
|
5
|
+
hooks:
|
|
6
|
+
- id: check-added-large-files
|
|
7
|
+
- id: check-ast
|
|
8
|
+
- id: check-toml
|
|
9
|
+
- id: debug-statements
|
|
10
|
+
- id: end-of-file-fixer
|
|
11
|
+
- id: mixed-line-ending
|
|
12
|
+
- id: trailing-whitespace
|
|
13
|
+
- repo: https://github.com/astral-sh/uv-pre-commit
|
|
14
|
+
rev: 0.6.3
|
|
15
|
+
hooks:
|
|
16
|
+
- id: uv-lock
|
|
17
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
18
|
+
rev: v0.9.9
|
|
19
|
+
hooks:
|
|
20
|
+
- id: ruff
|
|
21
|
+
args: ["--fix"]
|
|
22
|
+
- id: ruff-format
|
|
23
|
+
- repo: https://github.com/crate-ci/typos
|
|
24
|
+
rev: v1.30.0
|
|
25
|
+
hooks:
|
|
26
|
+
- id: typos
|
vtexpy-0.0.0b38/Makefile
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
SHELL := /usr/bin/env bash -eou pipefail
|
|
2
|
+
.DEFAULT_GOAL := bootstrap
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
# ======================================================================================
|
|
6
|
+
# Bootstrap
|
|
7
|
+
# ======================================================================================
|
|
8
|
+
.bootstrapped-mise:
|
|
9
|
+
@$(MAKE) mise-setup
|
|
10
|
+
@touch .bootstrapped-mise
|
|
11
|
+
|
|
12
|
+
.bootstrapped-uv:
|
|
13
|
+
@$(MAKE) sync
|
|
14
|
+
@touch .bootstrapped-uv
|
|
15
|
+
|
|
16
|
+
.bootstrapped-pre-commit:
|
|
17
|
+
@$(MAKE) pre-commit-install
|
|
18
|
+
@touch .bootstrapped-pre-commit
|
|
19
|
+
|
|
20
|
+
.PHONY: bootstrap
|
|
21
|
+
bootstrap: .bootstrapped-mise .bootstrapped-uv .bootstrapped-pre-commit ##@Bootstrap Bootstraps the project
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
# ======================================================================================
|
|
25
|
+
# Mise en place
|
|
26
|
+
# ======================================================================================
|
|
27
|
+
.PHONY: mise-setup
|
|
28
|
+
mise-setup: mise.toml ##@Mise Sets up mise-en-place
|
|
29
|
+
@echo "Setting up mise..."
|
|
30
|
+
@mise trust --yes --quiet --silent
|
|
31
|
+
@mise install --yes --quiet --silent
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
# ======================================================================================
|
|
35
|
+
# UV
|
|
36
|
+
# ======================================================================================
|
|
37
|
+
.PHONY: lock
|
|
38
|
+
lock: .bootstrapped-mise pyproject.toml ##@UV Locks the Python dependencies
|
|
39
|
+
@echo "Locking Python dependencies..."
|
|
40
|
+
@uv lock --upgrade
|
|
41
|
+
|
|
42
|
+
.PHONY: sync
|
|
43
|
+
sync: .bootstrapped-mise pyproject.toml uv.lock ##@UV Installs the Python dependencies
|
|
44
|
+
@echo "Installing Python dependencies..."
|
|
45
|
+
@uv sync --frozen --no-install-project
|
|
46
|
+
|
|
47
|
+
.PHONY: build
|
|
48
|
+
build: .bootstrapped-uv pyproject.toml uv.lock ##@UV Builds the package
|
|
49
|
+
@echo "Building the package..."
|
|
50
|
+
@uv build
|
|
51
|
+
|
|
52
|
+
.PHONY: publish
|
|
53
|
+
publish: .bootstrapped-uv pyproject.toml uv.lock ##@UV Publishes the package
|
|
54
|
+
@echo "Publishing the package..."
|
|
55
|
+
@uv publish
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
# ======================================================================================
|
|
59
|
+
# Pre-commit
|
|
60
|
+
# ======================================================================================
|
|
61
|
+
.PHONY: pre-commit-install
|
|
62
|
+
pre-commit-install: .bootstrapped-mise .pre-commit-config.yaml ##@PreCommit Installs pre-commit hooks
|
|
63
|
+
@echo "Installing pre-commit hooks..."
|
|
64
|
+
@pre-commit install
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
# ======================================================================================
|
|
68
|
+
# Ruff
|
|
69
|
+
# ======================================================================================
|
|
70
|
+
.PHONY: linter
|
|
71
|
+
linter: ##@Ruff Runs the Ruff linter on the project
|
|
72
|
+
@echo "Running ruff linter..."
|
|
73
|
+
@ruff check ./ --fix
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
.PHONY: formatter
|
|
77
|
+
formatter: ##@Ruff Runs the Ruff formatter on the project
|
|
78
|
+
@echo "Running ruff formatter..."
|
|
79
|
+
@ruff format ./
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
.PHONY: ruff
|
|
83
|
+
ruff: ##@Ruff Runs both the Ruff linter and formatter on the project
|
|
84
|
+
@$(MAKE) ruff-linter
|
|
85
|
+
@$(MAKE) ruff-formatter
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
# ======================================================================================
|
|
89
|
+
# MyPy
|
|
90
|
+
# ======================================================================================
|
|
91
|
+
.PHONY: mypy
|
|
92
|
+
mypy: ##@Mypy Runs the MyPy static type checker on the project
|
|
93
|
+
@echo "Running mypy..."
|
|
94
|
+
@mypy ./vtex/
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
# ======================================================================================
|
|
98
|
+
# PyTest
|
|
99
|
+
# ======================================================================================
|
|
100
|
+
.PHONY: pytest
|
|
101
|
+
pytest: ##@Testing Runs the PyTest test suite
|
|
102
|
+
@echo "Running tests..."
|
|
103
|
+
@pytest ./
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
# ======================================================================================
|
|
107
|
+
# Help - https://stackoverflow.com/a/30796664
|
|
108
|
+
# ======================================================================================
|
|
109
|
+
HELP_FUN = \
|
|
110
|
+
%help; while(<>){push@{$$help{$$2//'options'}},[$$1,$$3] \
|
|
111
|
+
if/^([\w-_]+)\s*:.*\#\#(?:@(\w+))?\s(.*)$$/}; \
|
|
112
|
+
print"$$_:\n", map" $$_->[0]".(" "x(24-length($$_->[0])))."$$_->[1]\n",\
|
|
113
|
+
@{$$help{$$_}},"\n" for sort keys %help; \
|
|
114
|
+
|
|
115
|
+
.PHONY: help
|
|
116
|
+
help: ##@Help Shows this help
|
|
117
|
+
@echo "Usage: make [target] ..."
|
|
118
|
+
@perl -e '$(HELP_FUN)' $(MAKEFILE_LIST)
|
|
@@ -1,23 +1,21 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: vtexpy
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.0b38
|
|
4
4
|
Summary: Unofficial VTEX API's Python SDK
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Author: Luis Vieira
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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-
|
|
29
|
-
Requires-Dist:
|
|
30
|
-
Requires-Dist:
|
|
31
|
-
Requires-Dist:
|
|
32
|
-
Requires-Dist:
|
|
33
|
-
Requires-Dist:
|
|
34
|
-
|
|
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,22 +1,15 @@
|
|
|
1
|
-
[
|
|
2
|
-
requires = ["poetry-core"]
|
|
3
|
-
build-backend = "poetry.core.masonry.api"
|
|
4
|
-
|
|
5
|
-
[tool.poetry]
|
|
1
|
+
[project]
|
|
6
2
|
name = "vtexpy"
|
|
3
|
+
version = "0.0.0b38"
|
|
7
4
|
description = "Unofficial VTEX API's Python SDK"
|
|
8
|
-
version = "0.0.0b37"
|
|
9
5
|
readme = "README.md"
|
|
10
|
-
license = "Apache"
|
|
6
|
+
license = "Apache-2.0"
|
|
11
7
|
authors = [
|
|
12
|
-
"Luis Vieira
|
|
8
|
+
{name = "Luis Vieira", email = "lvieira@lvieira.com"},
|
|
13
9
|
]
|
|
14
10
|
maintainers = [
|
|
15
|
-
"Luis Vieira
|
|
11
|
+
{name = "Luis Vieira", email = "lvieira@lvieira.com"},
|
|
16
12
|
]
|
|
17
|
-
homepage = "https://github.com/lvieirajr/vtex-python"
|
|
18
|
-
repository = "https://github.com/lvieirajr/vtex-python"
|
|
19
|
-
documentation = "https://github.com/lvieirajr/vtex-python"
|
|
20
13
|
keywords = ["vtex", "sdk", "client", "api"]
|
|
21
14
|
classifiers = [
|
|
22
15
|
"Development Status :: 4 - Beta",
|
|
@@ -24,7 +17,6 @@ classifiers = [
|
|
|
24
17
|
"License :: OSI Approved :: Apache Software License",
|
|
25
18
|
"Programming Language :: Python",
|
|
26
19
|
"Programming Language :: Python :: 3",
|
|
27
|
-
"Programming Language :: Python :: 3.9",
|
|
28
20
|
"Programming Language :: Python :: 3.10",
|
|
29
21
|
"Programming Language :: Python :: 3.11",
|
|
30
22
|
"Programming Language :: Python :: 3.12",
|
|
@@ -34,68 +26,56 @@ classifiers = [
|
|
|
34
26
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
35
27
|
"Typing :: Typed",
|
|
36
28
|
]
|
|
37
|
-
|
|
38
|
-
|
|
29
|
+
requires-python = ">=3.10,<3.14"
|
|
30
|
+
dependencies = [
|
|
31
|
+
"cachetools (>=5.0,<6.0)",
|
|
32
|
+
"httpx (>=0.17,<1.0)",
|
|
33
|
+
"pydantic (>=2.0,<3.0)",
|
|
34
|
+
"python-dateutil (>=2.9,<3.0)",
|
|
35
|
+
"tenacity (>=8.0,<10.0)",
|
|
36
|
+
"typing-extensions (>=3.10,<5.0); python_version < '3.12'",
|
|
39
37
|
]
|
|
40
38
|
|
|
41
|
-
[
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
39
|
+
[project.urls]
|
|
40
|
+
homepage = "https://github.com/lvieirajr/vtex-python"
|
|
41
|
+
repository = "https://github.com/lvieirajr/vtex-python"
|
|
42
|
+
documentation = "https://github.com/lvieirajr/vtex-python"
|
|
43
|
+
|
|
44
|
+
[dependency-groups]
|
|
45
|
+
dev = [
|
|
46
|
+
"ipdb",
|
|
47
|
+
"mock",
|
|
48
|
+
"mypy",
|
|
49
|
+
"pytest",
|
|
50
|
+
"pytest-mock",
|
|
51
|
+
"types-cachetools",
|
|
52
|
+
"types-python-dateutil",
|
|
53
|
+
]
|
|
49
54
|
|
|
50
|
-
[
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
mock = {version = "*"}
|
|
54
|
-
mypy = {version = "*"}
|
|
55
|
-
pip = {version = "*"}
|
|
56
|
-
poetry = {version = "*"}
|
|
57
|
-
pre-commit = {version = "*"}
|
|
58
|
-
pytest = {version = "*"}
|
|
59
|
-
pytest-mock = {version = "*"}
|
|
60
|
-
ruff = {version = "*"}
|
|
61
|
-
setuptools = {version = "*"}
|
|
62
|
-
types-cachetools = {version = "*"}
|
|
63
|
-
types-decorator = {version = "*"}
|
|
64
|
-
types-python-dateutil = {version = "*"}
|
|
65
|
-
types-six = {version = "*"}
|
|
55
|
+
[build-system]
|
|
56
|
+
requires = ["hatchling"]
|
|
57
|
+
build-backend = "hatchling.build"
|
|
66
58
|
|
|
59
|
+
[tool.hatch.build.targets.wheel]
|
|
60
|
+
packages = ["vtex"]
|
|
67
61
|
|
|
68
|
-
# ======
|
|
69
|
-
# PyTest
|
|
70
|
-
# ======
|
|
71
62
|
[tool.pytest.ini_options]
|
|
72
63
|
addopts = "-s -vv"
|
|
73
64
|
markers = [
|
|
74
65
|
"unit: unit tests",
|
|
75
66
|
"integration: integration tests",
|
|
76
|
-
"e2e: end-to-end tests",
|
|
77
67
|
]
|
|
78
68
|
mock_use_standalone_module = true
|
|
79
69
|
|
|
80
|
-
|
|
81
|
-
# ====
|
|
82
|
-
# MyPy
|
|
83
|
-
# ====
|
|
84
70
|
[tool.mypy]
|
|
85
71
|
exclude = [".*tests/*"]
|
|
86
72
|
ignore_missing_imports = true
|
|
87
|
-
install_types = true
|
|
88
73
|
namespace_packages = true
|
|
89
74
|
no_implicit_reexport = false
|
|
90
|
-
non_interactive = true
|
|
91
75
|
plugins = []
|
|
92
76
|
pretty = true
|
|
93
77
|
strict = true
|
|
94
78
|
|
|
95
|
-
|
|
96
|
-
# ====
|
|
97
|
-
# Ruff
|
|
98
|
-
# ====
|
|
99
79
|
[tool.ruff]
|
|
100
80
|
target-version = "py313"
|
|
101
81
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|