devops33 0.3.0__tar.gz → 0.5.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: devops33
3
- Version: 0.3.0
3
+ Version: 0.5.0
4
4
  Summary: An interactive CLI tool for learning Docker, Git, Prometheus, and Kubernetes commands.
5
5
  Author-email: DevOps Assistant <assistant@example.com>
6
6
  Project-URL: Homepage, https://github.com/example/devops-lab-assistant
@@ -2,17 +2,16 @@ import os
2
2
  import sys
3
3
  import time
4
4
 
5
- # --- ANSI Color Codes for Premium Look ---
5
+ # --- Subtle ANSI Color Palette ---
6
6
  class Colors:
7
- HEADER = '\033[95m'
8
- BLUE = '\033[94m'
9
- CYAN = '\033[96m'
10
- GREEN = '\033[92m'
11
- YELLOW = '\033[93m'
12
- RED = '\033[91m'
7
+ DIM = '\033[2m'
8
+ GREY = '\033[90m'
9
+ SOFT_BLUE = '\033[34m'
10
+ SOFT_CYAN = '\033[36m'
11
+ SOFT_GREEN = '\033[32m'
12
+ SOFT_YELLOW = '\033[33m'
13
13
  BOLD = '\033[1m'
14
- UNDERLINE = '\033[4m'
15
- END = '\033[0m'
14
+ RESET = '\033[0m'
16
15
 
17
16
  # --- Command Data ---
