python-sh
Port variant v11
Summary Python subprocess replacement (3.11)
BROKEN
Package version 2.1.0
Homepage https://sh.readthedocs.io/
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants v12
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 12 OCT 2024, 19:09:16 UTC
Port created 02 FEB 2018, 15:29:04 UTC
Subpackage Descriptions
single :alt: Logo **If you are migrating from 1.* to 2.*, please see MIGRATION.md** | :alt: Version :alt: Downloads Status :alt: Python Versions :alt: Coverage Status | sh is a full-fledged subprocess replacement for Python 3.8 - 3.11, and PyPy that allows you to call *any* program as if it were a function: .. code:: python from sh import ifconfig print(ifconfig("eth0")) sh is *not* a collection of system commands implemented in Python. sh relies on various Unix system calls and only works on Unix-like operating systems - Linux, macOS, BSDs etc. Specifically, Windows is not supported. [Complete documentation here] Installation ============ :: $> pip install sh Support ======= * [Andrew Moffat] - author/maintainer * [Erik Cederstrand] - maintainer Developers ========== Testing ------- Tests are run in a docker container 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 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)
PY311 ON Build using Python 3.11 PY312 OFF Build using Python 3.12
Package Dependencies by Type
Build (only) python-pip:single:v11
autoselect-python:single:std
Build and Runtime python311:single:std
Download groups
main mirror://PYPIWHL/00/59/f6551f49c123751e921038c24215157bd50aef375ced16cac57229678c43
Distribution File Information
bf5e44178dd96a542126c2774e9b7ab1d89bfe0e2ef84d92e6d0ed7358d63d01 38080 sh-2.1.0-py3-none-any.whl
Ports that require python-sh:v11
No other ports depend on this one.