amoffat/sh
View on GitHub ↗ ★ 7,248 Python
Python process launching
21 mentions on Hacker News by 17 people: 2 stories, 19 comments · first 2012-09-17 · latest 2025-12-14
20082026
-
…of the advances we see in AI. Arguably without operator overloads we’d be 5 or more years behind. https://github.com/amoffat/sh/blob/2a90b1f87a877e5e09da32fd4...
comment by btown · 2025-12-14 · in Using Python for Scripting -
…to hook into the lower-level `__getattribute__`. And Andrew Moffat's `sh` package still does this ( https://github.com/amoffat/sh/blob/develop/sh.py#L3635 ) even though it now only declares support for 3.8 and above. (Perhaps there was…
comment by zahlman · 2025-08-02 · in Design patterns you should unlearn in Python -
…buy it off of me somehow, but there's no incentive for them either. I don't know how this ends. 1. https://github.com/amoffat/sh
comment by myprotegeai · 2024-10-16 · in FLOSS/fund for free and open source projects -
…is launching Python processes at every line . Now you have a tangled hybrid of Bash and Python. 0. https://github.com/amoffat/sh
comment by daenz · 2022-02-12 · in Easily handle CLI operation via Python instead of regular Bash programs -
For start, https://github.com/amoffat/sh seems to not even mention this problem. No idea whether it would help but clearly staying exactly > I've maintained for over 10 years. I don't recall ever receiving a donation. I am still…
comment by matkoniecz · 2021-12-12 · in Professional maintainers: a wake-up call -
…with other priorities in my life. I don't know the answer, but that's my thought process. 0. https://github.com/amoffat/sh
comment by daenz · 2021-12-11 · in Professional maintainers: a wake-up call -
…things. I'm guessing they haven't actually tried it, because I have used python with the [sh]( https://github.com/amoffat/sh ) package many times to replace bash scripts, and I have never regretted it.
comment by jeremysalwen · 2020-09-07 · in Bash Pitfalls -
…They were pushing me to find a maintainer if I wasn't going to answer some of the open requests. 0. https://github.com/amoffat/sh
comment by daenz · 2020-05-17 · in It’s OK for your open source library to be a bit shitty (2015) -
I agree, but this lib does make it easier: https://github.com/amoffat/sh
comment by bproven · 2020-02-01 · in Writing Safe Shell Scripts (2019) -
Check out python sh: https://github.com/amoffat/sh
comment by monort · 2018-05-15 · in Safe ways to do things in bash -
…promotion: if you want to automate subprocesses with python in an intuitive way, give sh a try: https://github.com/amoffat/sh
comment by daenz · 2016-12-08 · in Don Libes' Expect: A Surprisingly Underappreciated Unix Automation Tool -
Try the python 'sh' module ( https://github.com/amoffat/sh ). For example: from sh import git print git('version')
comment by rch · 2014-09-04 · in Where does Ruby go from here? -
…There's probably others as well -- I'd love to hear about more options in other languages. [1] https://github.com/amoffat/sh/ [2] https://github.com/polydawn/pogo/blob/master/gosh-demo.go [3] https://github.com/polydawn/josh/ (The golang…
comment by heavenlyhash · 2014-09-02 · in Scsh – Scheme as a Unix shell -
Here is a really baffling bug that I can't figure out, and I've tried very hard: https://github.com/amoffat/sh/issues/141 EDIT: whoops, wtf.zip 404s, give me a moment to fix that url. EDIT2: Crap. I have completely lost the test case. Oh…
comment by jordigh · 2014-07-28 · in Ask HN: Lesser-known open source projects that need contributors? -
…to have a very exciting future :) [1] https://github.com/polydawn/pogo/blob/master/gosh-demo.go [2] https://github.com/amoffat/sh/
comment by heavenlyhash · 2014-07-27 · in Elvish – An experimental Unix shell in Go -
…and I'm newish to Clojure. Any criticism is very much welcomed. This is somewhat inspired by https://github.com/amoffat/sh/ , although Clojure macros make this quite a bit easier.
comment by peter-fogg · 2013-02-07 · in Show HN: turtle: a simple Clojure library for shell commands -
…termios). Doesn't the banner state to use the previous version(pbs) for windows support? https://github.com/amoffat/sh/blob/master/sh.py#L33 And if for some reason it still doesn't work out, you can always use subprocess(which this library…
comment by irahul · 2012-11-12 · in Python Libraries you should know about