The magento Package

The magento package provides various tools to help simplify interaction with the Magento 2 API.

Functions

magento.get_api(**kwargs)[source]View on GitHub

Initialize a Client using credentials stored in environment variables

Any valid Client kwargs can be used in addition to and/or instead of environment variables

Usage:

import magento

api = magento.get_api()
Parameters

kwargs – any valid kwargs for Client

Raises

ValueError – if login credentials are missing

Return type

Client

Subpackages

The magento.models Subpackage