smartexecutorlib
Smart command executor
A lightweight cross-platform library for executing system and subprocess commands with a simple unified interface.
smartexecutorlib - a lightweight cross-platform library for executing system and subprocess commands with a simple unified interface.
Provides a clean wrapper around os.system() and subprocess modules for consistent command execution across different platforms.
- Unified Interface - single API for both
osandsubprocessexecution - Cross-Platform - Windows, Linux, macOS, Termux
- Lightweight - minimal dependencies, simple design
- SmartExecutor - main class with
osandsubexecutors
pip install smartexecutorlib
from smartexecutorlib.executors import SmartExecutor
smart_executor = SmartExecutor()
# Execute using os.system
smart_executor.os.execute('pip list')
# Execute using subprocess
smart_executor.sub.execute('pip list')
SmartExecutor - main executor class
| Attribute | Description |
|---|---|
os | Executor using os.system() |
sub | Executor using subprocess module |
Executor methods:
| Method | Description |
|---|---|
execute(command) | Execute a shell command |
By using this software, you agree to the full disclaimer terms.
Software provided "AS IS" without warranty. You assume all risks.
Full legal disclaimer: See DISCLAIMER.md
License: BSD 3-Clause License