{"id":21236659,"url":"https://github.com/maxg87/shell-interface","last_synced_at":"2026-04-26T13:01:06.183Z","repository":{"id":175541107,"uuid":"654049875","full_name":"MaxG87/shell-interface","owner":"MaxG87","description":"Helpful and convenient utilities to interact with UNIX shells","archived":false,"fork":false,"pushed_at":"2026-01-10T11:31:09.000Z","size":1216,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-12T19:51:32.934Z","etag":null,"topics":["python3","shell"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MaxG87.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-06-15T09:31:04.000Z","updated_at":"2026-01-10T11:31:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"bd542710-11d6-4d44-b178-5d01e3435737","html_url":"https://github.com/MaxG87/shell-interface","commit_stats":null,"previous_names":["maxg87/shell-interface"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/MaxG87/shell-interface","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxG87%2Fshell-interface","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxG87%2Fshell-interface/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxG87%2Fshell-interface/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxG87%2Fshell-interface/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MaxG87","download_url":"https://codeload.github.com/MaxG87/shell-interface/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxG87%2Fshell-interface/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32297899,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T09:34:17.070Z","status":"ssl_error","status_checked_at":"2026-04-26T09:34:00.993Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["python3","shell"],"created_at":"2024-11-21T00:13:10.051Z","updated_at":"2026-04-26T13:01:06.157Z","avatar_url":"https://github.com/MaxG87.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat\u0026labelColor=ef8336)](https://pycqa.github.io/isort/)\n[![Checked with mypy](http://www.mypy-lang.org/static/mypy_badge.svg)](http://mypy-lang.org/)\n[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](http://www.gnu.org/licenses/gpl-3.0)\n\n# Shell Interface\n\nA lightweight Python library providing convenient utilities to interact with UNIX shells.\n\n## Features\n\n- Execute shell commands safely with error handling\n- Pipe the output of one command to another\n- Retrieve system user and group information\n- Logging support with `loguru` (if installed)\n\n## Usage\n\n### Running Shell Commands\n\n```python\nfrom shell_interface import run_cmd\n\nresult = run_cmd(cmd=[\"ls\", \"-l\"], capture_output=True)\nprint(result.stdout.decode())\n```\n\n### Piping Commands\n\n```python\nfrom shell_interface import pipe_pass_cmd_to_real_cmd\n\nresult = pipe_pass_cmd_to_real_cmd(\"echo Hello\", [\"grep\", \"Hello\"])\nprint(result.stdout.decode())\n```\n\n### Getting User and Group Information\n\n```python\nfrom shell_interface import get_user, get_group\n\nuser = get_user()\ngroup = get_group(user)\nprint(f\"User: {user}, Group: {group}\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxg87%2Fshell-interface","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxg87%2Fshell-interface","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxg87%2Fshell-interface/lists"}