I don’t know if you use the command line a lot, like rm -rf *.

I use the command line a lot and sometimes write Bash scripts, but I get a headache every time I use loops. The loop syntax of Shell scripts is really hard to remember. It’s usually at this point that I think Python is good for… Range is like talking. It’s so friendly.

Today’s recommended project, Xonsh, solves my problem very cleverly by combining the strengths of Python and the Shell, as shown in the figure below.

Seeing the syntax above really makes me extremely comfortable.

This is just one of the usages of Xonsh. Let’s take a look at each one.

Xonsh can be used directly as a Shell command line

Xonsh can be used directly in Python syntax

3. Xonsh uses Python syntax in the Shell

It’s a bit confusing between Python and Shell, but it works. In addition, the Xonsh provides additional extensions, such as the Xontribs extension to third-party systems, rich interfaces to query command execution history, and powerful command line configurable capabilities.

To install xonsh, run the python -m PIP install xonsh command.