Imagine that you need to develop and schedule an application/script to do the following:-
- Reference one or more .net assemblies
- Query the API, get some objects
- for each object call another method in the API
What would you use?
In the past I have created small console applications that do the above, but it seems a bit clumsy and overkill.
I imagine something like PowerShell or IronPython might be a better fit.
Any recommendations?
IronPython.
I trialled using both Powershell and IronPython for the above task and came to the conclusion that IronPython was the best fit (for me).
To be fair either Powershell or any DLR based language such as IronPython or IronRuby would suit the task and would be less overhead than looking after trivial console applications.
If all you are doing is consuming a .net library and doing some scripting then IronPython edges Powershell. If you want to utilise some sort of shell-type functionality or use existing CMDLETS then Powershell is a better choice.
IronPython, being a implementation of python, brings all the advantages of python for scripting such as being easy to learn, easy to read and quick to develop in.