r/Python • • Sep 18 '20

Resource PowerShell vs Python Reference

https://blog.ironmansoftware.com/powershell-vs-python/
198 Upvotes

14 comments sorted by

View all comments

19

u/flopana Sep 19 '20

Since you cna execute shell commands with python I sometimes use it as a shellscript on crack. Because you cna basically do everything that shellscript can and also have standard python plus the boat loads of libraries

5

u/LightShadow 3.13-dev in prod Sep 19 '20

I use invoke instead of Makefiles now.

There's also konch for fast loading an "environment" for scripting...and Xonsh which uses Python as a shell environment and scripting language.

7

u/shiftedcloud Sep 19 '20

ipython makes this even better.

0

u/[deleted] Sep 19 '20

[deleted]

6

u/shiftedcloud Sep 19 '20

It's super neat. Tab completion. Syntax highlighting. Multiline paste to a single, editable bulk line.

It's really nice when you're just trying to figure your way through a problem.

2

u/[deleted] Sep 19 '20

Also inbuilt help (through docstrings)

1

u/alcalde Nov 23 '20

Check out xonsh.