devops33 0.1.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.
devops33-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 DevOps Assistant
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,57 @@
1
+ Metadata-Version: 2.4
2
+ Name: devops33
3
+ Version: 0.1.0
4
+ Summary: An interactive CLI tool for learning Docker, Git, Prometheus, and Kubernetes commands.
5
+ Author-email: DevOps Assistant <assistant@example.com>
6
+ Project-URL: Homepage, https://github.com/example/devops-lab-assistant
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: License :: OSI Approved :: MIT License
9
+ Classifier: Operating System :: OS Independent
10
+ Requires-Python: >=3.7
11
+ Description-Content-Type: text/markdown
12
+ License-File: LICENSE
13
+ Dynamic: license-file
14
+
15
+ # DevOps Lab Assistant 🚀
16
+
17
+ An interactive CLI tool designed to help you learn and remember essential DevOps commands for Docker, Git, Prometheus, and Kubernetes.
18
+
19
+ ## Installation 💻
20
+
21
+ You can install the package directly from PyPI (once published):
22
+
23
+ ```bash
24
+ pip install devops33
25
+ ```
26
+
27
+ ## Usage 🛠️
28
+
29
+ After installation, you can run the tool in two ways:
30
+
31
+ 1. **Direct command**:
32
+ ```bash
33
+ devops33
34
+ ```
35
+
36
+ 2. **As a module**:
37
+ ```bash
38
+ python3 -m devops
39
+ ```
40
+
41
+ ## Features ✨
42
+
43
+ - **Interactive Menu**: Navigate through different tool categories.
44
+ - **Categorized Commands**: Clear lists for Docker, Git, Prometheus, and Kubernetes.
45
+ - **One-Line Explanations**: Every command comes with a concise explanation.
46
+ - **Full List View**: View all commands at once for a quick overview.
47
+
48
+ ## Commands Included 📝
49
+
50
+ - **Docker**: WSL setup, image management, container lifecycle, Docker Hub.
51
+ - **Git**: Repository initialization, staging, committing, remote sync.
52
+ - **Prometheus & Utils**: File management, Docker Compose.
53
+ - **Kubernetes**: Minikube management, pod/service/deployment operations, scaling.
54
+
55
+ ## License 📄
56
+
57
+ This project is licensed under the MIT License.
@@ -0,0 +1,43 @@
1
+ # DevOps Lab Assistant 🚀
2
+
3
+ An interactive CLI tool designed to help you learn and remember essential DevOps commands for Docker, Git, Prometheus, and Kubernetes.
4
+
5
+ ## Installation 💻
6
+
7
+ You can install the package directly from PyPI (once published):
8
+
9
+ ```bash
10
+ pip install devops33
11
+ ```
12
+
13
+ ## Usage 🛠️
14
+
15
+ After installation, you can run the tool in two ways:
16
+
17
+ 1. **Direct command**:
18
+ ```bash
19
+ devops33
20
+ ```
21
+
22
+ 2. **As a module**:
23
+ ```bash
24
+ python3 -m devops
25
+ ```
26
+
27
+ ## Features ✨
28
+
29
+ - **Interactive Menu**: Navigate through different tool categories.
30
+ - **Categorized Commands**: Clear lists for Docker, Git, Prometheus, and Kubernetes.
31
+ - **One-Line Explanations**: Every command comes with a concise explanation.
32
+ - **Full List View**: View all commands at once for a quick overview.
33
+
34
+ ## Commands Included 📝
35
+
36
+ - **Docker**: WSL setup, image management, container lifecycle, Docker Hub.
37
+ - **Git**: Repository initialization, staging, committing, remote sync.
38
+ - **Prometheus & Utils**: File management, Docker Compose.
39
+ - **Kubernetes**: Minikube management, pod/service/deployment operations, scaling.
40
+
41
+ ## License 📄
42
+
43
+ This project is licensed under the MIT License.
@@ -0,0 +1 @@
1
+ from .main import run
@@ -0,0 +1,4 @@
1
+ from .main import run
2
+
3
+ if __name__ == "__main__":
4
+ run()
@@ -0,0 +1,148 @@
1
+ import os
2
+ import sys
3
+ import time
4
+
5
+ # --- ANSI Color Codes for Premium Look ---
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'
13
+ BOLD = '\033[1m'
14
+ UNDERLINE = '\033[4m'
15
+ END = '\033[0m'
16
+
17
+ # --- Command Data ---
18
+ COMMANDS = {
19
+ "Docker": [
20
+ {"cmd": "wsl -d Ubuntu", "desc": "Opens the Ubuntu WSL distribution from PowerShell."},
21
+ {"cmd": "sudo docker --version", "desc": "Verifies if Docker is installed and shows the version."},
22
+ {"cmd": "sudo docker run hello-world", "desc": "Tests if Docker is working correctly by running a tiny test container."},
23
+ {"cmd": "sudo docker images", "desc": "Lists all Docker images currently downloaded on your system."},
24
+ {"cmd": "sudo docker ps -a", "desc": "Shows all containers, including those that are currently stopped."},
25
+ {"cmd": "sudo docker pull nginx", "desc": "Downloads the official Nginx image from Docker Hub."},
26
+ {"cmd": "sudo docker run -d --name mynginx -p 8080:80 nginx", "desc": "Runs an Nginx container in detached mode with port mapping."},
27
+ {"cmd": "sudo docker stop mynginx", "desc": "Stops a running container named 'mynginx'."},
28
+ {"cmd": "sudo docker rm mynginx", "desc": "Permanently removes a stopped container named 'mynginx'."},
29
+ {"cmd": "sudo docker build -t mypythonapp .", "desc": "Builds a custom Docker image from the Dockerfile in the current directory."},
30
+ {"cmd": "sudo docker login", "desc": "Authenticates your local Docker client with your Docker Hub account."},
31
+ {"cmd": "sudo docker tag mypythonapp user/app:v1", "desc": "Tags a local image for uploading to a specific Docker Hub repository."},
32
+ {"cmd": "sudo docker push user/app:v1", "desc": "Uploads the tagged image to your Docker Hub repository."},
33
+ {"cmd": "sudo docker rmi mypythonapp", "desc": "Removes a local Docker image from your system."}
34
+ ],
35
+ "Git": [
36
+ {"cmd": "sudo apt update", "desc": "Updates the local package list to ensure you get the latest software."},
37
+ {"cmd": "git --version", "desc": "Checks the installed version of Git on your system."},
38
+ {"cmd": "git init", "desc": "Initializes a new Git repository in the current directory."},
39
+ {"cmd": "git status", "desc": "Shows the current state of the working directory and staging area."},
40
+ {"cmd": "git config --global user.name 'Name'", "desc": "Sets your name globally for all Git commits on the machine."},
41
+ {"cmd": "git add <file>", "desc": "Adds specific file changes to the staging area for the next commit."},
42
+ {"cmd": "git commit -m 'message'", "desc": "Saves your staged changes as a permanent snapshot in history."},
43
+ {"cmd": "git log --oneline", "desc": "Displays a compact, one-line version of your commit history."},
44
+ {"cmd": "git remote add origin <url>", "desc": "Links your local repository to a remote repository on GitHub/GitLab."},
45
+ {"cmd": "git push -u origin main", "desc": "Uploads your local commits to the remote 'main' branch."}
46
+ ],
47
+ "Prometheus & Utils": [
48
+ {"cmd": "mkdir folder_name", "desc": "Creates a new directory for your project files."},
49
+ {"cmd": "nano filename", "desc": "Opens a simple text editor in the terminal to create or edit files."},
50
+ {"cmd": "cat filename", "desc": "Displays the entire contents of a file directly in the terminal."},
51
+ {"cmd": "sudo docker compose up -d", "desc": "Starts multi-container applications in detached mode using a compose file."},
52
+ {"cmd": "sudo docker compose down", "desc": "Stops and removes all containers defined in the compose file."}
53
+ ],
54
+ "Kubernetes": [
55
+ {"cmd": "minikube start", "desc": "Starts the local Kubernetes cluster using Minikube."},
56
+ {"cmd": "minikube status", "desc": "Checks the status of the local Minikube cluster."},
57
+ {"cmd": "kubectl version --client", "desc": "Verifies that the kubectl client is installed and working."},
58
+ {"cmd": "kubectl run my-pod --image=nginx", "desc": "Creates and runs a simple Nginx pod in the cluster."},
59
+ {"cmd": "kubectl get pods", "desc": "Lists all pods currently running in the cluster."},
60
+ {"cmd": "kubectl get pod my-pod -o wide", "desc": "Shows detailed information about a specific pod, including its IP."},
61
+ {"cmd": "minikube service my-service --url", "desc": "Generates a URL to access a service running in Minikube."},
62
+ {"cmd": "kubectl port-forward pod/my-pod 8080:80", "desc": "Forwards local port 8080 to the pod's port 80 for local access."},
63
+ {"cmd": "kubectl expose pod my-pod --type=NodePort", "desc": "Exposes a pod to external traffic using a NodePort service."},
64
+ {"cmd": "kubectl get services", "desc": "Lists all services currently active in the cluster."},
65
+ {"cmd": "kubectl delete service my-service", "desc": "Removes a service from the Kubernetes cluster."},
66
+ {"cmd": "kubectl delete pod my-pod", "desc": "Deletes a specific pod from the cluster."},
67
+ {"cmd": "kubectl create deployment my-deploy", "desc": "Creates a deployment to manage a set of replicated pods."},
68
+ {"cmd": "kubectl get deployment", "desc": "Lists all deployments and their current status."},
69
+ {"cmd": "kubectl scale deployment --replicas=5", "desc": "Changes the number of replicas for a specific deployment."},
70
+ {"cmd": "minikube stop", "desc": "Stops the running local Kubernetes cluster."}
71
+ ]
72
+ }
73
+
74
+ def clear_screen():
75
+ os.system('cls' if os.name == 'nt' else 'clear')
76
+
77
+ def print_banner():
78
+ banner = f"""
79
+ {Colors.CYAN}{Colors.BOLD}=================================================
80
+ DEVOPS LAB COMMAND ASSISTANT
81
+ ================================================={Colors.END}
82
+ """
83
+ print(banner)
84
+
85
+ def print_all_commands():
86
+ clear_screen()
87
+ print_banner()
88
+ print(f"{Colors.YELLOW}{Colors.BOLD}PRINTING ALL COMMANDS:{Colors.END}\n")
89
+
90
+ for category, cmds in COMMANDS.items():
91
+ print(f"{Colors.HEADER}--- {category} ---{Colors.END}")
92
+ for item in cmds:
93
+ print(f"{Colors.GREEN}{item['cmd']:<45}{Colors.END} | {item['desc']}")
94
+ print()
95
+
96
+ input(f"\n{Colors.BLUE}Press Enter to return to menu...{Colors.END}")
97
+
98
+ def show_category(category):
99
+ clear_screen()
100
+ print_banner()
101
+ print(f"{Colors.YELLOW}{Colors.BOLD}{category.upper()} COMMANDS:{Colors.END}\n")
102
+
103
+ for item in COMMANDS[category]:
104
+ print(f"{Colors.GREEN}{item['cmd']:<45}{Colors.END} | {item['desc']}")
105
+
106
+ input(f"\n{Colors.BLUE}Press Enter to return to menu...{Colors.END}")
107
+
108
+ def main():
109
+ while True:
110
+ clear_screen()
111
+ print_banner()
112
+ print(f"{Colors.BOLD}Select an option:{Colors.END}")
113
+ print(f"{Colors.CYAN}1.{Colors.END} View Docker Commands")
114
+ print(f"{Colors.CYAN}2.{Colors.END} View Git Commands")
115
+ print(f"{Colors.CYAN}3.{Colors.END} View Prometheus & Utils")
116
+ print(f"{Colors.CYAN}4.{Colors.END} View Kubernetes Commands")
117
+ print(f"{Colors.CYAN}5.{Colors.END} {Colors.BOLD}Print ALL Commands{Colors.END}")
118
+ print(f"{Colors.RED}6. Exit{Colors.END}")
119
+
120
+ choice = input(f"\n{Colors.YELLOW}Enter choice (1-6): {Colors.END}")
121
+
122
+ if choice == '1':
123
+ show_category("Docker")
124
+ elif choice == '2':
125
+ show_category("Git")
126
+ elif choice == '3':
127
+ show_category("Prometheus & Utils")
128
+ elif choice == '4':
129
+ show_category("Kubernetes")
130
+ elif choice == '5':
131
+ print_all_commands()
132
+ elif choice == '6':
133
+ print(f"\n{Colors.GREEN}Happy Coding! Exiting...{Colors.END}")
134
+ time.sleep(1)
135
+ break
136
+ else:
137
+ print(f"\n{Colors.RED}Invalid choice, try again.{Colors.END}")
138
+ time.sleep(1)
139
+
140
+ def run():
141
+ try:
142
+ main()
143
+ except KeyboardInterrupt:
144
+ print(f"\n\n{Colors.RED}Program interrupted. Exiting...{Colors.END}")
145
+ sys.exit(0)
146
+
147
+ if __name__ == "__main__":
148
+ run()
@@ -0,0 +1,57 @@
1
+ Metadata-Version: 2.4
2
+ Name: devops33
3
+ Version: 0.1.0
4
+ Summary: An interactive CLI tool for learning Docker, Git, Prometheus, and Kubernetes commands.
5
+ Author-email: DevOps Assistant <assistant@example.com>
6
+ Project-URL: Homepage, https://github.com/example/devops-lab-assistant
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: License :: OSI Approved :: MIT License
9
+ Classifier: Operating System :: OS Independent
10
+ Requires-Python: >=3.7
11
+ Description-Content-Type: text/markdown
12
+ License-File: LICENSE
13
+ Dynamic: license-file
14
+
15
+ # DevOps Lab Assistant 🚀
16
+
17
+ An interactive CLI tool designed to help you learn and remember essential DevOps commands for Docker, Git, Prometheus, and Kubernetes.
18
+
19
+ ## Installation 💻
20
+
21
+ You can install the package directly from PyPI (once published):
22
+
23
+ ```bash
24
+ pip install devops33
25
+ ```
26
+
27
+ ## Usage 🛠️
28
+
29
+ After installation, you can run the tool in two ways:
30
+
31
+ 1. **Direct command**:
32
+ ```bash
33
+ devops33
34
+ ```
35
+
36
+ 2. **As a module**:
37
+ ```bash
38
+ python3 -m devops
39
+ ```
40
+
41
+ ## Features ✨
42
+
43
+ - **Interactive Menu**: Navigate through different tool categories.
44
+ - **Categorized Commands**: Clear lists for Docker, Git, Prometheus, and Kubernetes.
45
+ - **One-Line Explanations**: Every command comes with a concise explanation.
46
+ - **Full List View**: View all commands at once for a quick overview.
47
+
48
+ ## Commands Included 📝
49
+
50
+ - **Docker**: WSL setup, image management, container lifecycle, Docker Hub.
51
+ - **Git**: Repository initialization, staging, committing, remote sync.
52
+ - **Prometheus & Utils**: File management, Docker Compose.
53
+ - **Kubernetes**: Minikube management, pod/service/deployment operations, scaling.
54
+
55
+ ## License 📄
56
+
57
+ This project is licensed under the MIT License.
@@ -0,0 +1,11 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ devops/__init__.py
5
+ devops/__main__.py
6
+ devops/main.py
7
+ devops33.egg-info/PKG-INFO
8
+ devops33.egg-info/SOURCES.txt
9
+ devops33.egg-info/dependency_links.txt
10
+ devops33.egg-info/entry_points.txt
11
+ devops33.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ devops33 = devops.main:run
@@ -0,0 +1 @@
1
+ devops
@@ -0,0 +1,24 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "devops33"
7
+ version = "0.1.0"
8
+ authors = [
9
+ { name="DevOps Assistant", email="assistant@example.com" },
10
+ ]
11
+ description = "An interactive CLI tool for learning Docker, Git, Prometheus, and Kubernetes commands."
12
+ readme = "README.md"
13
+ requires-python = ">=3.7"
14
+ classifiers = [
15
+ "Programming Language :: Python :: 3",
16
+ "License :: OSI Approved :: MIT License",
17
+ "Operating System :: OS Independent",
18
+ ]
19
+
20
+ [project.urls]
21
+ "Homepage" = "https://github.com/example/devops-lab-assistant"
22
+
23
+ [project.scripts]
24
+ devops33 = "devops.main:run"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+