5 ms·
Show HN: zxpy, a cleaner version of Google's zx
- _ink_ 5y agoWhat 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 agoThe repository didn't make that claim, OP did - > Inspired by Google's zx, but made much simpler and more accessible using Python.
- nickysielicki 5y agoOP has the same username as the GitHub repository owner.
- ShamelessC 5y agoAh - fair enough.
- tusharsadhwani 5y agothe 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 agoWhat's wrong with https://github.com/xonsh/xonsh https://github.com/xonsh/xonsh?
- tusharsadhwani 5y agoThe 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 agoWhat's wrong with https://github.com/tomerfiliba/plumbum https://github.com/tomerfiliba/plumbum?
- tusharsadhwani 5y agoNothing as such, idk why you're implying that alternatives can't exist...
- hutrdvnj 5y agoUsually 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.
- zuzun 5y agoCool! I like how you are using the AST to resolve the ~"" strings, I would have never thought of that.
- tusharsadhwani 5y agoThanks!