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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| shell_interface-3.0.1.tar.gz | 21.7 kB | With provenance | Details for shell_interface-3.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| shell_interface-3.0.1-py3-none-any.whl | Python 3 | none | any | Details for shell_interface-3.0.1-py3-none-any.whl |
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 logRelease 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 logSecurity for shell-interface 3.0.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for shell_interface-3.0.1.tar.gz
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 logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.