cmd-gui-kit
cmd-gui-kit is a Python toolkit for creating enhanced CLI visualizations, including progress bars, spinners, heatmaps, tables, and status indicators. It provides a flexible and modular interface for building visually appealing command-line applications.
Features
- Progress Bars: Dynamic, colored progress bars with percentage and elapsed time.
- Spinners: Animated spinners for task progress.
- Heatmaps: Visualize character frequencies or numerical data with a heatmap.
- ASCII Tables: Create styled tables with custom headers and cell colors.
- Status Indicators: Show success, error, warning, and info statuses with icons.
- Logging: Real-time logs with levels (INFO, WARN, ERROR) and timestamps.
Installation
You can install cmd-gui-kit via pip:
pip install cmd-gui-kit
Usage
Import the Package
from cmd_gui_kit import CmdGUI
gui = CmdGUI()
Progress Bar
import time
for i in range(101):
gui.progress_bar(i, text="Processing...")
time.sleep(0.05)
Spinner
gui.spinner(duration=3, message="Loading...")
Heatmap
gui.heatmap("hello world")
ASCII Table
data = [["Alice", 90], ["Bob", 85], ["Charlie", 95]]
headers = ["Name", "Score"]
gui.ascii_table(data, headers=headers)
Status Indicators
gui.status("Operation completed successfully.", status="success")
gui.status("An error occurred.", status="error")
Logging
gui.log("This is an informational message.", level="info")
gui.log("This is a warning message.", level="warn")
gui.log("This is an error message.", level="error")
Contributing
Contributions are welcome! Please fork the repository and submit a pull request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contact
- Author: cagatay-softgineer
- Email: cagatayalkan.b@gmail.com
- GitHub: https://github.com/cagatay-softgineer/cmd-gui-kit
Release files for cmd_gui_kit 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cmd_gui_kit-1.0.0.tar.gz | 7.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cmd_gui_kit-1.0.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 12.4 kB
Release files / cmd_gui_kit-1.0.0.tar.gz
| Download URL | cmd_gui_kit-1.0.0.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ca16bde29c2cc2b6c84f1e7185da92c6a1015eb8cc732f16da94149d5d8e9b2d
|
|
BLAKE2b-256 checksum How to use checksums |
8d443377a61a9b58a310e03215285dfffa74bc1316732300b394ac645e6b1041
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.3
|
Release files / cmd_gui_kit-1.0.0-py2.py3-none-any.whl
| Download URL | cmd_gui_kit-1.0.0-py2.py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
cf222d8b7bf3f11fef0707e39f7ebebe36703cbd2f6e309492ddd1e86a76c4c6
|
|
BLAKE2b-256 checksum How to use checksums |
c6543571ef9cf366dbd957bff24b6728bf23442dd510487ff90405914966bb50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.3
|