Skip to main content

Code style: black Imports: isort Checked with mypy License: GPL v3

Shell Interface

A lightweight Python library providing convenient utilities to interact with UNIX shells.

Features

  • Execute shell commands safely with error handling
  • Pipe the output of one command to another
  • Retrieve system user and group information
  • Logging support with loguru (if installed)

Usage

Running Shell Commands

from shell_interface import run_cmd

result = run_cmd(cmd=["ls", "-l"], capture_output=True)
print(result.stdout.decode())

Piping Commands

from shell_interface import pipe_pass_cmd_to_real_cmd

result = pipe_pass_cmd_to_real_cmd("echo Hello", ["grep", "Hello"])
print(result.stdout.decode())

Getting User and Group Information

from shell_interface import get_user, get_group

user = get_user()
group = get_group(user)
print(f"User: {user}, Group: {group}")

Metadata

Release files for shell-interface 3.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shell-interface 3.0.1
File Size Uploaded
shell_interface-3.0.1.tar.gz 21.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for shell-interface 3.0.1
File Interpreter ABI Platform
shell_interface-3.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 39.7 kB

Release files / shell_interface-3.0.1.tar.gz

Download URL shell_interface-3.0.1.tar.gz
Size 21.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c268ac7502723876a2776209538c0ef9bc2afaed8cbb3d08e3c77c9cb51151e5
BLAKE2b-256 checksum
How to use checksums
3a136270f23db3f3ab4ccc28236ed89cae39d0cd29be52a358f74ad0d3f7b48c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.

Transparency log

Release files / shell_interface-3.0.1-py3-none-any.whl

Download URL shell_interface-3.0.1-py3-none-any.whl
Size 18.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
91408b9185145c349dae441bc9fddb982dd3d80cf073b813b3f46f1067e0349c
BLAKE2b-256 checksum
How to use checksums
c9cff4d3d725d52d2c04b8df2168e0fa7098d12367cdbb914f3bf04c45c53164
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

3.0.1 This release

2 release files

3.0.0

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.15.2

2 release files

0.14.0

2 release files

0.13.0

2 release files

0.10.0

2 release files

0.9.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page