Skip to main content

An HTTP client in Python for Plytix PIM API.

Project description

plytix-pim-client

An HTTP client in Python for Plytix PIM API.

PyPI PyPI - Downloads GitHub Action Publish to PyPI

API documentation: https://apidocs.plytix.com

Example

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:

  • products
    • assets
    • attributes
      • groups
    • categories
    • families
      • attributes
    • relationships
    • variants
  • assets
    • categories

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


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-1.2.2.tar.gz (31.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

plytix_pim_client-1.2.2-py3-none-any.whl (81.8 kB view details)

Uploaded Python 3

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

Hashes for plytix_pim_client-1.2.2.tar.gz
Algorithm Hash digest
SHA256 27443312d4c565f44740f2ed2ba3ab379df5c5fd27437445f3c64c3cf23d2381
MD5 571c7fca3bf9dfea8782e4de62492b31
BLAKE2b-256 0ba1042829fc8d97c617adc4d8e247ff968d17f4afd419be6cfc0508549a2fc0

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file plytix_pim_client-1.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for plytix_pim_client-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e5e747c0af32262fa1a61023c00a80d56eeb18f4a7006ae8f482e4373aac7a61
MD5 343ebaa8b682edebc83357972f780ae7
BLAKE2b-256 93c74274eba41c2a9d1a6f450b4aca5c5ad6143418fbff9ae08dbe25b2e45fde

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page