An HTTP client in Python for Plytix PIM API.
Project description
plytix-pim-client
An HTTP client in Python for Plytix PIM API.
API documentation: https://apidocs.plytix.com
Installation
pip install plytix-pim-client
Pypi: https://pypi.org/project/plytix-pim-client/
Requirements
- Python 3.11+
Features
- Synchronous and asynchronous clients
- Automatic token refresh
- Automatic rate limiting
- Automatic pagination
- Automatic error handling
- Automatic request retries
- API docs fully covered
Usage
Synchronous client
from plytix_pim_client import PlytixPimClientSync
# Set the environment variables PLYTIX_API_KEY and PLYTIX_API_PASSWORD
client = PlytixPimClientSync()
Asynchronous client
from plytix_pim_client import PlytixPimClientAsync
# Set the environment variables PLYTIX_API_KEY and PLYTIX_API_PASSWORD
client = PlytixPimClientAsync()
All methods are available in both synchronous and asynchronous clients with the same I/O interface. For the sake of simplicity, only the synchronous client is shown in the examples.
Examples
Create a product
from plytix_pim_client import PlytixPimClientSync
client = PlytixPimClientSync()
client.products.create_product(sku="My First Product", label="My First Product")
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
plytix_pim_client-0.0.21.tar.gz
(11.8 kB
view hashes)
Built Distribution
Close
Hashes for plytix_pim_client-0.0.21-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2515558d2fd48a286342b0cd4afadc8ebe9616655579ecd5c78fbbad3e23470a |
|
MD5 | 38f8bd52ffc3f407c5206dcf7513b24a |
|
BLAKE2b-256 | d5d63cb4229cb7344112d23e6f07ddebed6bd2f1be2e3b17229c40fab5edc64d |