smartexecutorlib v1.0.0

Smart command executor

A lightweight cross-platform library for executing system and subprocess commands with a simple unified interface.

Python Command Executor Cross-Platform System PyPI

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 os and subprocess execution
  • Cross-Platform — Windows, Linux, macOS, Termux
  • Lightweight — minimal dependencies, simple design
  • SmartExecutor — main class with os and sub executors

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

AttributeDescription
osExecutor using os.system()
subExecutor using subprocess module

Executor methods:

MethodDescription
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