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.0b44.tar.gz (63.0 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.0b44-py3-none-any.whl (29.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vtexpy-0.0.0b44.tar.gz
  • Upload date:
  • Size: 63.0 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.0b44.tar.gz
Algorithm Hash digest
SHA256 b5f17b122315c57f26763d939cf82343f68b6395c1d4797c75f488db1ffbf718
MD5 9fc441e490ace36134f10ece03273e9d
BLAKE2b-256 e7cc76b31e1baaaef2e4fd997dec9de8084a23ee10a1ef434765f948af8eab08

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vtexpy-0.0.0b44-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.0b44-py3-none-any.whl
Algorithm Hash digest
SHA256 fc7e5fdfe7dd5f08ae68cc9d9f05a973316a79c197dfd6eb99362266fb4d6689
MD5 65ad8529b7f3d9e6d552cde7967b4572
BLAKE2b-256 10d0d312cf49c13aceced2087a0917e99e35822d1666a5cae36b11309df79e4a

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