Skip to main content

Python Magento 2 REST API Wrapper

Project description

A Python package that wraps and extends the Magento 2 REST API

Explore the docs »


PyPI Version https://static.pepy.tech/personalized-badge/my-magento?period=total&units=none&left_color=grey&right_color=blue&left_text=Downloads Documentation Status

About MyMagento

MyMagento simplifies interaction with the Magento 2 REST API

If you’ve worked with the Magento 2 API, you’ll know that not all endpoints are created equally.

MyMagento aims to streamline your workflow, offering efficient API wrapper methods for a large number of API operations across multiple endpoints. It takes care of the small details so that you can stay focused on the more important aspects of managing your store.

Main Components

Installation

Documentation

Full documentation can be found on ReadTheDocs

QuickStart: Login with MyMagento

Use the credentials of your Magento 2 admin account to initialize and authenticate() a Client

from magento import Client

>>> api = Client('website.com','username', 'password', login=False)
>>> api.authenticate()

|[ MyMagento | website_username ]|:  Authenticating username on website.com...
|[ MyMagento | website_username ]|:  Logged in to username

Once you initialize a Client, you have a few ways to start interacting with the api

Interacting with the API

For the rest of this README, please refer to the docs

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

my-magento-2.0.0a1.tar.gz (30.9 kB view hashes)

Uploaded Source

Built Distributions

my_magento-2.0.0a1-py3.10.egg (84.5 kB view hashes)

Uploaded Source

my_magento-2.0.0a1-py3-none-any.whl (34.9 kB view hashes)

Uploaded Python 3

Supported by

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