python-sh
Subpackage Descriptions
| single |
:alt: Logo
:alt: Version
:alt: Downloads Status
:alt: Python Versions
:alt: Coverage Status
|
sh is a full-fledged subprocess replacement for Python 3.10 - 3.14, and
PyPy
that allows you to call *any* program as if it were a function:
:alt: Open in GitHub Codespaces
Testing
-------
Tests are run by tox against all supported Python versions. To run, make
the following target::
$> make test
To run a single test::
$> make test='FunctionalTests.test_background' test_one
Docs
----
To build the docs, make sure you've run poetry install to install the dev
dependencies, then::
$> cd docs
$> make html
This will generate the docs in ``docs/build/html``. You can open the
``index.html`` file in your browser to view the docs.
Coverage
--------
First run all of the tests::
$> SH_TESTS_RUNNING=1 coverage run --source=sh -m pytest
This will aggregate a ``.coverage``. You may then visualize the report
with::
$> coverage report
Or generate visual html files with::
$> coverage html
Which will create ``./htmlcov/index.html`` that you may open in a web
browser.
|
Configuration Switches (platform-specific settings discarded)
PY313 ON Build using Python 3.13
PY314 OFF Build using Python 3.14
Package Dependencies by Type
Download groups
| main |
mirror://PYPIWHL/23/dd/6b9aceecddbb3df894003d6a5005bd90bce3cf4743c28c406ebecc8d80f6 |
Distribution File Information
98eba32eeb5ecdd310668737d7461e668afc42b273550d0bc198a1c5c2b1ab36 48619 python-src/sh-2.4.0-py3-none-any.whl
Ports that require python-sh:v13
| No other ports depend on this one. |