bash
Bash for Python
Decision gist · record as of 2026-08-14
No. The package is abandoned (last release 2016-05-30, no commits since 2020-04-13), uses shell=True which is a documented security risk for untrusted input, and high install friction (source-only distribution). Only consider if you have legacy code already depending on it and cannot migrate to modern alternatives.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Package uses shell=True under the hood, making it unsuitable for running untrusted or user-supplied commands due to shell injection risk.
- High install friction due to source-only distribution (bash-0.6.tar.gz).
- Package is abandoned—last release was 2016-05-30, with no commits since 2020-04-13.
License · maintenance · safety
UNKNOWN (copyleft) — Licensed under LGPL (copyleft). Derivative works or distributions must comply with copyleft obligations; check your project's license compatibility before use.
last release 2016-05-30 (3728 days) · last repo commit 2020-04-13 · 86 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 79,303 downloads/mo, #14,366 on PyPI
Alternatives
Verify before relying
pip install bash
from bash import bash
b = bash('ls . ')
result = b.bash('grep ".pyc"')
print(b.stdout)- Actual Python version support on modern interpreters: classifiers list 2.7, 3.4, 3.5, but requires_python is unspecified.
- Whether the source tarball builds successfully on current Python versions or systems.
- Security implications of shell=True beyond the documented injection warning.
- Whether this package or its dependencies have known vulnerabilities not yet catalogued in OSV.
What it is and what it does
Bash is a lightweight wrapper around Python's subprocess module that simplifies running shell commands from Python code. It provides a chainable interface where you can call bash() on a result object to pipe commands together, and exposes stdout, stderr, and return codes as attributes. The library is designed to reduce boilerplate when you need to execute bash commands inline rather than spawning separate processes directly.
The package is abandoned and unmaintained since 2016-05-30. It uses shell=True internally, which the documentation explicitly warns makes it unsuitable for untrusted input. Install friction is high because it ships as a source tarball only (bash-0.6.tar.gz).
Use it for
- Quick prototyping or scripting where you need to run simple shell commands from Python without subprocess boilerplate.
- Chaining multiple bash operations (pipes, redirects) in a single Python statement for readability.
- Accessing command output, error messages, and exit codes in a unified object interface.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
The package is abandoned (last release 2016-05-30, no commits since 2020-04-13), uses shell=True which is a documented security risk for untrusted input, and high install friction (source-only distribution). Only consider if you have legacy code already depending on it and cannot migrate to modern alternatives.
Install
bash on PyPI
Before you install
High install friction due to source-only distribution (bash-0.6.tar.gz). Package is abandoned—last release was 2016-05-30, with no commits since 2020-04-13. Not actively maintained.
Package uses shell=True under the hood, making it unsuitable for running untrusted or user-supplied commands due to shell injection risk.
License in practice
Licensed under LGPL (copyleft). Derivative works or distributions must comply with copyleft obligations; check your project's license compatibility before use.
Quickstart
pip install bash
from bash import bash
b = bash('ls . ')
result = b.bash('grep ".pyc"')
print(b.stdout)
Verify before relying
- Actual Python version support on modern interpreters: classifiers list 2.7, 3.4, 3.5, but requires_python is unspecified.
- Whether the source tarball builds successfully on current Python versions or systems.
- Security implications of shell=True beyond the documented injection warning.
- Whether this package or its dependencies have known vulnerabilities not yet catalogued in OSV.
Package facts
| License | UNKNOWN copyleft |
| Python support | Not specified |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Abandoned 3,728 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 79,303 / month, #14,366 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)Operating System :: MacOSOperating System :: POSIXProgramming Language :: Python :: 2.7Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Topic :: Software Development :: Libraries :: Python Modules |
Evidence: bash-0.6.tar.gz
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “run bash commands from python”
- bashProvides a Python wrapper for running bash commands and piping their…
- bash_kernelEnables running and interacting with bash commands directly inside…
- prefect-shellProvides Prefect workflow tasks for executing shell commands and…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also plumbum · pygnuutils · pypyp · subprocrunner · subprocess.run · delegator.py · bashkit · EasyProcess · subprocess-multitee · runez