ghazisa-de-toolkit 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.
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: ghazisa-de-toolkit
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary:
|
|
5
|
+
Author: Your Name
|
|
6
|
+
Author-email: example@email.com
|
|
7
|
+
Requires-Python: >=3.12,<4.0
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
12
|
+
Requires-Dist: click (>=8.5.0,<9.0.0)
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
|
|
15
|
+
# Ghazisa DE Toolkit
|
|
16
|
+
A CLI tool to manage VM operations.
|
|
17
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import click
|
|
2
|
+
from ghazisa_de_toolkit.vm import start, stop, connect
|
|
3
|
+
|
|
4
|
+
@click.group()
|
|
5
|
+
def cli():
|
|
6
|
+
pass
|
|
7
|
+
|
|
8
|
+
# إضافة الأوامر للمجموعة الرئيسية
|
|
9
|
+
cli.add_command(start)
|
|
10
|
+
cli.add_command(stop)
|
|
11
|
+
cli.add_command(connect)
|
|
12
|
+
|
|
13
|
+
if __name__ == '__main__':
|
|
14
|
+
cli()
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import click
|
|
2
|
+
import subprocess
|
|
3
|
+
|
|
4
|
+
@click.command()
|
|
5
|
+
def start():
|
|
6
|
+
"""Start your vm"""
|
|
7
|
+
click.echo("Starting your virtual machine via gcloud...")
|
|
8
|
+
# استبدل INSTANCE_NAME و ZONE بالمعلمات الخاصة بجهازك إذا لزم الأمر
|
|
9
|
+
subprocess.run(["gcloud", "compute", "instances", "start", "YOUR_INSTANCE_NAME", "--zone=YOUR_ZONE"])
|
|
10
|
+
|
|
11
|
+
@click.command()
|
|
12
|
+
def stop():
|
|
13
|
+
"""Stop your vm"""
|
|
14
|
+
click.echo("Stopping your virtual machine via gcloud...")
|
|
15
|
+
subprocess.run(["gcloud", "compute", "instances", "stop", "YOUR_INSTANCE_NAME", "--zone=YOUR_ZONE"])
|
|
16
|
+
|
|
17
|
+
@click.command()
|
|
18
|
+
def connect():
|
|
19
|
+
"""Connect to your vm in vscode inside your ~/code/ghazisa/folder"""
|
|
20
|
+
click.echo("Opening VS Code connection to VM...")
|
|
21
|
+
# أمر الاتصال عبر SSH أو Remote-SSH
|
|
22
|
+
# يمكنك تخصيصه بالشكل الذي يناسب إعدادات مشروعك
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
[tool.poetry]
|
|
2
|
+
name = "ghazisa-de-toolkit"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = ""
|
|
5
|
+
authors = ["Your Name <example@email.com>"]
|
|
6
|
+
readme = "README.md"
|
|
7
|
+
packages = [{include = "ghazisa_de_toolkit"}]
|
|
8
|
+
|
|
9
|
+
[tool.poetry.dependencies]
|
|
10
|
+
python = "^3.12"
|
|
11
|
+
click = "^8.5.0"
|
|
12
|
+
|
|
13
|
+
[tool.poetry.scripts]
|
|
14
|
+
deng = 'ghazisa_de_toolkit.main:cli'
|
|
15
|
+
|
|
16
|
+
[build-system]
|
|
17
|
+
requires = ["poetry-core"]
|
|
18
|
+
build-backend = "poetry.core.masonry.api"
|