# VTEXPY
[![PyPI Version](https://img.shields.io/pypi/v/vtexpy.svg)](https://pypi.python.org/pypi/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
```bash
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.
```python
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...
)
```
Raw data
{
"_id": null,
"home_page": "https://github.com/lvieirajr/vtex-python",
"name": "vtexpy",
"maintainer": "Luis Vieira",
"docs_url": null,
"requires_python": "<3.14,>=3.9",
"maintainer_email": "lvieira@lvieira.com",
"keywords": "vtex, sdk, client, api",
"author": "Luis Vieira",
"author_email": "lvieira@lvieira.com",
"download_url": "https://files.pythonhosted.org/packages/e2/ba/e0353271852a66781c7c032424ff4d48908df382852b67aeceb337f5dad5/vtexpy-0.0.0b34.tar.gz",
"platform": null,
"description": "# VTEXPY\n[![PyPI Version](https://img.shields.io/pypi/v/vtexpy.svg)](https://pypi.python.org/pypi/vtexpy)\n\n## Unofficial VTEX API's Python SDK\n\nVTEXPY is an unofficial Python SDK designed to facilitate integration with the VTEX API.\n\nEven though it is still tagged as beta, vtexpy has been in use by a _SaaS_ company in a\nproduction environment for over a year, making millions of requests a day to the VTEX\nAPI. The only reason why it is tagged as beta is that it is still under heavy\ndevelopment and breaking changes are expected on the external API.\n\n### Features\n\n- Easy to use Python interface for calling VTEX API endpoints\n- Response format standardization\n- Custom exception handling\n- Automatic request retrying\n- Request logging\n\n### Getting Started\n\n#### Requirements\n\n- Python >= 3.9, < 3.14\n\n#### Installation\n\n```bash\npip install vtexpy\n```\n\n#### Usage\n\nIf the API you want to call is not yet implemented, feel free to create an issue on the\nVTEXPY Github repository and request it to be added.\n\n```python\nfrom vtex import VTEX, VTEXConfig\n\n# Instantiate your VTEX API configuration:\nvtex_config = VTEXConfig(\n account_name=\"<ACCOUNT_NAME>\",\n app_key=\"<APP_KEY>\",\n app_token=\"<APP_TOKEN>\",\n # Other arguments such as: retrying, logging, etc...\n)\n\n# Instantiate the VTEX client with your configuration:\nvtex_client = VTEX(config=vtex_config)\n\n# Call one of the available APIs, e.g.:\naccount_response = vtex_client.license_manager.get_account()\nlist_sku_ids_response = vtex_client.catalog.list_sku_ids(page=1, page_size=1000)\nlist_orders_response = vtex_client.orders.list_orders(page=1, page_size=100)\n\n# If the API you want to call is not yet implemented you can use the `custom` API.\nresponse = vtex_client.custom.request(\n method=\"GET\",\n environment=\"vtexcommercestable\",\n endpoint=\"/api/catalog_system/pvt/commercialcondition/list\",\n # Other arguments such as: query params, headers, json data, response class, etc...\n)\n```\n\n",
"bugtrack_url": null,
"license": "Apache",
"summary": "Unofficial VTEX API's Python SDK",
"version": "0.0.0b34",
"project_urls": {
"Documentation": "https://github.com/lvieirajr/vtex-python",
"Homepage": "https://github.com/lvieirajr/vtex-python",
"Repository": "https://github.com/lvieirajr/vtex-python"
},
"split_keywords": [
"vtex",
" sdk",
" client",
" api"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e174332766cad249184f7fae53435cb592d476013690edf052369fa36d1b1543",
"md5": "8ef39aa51414298b15211c8094cc1b8f",
"sha256": "c9bafeeeea9e556ca2cea4ad911512f0deedb58a45235d4943e5a45c3161bf77"
},
"downloads": -1,
"filename": "vtexpy-0.0.0b34-py3-none-any.whl",
"has_sig": false,
"md5_digest": "8ef39aa51414298b15211c8094cc1b8f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<3.14,>=3.9",
"size": 29715,
"upload_time": "2024-11-22T10:55:22",
"upload_time_iso_8601": "2024-11-22T10:55:22.318655Z",
"url": "https://files.pythonhosted.org/packages/e1/74/332766cad249184f7fae53435cb592d476013690edf052369fa36d1b1543/vtexpy-0.0.0b34-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e2bae0353271852a66781c7c032424ff4d48908df382852b67aeceb337f5dad5",
"md5": "254d7ca889893938dd2d34713125bcb8",
"sha256": "77e436b1ceb2033e5713d0c4556602690aeb1b946ca67062095611eda3a0c29e"
},
"downloads": -1,
"filename": "vtexpy-0.0.0b34.tar.gz",
"has_sig": false,
"md5_digest": "254d7ca889893938dd2d34713125bcb8",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<3.14,>=3.9",
"size": 21910,
"upload_time": "2024-11-22T10:55:24",
"upload_time_iso_8601": "2024-11-22T10:55:24.201878Z",
"url": "https://files.pythonhosted.org/packages/e2/ba/e0353271852a66781c7c032424ff4d48908df382852b67aeceb337f5dad5/vtexpy-0.0.0b34.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-22 10:55:24",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "lvieirajr",
"github_project": "vtex-python",
"github_not_found": true,
"lcname": "vtexpy"
}