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.
Release files for AWS-Mage2Connector 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| AWS-Mage2Connector-0.0.2.tar.gz | 13.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| AWS_Mage2Connector-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.1 kB
Release files / AWS-Mage2Connector-0.0.2.tar.gz
| Download URL | AWS-Mage2Connector-0.0.2.tar.gz |
|---|---|
| Size | 13.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f0f76605b1401dc5134e601374ad4f99faeb3fa5b2dd8607bb5a923ab5743247
|
|
BLAKE2b-256 checksum How to use checksums |
0d3a381f6778be91acb9c1c945945fd75c4208fe8f8bdc32cb2cc4fc34332497
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.1 CPython/3.7.3
|
Release files / AWS_Mage2Connector-0.0.2-py3-none-any.whl
| Download URL | AWS_Mage2Connector-0.0.2-py3-none-any.whl |
|---|---|
| Size | 14.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
87e4080ffd9cb708572ac3a41af06a88d5e68ca8632eca6966c59a6778aea283
|
|
BLAKE2b-256 checksum How to use checksums |
720da091a51fd55330f335a83733a75e870bae0a9f4cd5b7ee609edc01dbaed2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.1 CPython/3.7.3
|