Skip to main content

Unofficial VTEX API's Python SDK

Reason this release was yanked:

Broken entrypoint caused it to not install properly

Project description

VTEXPY

PyPI Version

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.

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.13

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

vtexpy-0.0.0b17.tar.gz (21.0 kB view details)

Uploaded Source

Built Distribution

vtexpy-0.0.0b17-py3-none-any.whl (28.6 kB view details)

Uploaded Python 3

File details

Details for the file vtexpy-0.0.0b17.tar.gz.

File metadata

  • Download URL: vtexpy-0.0.0b17.tar.gz
  • Upload date:
  • Size: 21.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for vtexpy-0.0.0b17.tar.gz
Algorithm Hash digest
SHA256 8f263c50b2c257665a406ceb0c1f5d263c95475f684b5df6ab98fc9f70c88daa
MD5 26925dcfbff8b497c824c35c7481fa4b
BLAKE2b-256 e7a713e33613180455b8fabf75d17c3739be719dcf430561a9c1977f0b61043a

See more details on using hashes here.

File details

Details for the file vtexpy-0.0.0b17-py3-none-any.whl.

File metadata

  • Download URL: vtexpy-0.0.0b17-py3-none-any.whl
  • Upload date:
  • Size: 28.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for vtexpy-0.0.0b17-py3-none-any.whl
Algorithm Hash digest
SHA256 51a3acbff987b79741db8c4a49806bc4b62638f22a93638540a0a1831e288248
MD5 f64f468304792da9e1e286e31010318c
BLAKE2b-256 fd4304c1d8e4c4c2f9c3473ebc11f8afa78cabec7de7f8d16f8883a19857406a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page