I need to create a custom Module for Magento-2 which also has a Python code.

so how to integrate python + Magento into Custom Module.

I mean to say that Magento 2, Custom Module and Python Code need to run on the same platform.

  • 1
    I believe that no one did it previously because it mostly does not make sense.
    – KAndy
    Sep 21, 2019 at 19:15
  • Dear sir now Days Python is more popular in every area of Technology so it's a New for Magento. If we did it successful then we make Wide E-commerce Network with Magento + Python. So pls help.
    – Msquare
    Sep 22, 2019 at 8:11
  • how to integration Python and Magento 2 ???
    – Msquare
    Oct 13, 2019 at 6:02
  • check this link if it's relevant to you devdocs.magento.com/mbi/docs/libraries.html
    – Mohit Rane
    Dec 3, 2019 at 7:50
  • Provided python is available on the same machine that runs the php code you might be able to use exec - see stackoverflow.com/questions/19735250/… Dec 4, 2019 at 9:19

1 Answer 1


Build RPC server on python and call it from Magento Module

  • Agree with this answer. we had almost same situation in our project where we need to process some data vai NODEJS. so we have created API in NODEJS and used those API's in Magento custom module and all worked smoothly. Dec 6, 2019 at 11:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.