Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
Show HN: zxpy, a cleaner version of Google's zx
(opens in new tab)
(github.com)
30 points
tusharsadhwani
5y ago
12 comments
Save
Share
12 comments
9 comments · 3 top-level
top
newest
oldest
_ink_
5y ago
· 3 in 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.
ShamelessC
5y ago
The repository didn't make that claim, OP did -
> Inspired by Google's zx, but made much simpler and more accessible using Python.
nickysielicki
5y ago
OP has the same username as the GitHub repository owner.
1 more reply
tusharsadhwani
OP
5y ago
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.
hutrdvnj
5y ago
· 2 in thread
What's wrong with
https://github.com/xonsh/xonsh
?
tusharsadhwani
OP
5y ago
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.
hutrdvnj
5y ago
What's wrong with
https://github.com/tomerfiliba/plumbum
?
1 more reply
zuzun
5y ago
· 1 in thread
Cool! I like how you are using the AST to resolve the ~"" strings, I would have never thought of that.
tusharsadhwani
OP
5y ago
Thanks!
j
/
k
navigate · click thread line to collapse