Unofficial VTEX API's Python SDK
Project description
VTEXPY
Unofficial VTEX API's Python SDK
VTEXPY is an unofficial Python SDK designed to facilitate integration with the VTEX API.
Even though it is still tagged as beta, vtexpy has been in use by a SaaS company in a production environment for over a year, making millions of requests a day to the VTEX API. The only reason why it is tagged as beta is that it is still under heavy development and breaking changes are expected on the external API.
Features
- Easy to use Python interface for calling VTEX API endpoints
- Response format standardization
- Custom exception handling
- Automatic request retrying
- Request logging
Getting Started
Requirements
- Python >= 3.9, < 3.14
Installation
pip install vtexpy
Usage
If the API you want to call is not yet implemented, feel free to create an issue on the VTEXPY Github repository and request it to be added.
from vtex import VTEX, VTEXConfig
# Instantiate your VTEX API configuration:
vtex_config = VTEXConfig(
account_name="<ACCOUNT_NAME>",
app_key="<APP_KEY>",
app_token="<APP_TOKEN>",
# Other arguments such as: retrying, logging, etc...
)
# Instantiate the VTEX client with your configuration:
vtex_client = VTEX(config=vtex_config)
# Call one of the available APIs, e.g.:
account_response = vtex_client.license_manager.get_account()
list_sku_ids_response = vtex_client.catalog.list_sku_ids(page=1, page_size=1000)
list_orders_response = vtex_client.orders.list_orders(page=1, page_size=100)
# If the API you want to call is not yet implemented you can use the `custom` API.
response = vtex_client.custom.request(
method="GET",
environment="vtexcommercestable",
endpoint="/api/catalog_system/pvt/commercialcondition/list",
# Other arguments such as: query params, headers, json data, response class, etc...
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file vtexpy-0.0.0b28.tar.gz
.
File metadata
- Download URL: vtexpy-0.0.0b28.tar.gz
- Upload date:
- Size: 21.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 381433613a01833053a1b49b84261d3fc519541fb593075a3a3432525c6bce68 |
|
MD5 | 6b8f339c21b5a5793eef29af8a988305 |
|
BLAKE2b-256 | 67f1c22e743dd33644170a883ba1d50ecdf30a7195ee7d4770c52e33d184178e |
Provenance
The following attestation bundles were made for vtexpy-0.0.0b28.tar.gz
:
Publisher:
publish.yaml
on lvieirajr/vtexpy
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
vtexpy-0.0.0b28.tar.gz
- Subject digest:
381433613a01833053a1b49b84261d3fc519541fb593075a3a3432525c6bce68
- Sigstore transparency entry: 150740150
- Sigstore integration time:
- Predicate type:
File details
Details for the file vtexpy-0.0.0b28-py3-none-any.whl
.
File metadata
- Download URL: vtexpy-0.0.0b28-py3-none-any.whl
- Upload date:
- Size: 29.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52cf2bd928fa93c4dddca7fa1fadcaf7f9f010c22f7ca4e65c5b0c7df8c67db7 |
|
MD5 | 2644e6a282e768b14cec97481d9527e1 |
|
BLAKE2b-256 | 272eae998d87dfa19ce109b133cf8b1fa24606582f106979a50a6556d8c32772 |
Provenance
The following attestation bundles were made for vtexpy-0.0.0b28-py3-none-any.whl
:
Publisher:
publish.yaml
on lvieirajr/vtexpy
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
vtexpy-0.0.0b28-py3-none-any.whl
- Subject digest:
52cf2bd928fa93c4dddca7fa1fadcaf7f9f010c22f7ca4e65c5b0c7df8c67db7
- Sigstore transparency entry: 150740151
- Sigstore integration time:
- Predicate type: