Skip to main content

Unofficial VTEX API's Python SDK

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

vtexpy-0.0.0b45.tar.gz (63.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vtexpy-0.0.0b45-py3-none-any.whl (29.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vtexpy-0.0.0b45.tar.gz
  • Upload date:
  • Size: 63.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for vtexpy-0.0.0b45.tar.gz
Algorithm Hash digest
SHA256 2fe45f915c6c018e0196f84e520fb2cecfaa8c3a8de5e9ea4e0ec6777b74f408
MD5 e3d83d21de4035ad95a470d3512d54ec
BLAKE2b-256 de05e5208052360f0fa7a2411da50224b77ec29a1603287ea642fbde4d1012ab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vtexpy-0.0.0b45-py3-none-any.whl
  • Upload date:
  • Size: 29.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for vtexpy-0.0.0b45-py3-none-any.whl
Algorithm Hash digest
SHA256 6f12f3f23cdd9b07910e7617c90e4b00f2355be51770b4c30ca010fd3e5e1116
MD5 a5ba9d59e9451d45de791c8927153eb7
BLAKE2b-256 2751c31ece3e16fa01acd409b3628adfa35c468f2d371c3876ef61d994e28048

See more details on using hashes here.

Supported by

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