Fluent Commerce Logo
Docs

Python tool to compare entities attributes

Essential knowledge

Author:

Fluent Commerce

Changed on:

12 Dec 2023

Overview

This is a tool for comparing 2 entities' attributes with the OMS. For example, customer support would like to compare order attributes between Production and UAT.

Key points

  • Pycharm app to help user to compare two entity attributes
Pre-requisite
  • Pycharm installed on your computer
  • vscode installed with the command line. (alternative diff can be used. see the compare section in the code)

Steps to run Pycharm app:Create a new pycharm project and copy and paste the below code into the main.py.  Install all dependency libraries.   Update retailer variables and Run the programThe result will also launch vscode with a visualisation of file comparison:No alt provided
The <Batch_no>_log file has been changed to executable: which means, you can get reopen the result by running the <batch_no>_log file in the command line. note: this is tested in Mac. User might need to re-tune the permission in Windows.