Skip to main content

Use to connect Magento 2.

Project description

AWS-Mage2Connector

=====================

Synopsis

The python extension is used to connect the Magento 2 with MySQL connection and RESTful API to perform all of the data related functions.

Configuration

import logging, sys
logging.basicConfig(
	level=logging.INFO
    handlers=[
        logging.StreamHandler(sys.stdout)
    ]
)
logger = logging.getLogger()

from aws_mage2connector import Mage2Connector
setting = {
    "MAGE2DBSERVER": "127.0.0.1",
	"MAGE2DBUSERNAME": "admin",
	"MAGE2DBPASSWORD": "12345abc",
	"MAGE2DB": "mage23ee",
	"MAGE2DBPORT": 10022,
	"VERSION": "EE"
}
mage2Connector = Mage2Connector(setting=setting, logger=logger)

MAGE2DBSERVER

Magento 2 MySQL DB Server full DNS name or IP address.

MAGE2DBUSERNAME

Magento 2 MySQL username.

MAGE2DBPASSWORD

Magento 2 MySQL password.

MAGE2DB

Magento 2 MySQL database name.

MAGE2DBPORT

Magento 2 MySQL database port.

VERSION

Magento 2 EE/CE

Sync Products

sku='abc-111'
attributeSet='Default'
data={
	'status': '1',
	'visibility': '4',
	'tax_class_id': '2',
	'short_description': 'XXXXXXXXXX', 
	'color': 'White', 
	'weight': '1',
	'name': 'XXXXXXXXXX', 
	'description': 'XXXXXXXXXX', 
	'price': '5.0'
}
typeId='simple'
storeId='0'
mage2Connector.syncProduct(sku, attributeSet, data, typeId, storeId)

Related Articles

Feel free to create a GitHub issue or send us an email for support regarding this application.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for AWS-Mage2Connector, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size AWS_Mage2Connector-0.0.2-py3-none-any.whl (14.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size AWS-Mage2Connector-0.0.2.tar.gz (13.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page