# Buildsheet autogenerated by ravenadm tool -- Do not edit. NAMEBASE= python-sh VERSION= 2.2.2 KEYWORDS= python VARIANTS= v13 v14 SDESC[v13]= Python subprocess replacement (3.13) SDESC[v14]= Python subprocess replacement (3.14) HOMEPAGE= https://sh.readthedocs.io/ CONTACT= Python_Automaton[python@ironwolf.systems] DOWNLOAD_GROUPS= main SITES[main]= PYPIWHL/70/98/d82f14ac7ffedbd38dfa2383f142b26d18d23ca6cf35a40f4af60df666bd DISTFILE[1]= sh-2.2.2-py3-none-any.whl:main DIST_SUBDIR= python-src DF_INDEX= 1 SPKGS[v13]= single SPKGS[v14]= single OPTIONS_AVAILABLE= PY313 PY314 OPTIONS_STANDARD= none VOPTS[v13]= PY313=ON PY314=OFF VOPTS[v14]= PY313=OFF PY314=ON DISTNAME= sh-2.2.2.dist-info GENERATED= yes [PY313].USES_ON= python:v13,wheel [PY314].USES_ON= python:v14,wheel [FILE:1670:descriptions/desc.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.12, 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 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. [FILE:115:distinfo] e0b15b4ae8ffcd399bc8ffddcbd770a43c7a70a24b16773fbb34c001ad5d52af 38295 python-src/sh-2.2.2-py3-none-any.whl