IPC between .net core and python RRS feed

  • Question

  • Dear Team,

    please help me with best approach of IPC. The folowing is my requirement.

    I am using .net core3.1 version for developing app1.

    I am using python 3.6 version for developing GUI (app2)

    My development environment is Linux.

    Using .net core app1 is developed and app2 is developed using python.

    app1 is business logic implementation and app2 is GUI using python Qt.

    I want to establish communication b/w python and .net core app. if app2 clicks something on UI the information is triggered a logic in app1 and app1 do something and it should be notified to app1.

    please help me with best IPC approach.

    Thanks in advance,


    • Edited by RaviRaju Tuesday, March 3, 2020 6:56 AM
    Tuesday, March 3, 2020 6:53 AM

All replies

  • IMO, the only way this would work for you is  to use ASP.NET Core 3.x WebAPI, a restful service, and  some kind of HTTPclinet used by Python for some kind of inter process communications. 

    One the other hand,  why try to use Python? Why not just use ASP.NET Core 3.x Razor pages that uses the ASP.NET Core MVC pipeline this is assuming you know how to use HTML, JavaScript, CSS, maybe Bootstrap, know the HTTP Request methods and know how to work the full stack.

    The domain logic could be in the Models folder as Domain Model classs/object in the  Razor UI project, or you  could use a  classlib project the UI project has reference to. The  domain logic is in a class/object  in the classlib project. The is no IPC invloved with the approach. Of course ASP.NET Core runs on the Linux platform.

    I show an example of using Razor pages in the below link.

    ASP.NET Core is in the ASP.NET forums.


    Tuesday, March 3, 2020 8:00 AM
  • Hi RaviRaju,

    Thank you for posting here.

    I'm not familiar with python, but I found some posts based on your description, please check if it helpful to you.

    Named Pipes IPC: Python server, C# Client

    Simplest way to communicate between Python and C# using IPC?

    Interprocess communication between C# and Python

    Best Regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    Tuesday, March 3, 2020 8:57 AM