New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

plytix-pim-client

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

plytix-pim-client

An HTTP client in Python for Plytix PIM API.

  • 1.2.2
  • PyPI
  • Socket score

Maintainers
1

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.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc