Hacker GitHub

← All repos

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

Mentions per year 21 mentions · busiest year 2014 (4)
20082026
  1. …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
  2. …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…
  3. …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
  4. ▲ 3
    sh: Python Process Launching
    story by tosh · 2024-03-14 · 0 comments
  5. …overview of what this Python lib can do, but if you want to know more: The repository is here: https://github.com/amoffat/sh And the full documentation is there: https://amoffat.github.io/sh/index.html In particular I was wondering if it…
    comment by p4bl0 · 2022-07-24 · in sh.py
  6. …is launching Python processes at every line . Now you have a tangled hybrid of Bash and Python. 0. https://github.com/amoffat/sh
  7. 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
  8. …with other priorities in my life. I don't know the answer, but that's my thought process. 0. https://github.com/amoffat/sh
  9. ▲ 2
    sh: Call any program as if it were a function (Python)
    story by cl3misch · 2021-05-19 · 0 comments
  10. …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
  11. …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
  12. 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)
  13. Check out python sh: https://github.com/amoffat/sh
    comment by monort · 2018-05-15 · in Safe ways to do things in bash
  14. …promotion: if you want to automate subprocesses with python in an intuitive way, give sh a try: https://github.com/amoffat/sh
  15. 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?
  16. …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
  17. 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…
  18. …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
  19. …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.
  20. …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
  21. …to install the thing so for anyone that is equally as lost $ pip install sh or goto the github page https://github.com/amoffat/sh
    comment by jon6 · 2012-09-17 · in Sh.py