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.20.tar.gz
(11.7 kB
view hashes)
Built Distribution
Close
Hashes for plytix_pim_client-0.0.20-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9565ff37fbe027c4704ee60841213f87bb31a5a8e1e2c271ccfffce7c3facd7 |
|
MD5 | 6cf9960b1a0c6754cd5a14944fafc669 |
|
BLAKE2b-256 | 398f2741497466bb61c47d0adb5ef6a61f9b01a57fe3532f70f62bcb650794b2 |