My main application is a .NET desktop application which relies on some calls to python script for AI. I'd like to know if there are some guidelines/recommandations toward how to best have my python code able to use functions from my .net app. Shall I pass functions or shall I have python code also using python.net to callback some functions?
One example of such pattern would be logging. I am using Serilog
and I would like to reuse my .NET configuration for Python. Another example would be a function to read some proprietary content where the code exists in .net not in python.
I am currently using Python.NET successfully to call Python functions from my .NET application.
Thank you!