LogFusion is a Python-based command execution tool that combines live spinner animations, real-time log display, and result handling. This tool allows you to execute shell commands with a visually engaging terminal interface.
- Executes multiple shell commands sequentially.
- Displays real-time logs of command outputs.
- Shows a live spinner animation for the current running command.
- Provides color-coded messages for success and failure statuses.
- Python 3.7+
- Compatible with Linux, macOS, and Windows (with proper terminal support).
Install LogFusion directly from PyPI:
pip install LogFusion
Run shell commands with LogFusion as follows:
LogFusion "echo 'Hello, World!'" "ls -l"
LogFusion will execute each command sequentially, displaying real-time logs and animations in the terminal.
When running:
LogFusion "echo 'Hello, World!'" "ls -l"
The terminal output will show:
⠋ Running: echo 'Hello, World!'
✔ [Success] : echo 'Hello, World!'
⠋ Running: ls -l
✔ [Success] : ls -l
You can also use LogFusion in Python scripts:
from LogFusion import LogFusion
commands = ["echo 'Hello, World!'", "ls -l"]
log_fusion = LogFusion()
log_fusion.start(commands)
main.py
: Command-line entry point for the application.LogFusion/
: Contains core modules for logging, spinning animations, command execution, and log reading.requirements.txt
: Lists Python dependencies.
- ANSI escape codes are used for cursor and line control.
- The
colorama
library ensures proper handling of colored text on Windows terminals.
This project is licensed under the MIT License. See LICENSE
for more details.
Contributions are welcome! Feel free to open issues or submit pull requests.
For questions or feedback, please contact Brahim Chifour.