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*
- Configurable Response Cooldown
Usage
Synchronous client
from plytix_pim_client import PlytixSync
# Set the environment variables PLYTIX_API_KEY and PLYTIX_API_PASSWORD
plytix = PlytixSync()
Asynchronous client
from plytix_pim_client import PlytixAsync
# Set the environment variables PLYTIX_API_KEY and PLYTIX_API_PASSWORD
plytix = PlytixAsync()
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:
productsassetsattributesgroups
categoriesfamiliesattributes
relationshipsvariants
assetscategories
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. Also, you may have a look to the integration tests for more examples.
Examples
Create a product
from plytix_pim_client import PlytixSync
plytix = PlytixSync()
plytix.products.create_product(sku="My First Product", label="My First Product")
Create a product family
from plytix_pim_client import PlytixSync
plytix = PlytixSync()
plytix.products.families.create_family(name="My First Family")
* Known issues
Check out the open Issues with "bug" label.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file plytix_pim_client-1.2.2.tar.gz.
File metadata
- Download URL: plytix_pim_client-1.2.2.tar.gz
- Upload date:
- Size: 31.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27443312d4c565f44740f2ed2ba3ab379df5c5fd27437445f3c64c3cf23d2381
|
|
| MD5 |
571c7fca3bf9dfea8782e4de62492b31
|
|
| BLAKE2b-256 |
0ba1042829fc8d97c617adc4d8e247ff968d17f4afd419be6cfc0508549a2fc0
|
Provenance
The following attestation bundles were made for plytix_pim_client-1.2.2.tar.gz:
Publisher:
publish-to-pypi.yml on TheTelematic/plytix-pim-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
plytix_pim_client-1.2.2.tar.gz -
Subject digest:
27443312d4c565f44740f2ed2ba3ab379df5c5fd27437445f3c64c3cf23d2381 - Sigstore transparency entry: 163409649
- Sigstore integration time:
-
Permalink:
TheTelematic/plytix-pim-client@dd0bb5f86f9d93f90dda1fef27fac0b505e63fc3 -
Branch / Tag:
refs/tags/1.2.2 - Owner: https://github.com/TheTelematic
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@dd0bb5f86f9d93f90dda1fef27fac0b505e63fc3 -
Trigger Event:
release
-
Statement type:
File details
Details for the file plytix_pim_client-1.2.2-py3-none-any.whl.
File metadata
- Download URL: plytix_pim_client-1.2.2-py3-none-any.whl
- Upload date:
- Size: 81.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5e747c0af32262fa1a61023c00a80d56eeb18f4a7006ae8f482e4373aac7a61
|
|
| MD5 |
343ebaa8b682edebc83357972f780ae7
|
|
| BLAKE2b-256 |
93c74274eba41c2a9d1a6f450b4aca5c5ad6143418fbff9ae08dbe25b2e45fde
|
Provenance
The following attestation bundles were made for plytix_pim_client-1.2.2-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on TheTelematic/plytix-pim-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
plytix_pim_client-1.2.2-py3-none-any.whl -
Subject digest:
e5e747c0af32262fa1a61023c00a80d56eeb18f4a7006ae8f482e4373aac7a61 - Sigstore transparency entry: 163409651
- Sigstore integration time:
-
Permalink:
TheTelematic/plytix-pim-client@dd0bb5f86f9d93f90dda1fef27fac0b505e63fc3 -
Branch / Tag:
refs/tags/1.2.2 - Owner: https://github.com/TheTelematic
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@dd0bb5f86f9d93f90dda1fef27fac0b505e63fc3 -
Trigger Event:
release
-
Statement type: