12 comments

[ 3.2 ms ] story [ 33.8 ms ] thread
What makes it cleaner? To me it looks as if it is zx with a different programming language while using ~ instead of $ for shell commands.
The repository didn't make that claim, OP did -

> Inspired by Google's zx, but made much simpler and more accessible using Python.

the await's were a big no-no for me, that's mostly it. having to unnecessarily write await 20 times for 20 shell commands isn't that clean imo.
The approach is very different. Xonsh is a shell first, and it adds python capabilities on top (with an arguably complicated syntax). Meanwhile, zxpy is just a python script, that can seamlessly run bash commands inside it.
Nothing as such, idk why you're implying that alternatives can't exist...
Usually there's a new technology like react and then there are some alternatives like vue and angular, and they have clear differences.

There are already a bunch of python shell libraries and I want to understand what are the differences of this alternative, maybe there aren't any and it's just a clone.

Cool! I like how you are using the AST to resolve the ~"" strings, I would have never thought of that.