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.0b31.tar.gz (22.0 kB view details)

Uploaded Source

Built Distribution

vtexpy-0.0.0b31-py3-none-any.whl (29.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for vtexpy-0.0.0b31.tar.gz
Algorithm Hash digest
SHA256 296789ae803ef5d931f558be114aea4b86807e3f57271dc4f58f118f2e988b1c
MD5 6fdd5e608d7791661f2f4c9623285f65
BLAKE2b-256 ec16f1988a75d85fb36c228543c282c0e68445cda0e7de668173f3beaf69ff79

See more details on using hashes here.

Provenance

The following attestation bundles were made for vtexpy-0.0.0b31.tar.gz:

Publisher: publish.yaml on lvieirajr/vtexpy

Attestations:

File details

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

File metadata

  • Download URL: vtexpy-0.0.0b31-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

Hashes for vtexpy-0.0.0b31-py3-none-any.whl
Algorithm Hash digest
SHA256 da35ef9eedbe3560040a08afc39c8b8db7ecafc3fb5034b5968ee20277164568
MD5 aad3bbd033b2e157b5d7a62a317c163b
BLAKE2b-256 a4f89c5ef75d3a36ed55a0ddde387cd6416c9ff9e33eed4e5d6e771e695c95df

See more details on using hashes here.

Provenance

The following attestation bundles were made for vtexpy-0.0.0b31-py3-none-any.whl:

Publisher: publish.yaml on lvieirajr/vtexpy

Attestations:

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