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.
Available resources
Any of the following resources can be accessed through the client:
products
families
assets
categories
attributes
relationships
Each resource has specific methods to interact with the API. If you use an IDE with code completion, you can see all available methods. If you find a method that is not available or confusing, please open an issue.
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
Built Distribution
Hashes for plytix_pim_client-0.0.23-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bae98fdbef6214d79b3019c2679be3367500dd632d7aec5e7849d11c568d5010 |
|
MD5 | 146c94dd6aefe63d5d1422b922933cae |
|
BLAKE2b-256 | 76fc6cd033299587432fcfd30558968c01d449871b3f04917d482699e300a553 |