{"id":2031066,"url":"https://amoffat.github.io/sh","last_synced_at":"2025-04-01T23:31:23.195Z","repository":{"id":2229709,"uuid":"3182350","full_name":"amoffat/sh","owner":"amoffat","description":"Python process launching","archived":false,"fork":false,"pushed_at":"2024-10-17T22:17:27.000Z","size":2123,"stargazers_count":6978,"open_issues_count":5,"forks_count":506,"subscribers_count":135,"default_branch":"develop","last_synced_at":"2024-10-29T23:49:57.391Z","etag":null,"topics":["devops","python","subprocess"],"latest_commit_sha":null,"homepage":"https://sh.readthedocs.io/en/latest/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amoffat.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["ecederstrand","amoffat"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2012-01-15T05:52:06.000Z","updated_at":"2024-10-29T11:52:30.000Z","dependencies_parsed_at":"2024-01-04T15:27:15.064Z","dependency_job_id":"cd8c8012-e104-4385-85c2-ddccc71c1665","html_url":"https://github.com/amoffat/sh","commit_stats":{"total_commits":1193,"total_committers":98,"mean_commits":"12.173469387755102","dds":0.3788767812238055,"last_synced_commit":"a451ef83252100bc29835f77e05d17b967cd3380"},"previous_names":[],"tags_count":61,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amoffat%2Fsh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amoffat%2Fsh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amoffat%2Fsh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amoffat%2Fsh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amoffat","download_url":"https://codeload.github.com/amoffat/sh/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246574865,"owners_count":20799225,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["devops","python","subprocess"],"created_at":"2024-01-21T02:04:34.849Z","updated_at":"2025-04-01T23:31:23.189Z","avatar_url":"https://github.com/amoffat.png","language":"Python","readme":".. image:: https://raw.githubusercontent.com/amoffat/sh/master/images/logo-230.png\n    :target: https://amoffat.github.com/sh\n    :alt: Logo\n\n**If you are migrating from 1.* to 2.*, please see MIGRATION.md**\n\n|\n\n.. image:: https://img.shields.io/pypi/v/sh.svg?style=flat-square\n    :target: https://pypi.python.org/pypi/sh\n    :alt: Version\n.. image:: https://img.shields.io/pypi/dm/sh.svg?style=flat-square\n    :target: https://pypi.python.org/pypi/sh\n    :alt: Downloads Status\n.. image:: https://img.shields.io/pypi/pyversions/sh.svg?style=flat-square\n    :target: https://pypi.python.org/pypi/sh\n    :alt: Python Versions\n.. image:: https://img.shields.io/coveralls/amoffat/sh.svg?style=flat-square\n    :target: https://coveralls.io/r/amoffat/sh?branch=master\n    :alt: Coverage Status\n\n|\n\nsh is a full-fledged subprocess replacement for Python 3.8 - 3.12, and PyPy\nthat allows you to call *any* program as if it were a function:\n\n.. code:: python\n\n    from sh import ifconfig\n    print(ifconfig(\"eth0\"))\n\nsh is *not* a collection of system commands implemented in Python.\n\nsh relies on various Unix system calls and only works on Unix-like operating\nsystems - Linux, macOS, BSDs etc. Specifically, Windows is not supported.\n\n`Complete documentation here \u003chttps://sh.readthedocs.io/\u003e`_\n\nInstallation\n============\n\n::\n\n    $\u003e pip install sh\n\nSupport\n=======\n* `Andrew Moffat \u003chttps://github.com/amoffat\u003e`_ - author/maintainer\n* `Erik Cederstrand \u003chttps://github.com/ecederstrand\u003e`_ - maintainer\n\n\nDevelopers\n==========\n\nTesting\n-------\n\nTests are run in a docker container against all supported Python versions. To run, make the following target::\n\n    $\u003e make test\n\nTo run a single test::\n\n    $\u003e make test='FunctionalTests.test_background' test_one\n\nDocs\n----\n\nTo build the docs, make sure you've run ``poetry install`` to install the dev dependencies, then::\n\n    $\u003e cd docs\n    $\u003e make html\n\nThis will generate the docs in ``docs/build/html``. You can open the ``index.html`` file in your browser to view the docs.\n\nCoverage\n--------\n\nFirst run all of the tests::\n\n    $\u003e SH_TESTS_RUNNING=1 coverage run --source=sh -m pytest\n\nThis will aggregate a ``.coverage``.  You may then visualize the report with::\n\n    $\u003e coverage report\n\nOr generate visual html files with::\n\n    $\u003e coverage html\n\nWhich will create ``./htmlcov/index.html`` that you may open in a web browser.\n","funding_links":["https://github.com/sponsors/ecederstrand","https://github.com/sponsors/amoffat"],"categories":["Python"],"sub_categories":["Libraries"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/amoffat.github.io%2Fsh","html_url":"https://awesome.ecosyste.ms/projects/amoffat.github.io%2Fsh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/amoffat.github.io%2Fsh/lists"}