18
17
  COMMANDS = {
@@ -103,72 +102,86 @@ def clear_screen():
103
102
 
104
103
  def print_banner():
105
104
  banner = f"""
106
- {Colors.CYAN}{Colors.BOLD}=================================================
107
- DEVOPS LAB COMMAND ASSISTANT
108
- ================================================={Colors.END}
105
+ {Colors.GREY}{Colors.BOLD}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
106
+ DEVOPS WORKFLOW SEQUENCER
107
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━{Colors.RESET}
109
108
  """
110
109
  print(banner)
111
110
 
112
111
  def print_all_commands():
113
112
  clear_screen()
114
113
  print_banner()
115
- print(f"{Colors.YELLOW}{Colors.BOLD}PRINTING ALL COMMANDS:{Colors.END}\n")
114
+ print(f"{Colors.SOFT_CYAN}Initializing full workflow sequence...{Colors.RESET}\n")
115
+ time.sleep(0.5)
116
116
 
117
+ index = 1
117
118
  for category, cmds in COMMANDS.items():
118
- print(f"{Colors.HEADER}--- {category} ---{Colors.END}")
119
+ print(f"\n{Colors.BOLD}{Colors.SOFT_BLUE}[ {category.upper()} ]{Colors.RESET}")
120
+ print(f"{Colors.GREY}─────────────────────────────────────────{Colors.RESET}")
119
121
  for item in cmds:
120
- print(f"{Colors.GREEN}{item['cmd']:<45}{Colors.END} | {item['desc']}")
122
+ print(f"{Colors.SOFT_GREEN}[{index:02d}]{Colors.RESET} {Colors.BOLD}{item['cmd']}{Colors.RESET}")
123
+ print(f" {Colors.GREY}↳ {item['desc']}{Colors.RESET}")
124
+ index += 1
125
+ time.sleep(0.05) # Subtle "processing" delay
121
126
  print()
122
127
 
123
- input(f"\n{Colors.BLUE}Press Enter to return to menu...{Colors.END}")
128
+ print(f"\n{Colors.SOFT_GREEN} Sequence complete.{Colors.RESET}")
129
+ input(f"\n{Colors.GREY}Return to control center...{Colors.RESET}")
124
130
 
125
131
  def show_category(category):
126
132
  clear_screen()
127
133
  print_banner()
128
- print(f"{Colors.YELLOW}{Colors.BOLD}{category.upper()} COMMANDS:{Colors.END}\n")
134
+ print(f"{Colors.SOFT_CYAN}Loading {category} process sequence...{Colors.RESET}\n")
135
+ time.sleep(0.3)
129
136
 
130
- for item in COMMANDS[category]:
131
- print(f"{Colors.GREEN}{item['cmd']:<45}{Colors.END} | {item['desc']}")
137
+ print(f"{Colors.BOLD}{Colors.SOFT_BLUE}[ {category.upper()} ]{Colors.RESET}")
138
+ print(f"{Colors.GREY}─────────────────────────────────────────{Colors.RESET}")
132
139
 
133
- input(f"\n{Colors.BLUE}Press Enter to return to menu...{Colors.END}")
140
+ for i, item in enumerate(COMMANDS[category], 1):
141
+ print(f"{Colors.SOFT_GREEN}[{i:02d}]{Colors.RESET} {Colors.BOLD}{item['cmd']}{Colors.RESET}")
142
+ print(f" {Colors.GREY}↳ {item['desc']}{Colors.RESET}")
143
+ time.sleep(0.05)
144
+
145
+ print(f"\n{Colors.SOFT_GREEN}✓ Sequence ready.{Colors.RESET}")
146
+ input(f"\n{Colors.GREY}Return to control center...{Colors.RESET}")
134
147
 
135
148
  def main():
136
149
  while True:
137
150
  clear_screen()
138
151
  print_banner()
139
- print(f"{Colors.BOLD}Select an option:{Colors.END}")
140
- print(f"{Colors.CYAN}1.{Colors.END} View Docker Commands")
141
- print(f"{Colors.CYAN}2.{Colors.END} View Git Commands")
142
- print(f"{Colors.CYAN}3.{Colors.END} View Prometheus & Utils")
143
- print(f"{Colors.CYAN}4.{Colors.END} View Kubernetes Commands")
144
- print(f"{Colors.CYAN}5.{Colors.END} {Colors.BOLD}Print ALL Commands{Colors.END}")
145
- print(f"{Colors.RED}6. Exit{Colors.END}")
152
+ print(f"{Colors.DIM}Select operational module:{Colors.RESET}")
153
+ print(f"{Colors.SOFT_CYAN}01.{Colors.RESET} Docker Services")
154
+ print(f"{Colors.SOFT_CYAN}02.{Colors.RESET} Git Workflow")
155
+ print(f"{Colors.SOFT_CYAN}03.{Colors.RESET} Prometheus & Utilities")
156
+ print(f"{Colors.SOFT_CYAN}04.{Colors.RESET} Kubernetes Cluster")
157
+ print(f"{Colors.SOFT_CYAN}05.{Colors.RESET} {Colors.BOLD}Sequential Workflow Listing{Colors.RESET}")
158
+ print(f"{Colors.GREY}06.{Colors.RESET} Exit System")
146
159
 
147
- choice = input(f"\n{Colors.YELLOW}Enter choice (1-6): {Colors.END}")
160
+ choice = input(f"\n{Colors.SOFT_YELLOW}cmd_select >> {Colors.RESET}")
148
161
 
149
- if choice == '1':
162
+ if choice in ['1', '01']:
150
163
  show_category("Docker")
151
- elif choice == '2':
164
+ elif choice in ['2', '02']:
152
165
  show_category("Git")
153
- elif choice == '3':
166
+ elif choice in ['3', '03']:
154
167
  show_category("Prometheus & Utils")
155
- elif choice == '4':
168
+ elif choice == '4' or choice == '04':
156
169
  show_category("Kubernetes")
157
- elif choice == '5':
170
+ elif choice == '5' or choice == '05':
158
171
  print_all_commands()
159
- elif choice == '6':
160
- print(f"\n{Colors.GREEN}Happy Coding! Exiting...{Colors.END}")
161
- time.sleep(1)
172
+ elif choice == '6' or choice == '06':
173
+ print(f"\n{Colors.SOFT_GREEN}System shutdown initiated...{Colors.RESET}")
174
+ time.sleep(0.8)
162
175
  break
163
176
  else:
164
- print(f"\n{Colors.RED}Invalid choice, try again.{Colors.END}")
177
+ print(f"\n{Colors.SOFT_YELLOW}Command unrecognized.{Colors.RESET}")
165
178
  time.sleep(1)
166
179
 
167
180
  def run():
168
181
  try:
169
182
  main()
170
183
  except KeyboardInterrupt:
171
- print(f"\n\n{Colors.RED}Program interrupted. Exiting...{Colors.END}")
184
+ print(f"\n\n{Colors.GREY}Process terminated by user.{Colors.RESET}")
172
185
  sys.exit(0)
173
186
 
174
187
  if __name__ == "__main__":
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: devops33
3
- Version: 0.3.0
3
+ Version: 0.5.0
4
4
  Summary: An interactive CLI tool for learning Docker, Git, Prometheus, and Kubernetes commands.
5
5
  Author-email: DevOps Assistant <assistant@example.com>
6
6
  Project-URL: Homepage, https://github.com/example/devops-lab-assistant
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "devops33"
7
- version = "0.3.0"
7
+ version = "0.5.0"
8
8
  authors = [
9
9
  { name="DevOps Assistant", email="assistant@example.com" },
10
10
  ]
File without changes
File without changes
File without changes
File without changes
File without changes