subb

a wrapper module for python subprocess (by MoserMichael)

Subb Alternatives

Similar projects and alternatives to subb

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better subb alternative or higher similarity.

subb reviews and mentions

Posts with mentions or reviews of subb. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-03-25.
  • Bashing the Bash – Replacing Shell Scripts with Python
    8 projects | news.ycombinator.com | 25 Mar 2022
    I wrote this to simplify just that for my own tools; the subprocess module that comes with the batteries has a very general interface, i think that it is a bit complex for a quick script.

    https://github.com/MoserMichael/subb

    https://pypi.org/project/subb/

    Python doesn't have the problem of shell scripting language, it doesn't get impractical, as the program is getting more complex. In bash you have arrays, and even maps, but these aren't pretty. Also the shell scripting language is being evaluated by an parse tree/AST interpreter, that's significantly slower than even python, in it's byte code interpreted form.

    My objective was to get an abstraction, for a one line process run and extraction of the result, similar to what we had in Perl5 with the system library function. https://perldoc.perl.org/functions/system

    Also the shell is impractical, when it comes to slightly more complex programs. There is a limit on what you can do with pipes. Maybe that's the reason why perl is that flexible, as they tried to bridge both realms: Perl had to be useful as a replacement for the quick shell like script, and to be useful as a general purpose programming language.

  • tqdm (Python)
    24 projects | news.ycombinator.com | 16 Dec 2021
    i have a subprocess wrapper, might also be of help: https://github.com/MoserMichael/subb

Stats

Basic subb repo stats
2
2
0.0
about 2 years ago

MoserMichael/subb is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of subb is Python.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com