The PowerShell and Python Together Series is inspired by many readers asking for an interactive demonstration that combines these two powerful scripting environments. The series is based on the book of the same name published by Apress. We look forward to your feedback and questions.
In Episode two of the series, we utilize PowerShell CmdLets to identify potential files of interest, in this example a set of jpeg files. PowerShell then launches a Python script and passes the path of each identified target photo. Python then processes and extracts EXIF data from each image and provides a table of results back to the PowerShell script.
In the third episode learn how to launch a PowerShell script from Python and acquire data from a remote computer.
In Episode one of the series, we focus on launching a Python script from PowerShell using the PowerShell pipeline to pass a short message to Python. The Python script receives the message and parrots back the message to PowerShell completing the circle. Although, this is a simple demonstration it provides the fundamentals of integrating these two platforms. Consider this the “Hello World” example of PowerShell and Python.