I’m new to Python and I want my Python script to be able to communicate with my Windows program (developed in Delphi, FWIW).
Basically, the Python script will download a set of data from other data sources, and for each record it’s downloaded, I’ll log it and tell the Windows program. For logging I’ll use the Python standard logging library if possible, but what’s the easiest way to tell the win32 program so that I can show the process of the downloading to the end user?
Note: I know Python4Delphi, but it’s not documented well, and I want to keep things simple.
Edit 1: There will be only one Delphi exe and multiple python scripts.
Thanks.
If your Delphi program is the one executing the Python program, then you can simply have the script write progress messages to standard output, and you can read them in your Delphi program. (If you do it this way, then it doesn’t matter that one program is in Python and the other is in Delphi. Either program can be written in whatever language you want.)