Hacker ApprovedDepartments

sh Python library

Hacker Approved

Ranked 5 of 14 Python libraries by recommenders

Python library that makes running external commands from scripts easier. The most common caveat is that it requires an extra dependency.

Python library that makes running external commands from scripts easier. The most common caveat is that it requires an extra dependency.

12 people gave an opinion

recommend it
10
criticize it
2
approval share
83%
Each figure is one person. RecommendsCriticizes

Recommended in 6 of 13 months

  1. November 2025: not recommended
  2. December 2025: recommended
  3. January 2026: recommended
  4. February 2026: recommended
  5. March 2026: not recommended
  6. April 2026: not recommended
  7. May 2026: recommended
  8. June 2026: not recommended
  9. July 2026: recommended
  10. August 2026: not recommended
  11. September 2026: not recommended
  12. October 2026: recommended
  13. November 2026: not recommended (month in progress)

Why it carries the badge

  • 10 people recommend itNeeds 10 or more, met.
  • 5 recommenders for every criticNeeds 2 to 1 or better, met.
  • Recommended in 6 of 13 monthsNeeds 4 or more, met.

The same three rules apply to every product, and the badge can’t be bought. How the badge works

What people say about it

The reasons people give, with the number of comments that give each one. Open a reason to read what they said.

Why people recommend it

Each mark is one comment

  • Makes Python scripting saner

    “makes scripting in python with external commands a lot easier”

    Comment from 13 Dec 2025 in “Using Python for Scripting”

    “Honestly, Python with the "sh" module is a lot more sane.”

    Comment from 26 Feb 2026 in “What does " 2>&1 " mean?”

What people warn about

Each mark is one comment

  • Requires an extra dependency

    “is nice but it requires a dependency”

    Comment from 13 Dec 2025 in “Using Python for Scripting”

Other Python libraries people recommend

The four most recommended other Python libraries, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.

sh Python library compared with 4 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
Polars1525075%121 yr3 ownersApproved
pandas939849%1110 yrs7 owners—
NumPy863273%12—Approved
SciPy12286%7—Approved
sh Python libraryThis page10283%6—Approved
See all 14 Python libraries, ranked

What people said

8 of the 12 comments that mention it, newest first. Each links to the original comment.

“It's bash or sh as far as I'm concerned.”

RecommendsComment from 11 Oct 2026 in “The tilde in your PATH may not be your HOME”

“Always assume sh, it's the most portable.”

RecommendsComment from 27 Feb 2026 in “What does " 2>&1 " mean?”

“Honestly, Python with the "sh" module is a lot more sane.”

RecommendsComment from 26 Feb 2026 in “What does " 2>&1 " mean?”

“it makes sense to have beginners use sh instead of bash”

RecommendsComment from 15 Jan 2026 in “Test Your Square Brackets”

“Those are really bad defaults.”

CriticizesComment from 14 Dec 2025 in “Using Python for Scripting”

“I love how this import trick shows how hackable Python is”

RecommendsComment from 14 Dec 2025 in “Using Python for Scripting”

“is nice but it requires a dependency”

MixedComment from 13 Dec 2025 in “Using Python for Scripting”

“makes scripting in python with external commands a lot easier”

RecommendsComment from 13 Dec 2025 in “Using Python for Scripting”

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.