bdh-linux 1.0.2__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,16 @@
1
+ Metadata-Version: 2.4
2
+ Name: bdh-linux
3
+ Version: 1.0.2
4
+ Summary: bdh-linux — Backend Developer OS setup tool for Arch/Manjaro
5
+ Author-email: Prabakaran <prabakaran20020430@gmail.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/BackendDeveloperHub/bdh-linux
8
+ Project-URL: Repository, https://github.com/BackendDeveloperHub/bdh-linux
9
+ Keywords: linux,backend,developer,fastapi,arch,manjaro
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: License :: OSI Approved :: MIT License
12
+ Classifier: Operating System :: POSIX :: Linux
13
+ Requires-Python: >=3.10
14
+ Description-Content-Type: text/markdown
15
+ Requires-Dist: typer
16
+ Requires-Dist: rich
File without changes
@@ -0,0 +1,50 @@
1
+ import typer
2
+ import subprocess
3
+ from rich import print
4
+
5
+ app = typer.Typer(help="Install bdh-linux packages")
6
+
7
+ def run(cmd: str):
8
+ subprocess.run(cmd, shell=True)
9
+
10
+ @app.command()
11
+ def all():
12
+ """Full BDH Linux install"""
13
+ print("[cyan]⚡ bdh-linux — Full Install[/cyan]")
14
+ print("=" * 30)
15
+
16
+ # Packages
17
+ print("[yellow]📦 Installing packages...[/yellow]")
18
+ run("sudo pacman -S --noconfirm python python-pip git docker zsh neovim curl wget htop tree tmux")
19
+
20
+ # Python packages
21
+ print("[yellow]🐍 Installing Python packages...[/yellow]")
22
+ run("pip install fastapi uvicorn sqlalchemy psycopg2-binary python-dotenv bdh-fastapi-new")
23
+
24
+ # Oh My Zsh
25
+ print("[yellow]⚡ Installing Oh My Zsh...[/yellow]")
26
+ run('sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended')
27
+
28
+ # BDH Configs
29
+ print("[yellow]🔧 Applying BDH configs...[/yellow]")
30
+ run("cp ~/.bdh-linux/configs/.zshrc ~/.zshrc")
31
+ run("cp ~/.bdh-linux/configs/aliases.sh ~/.aliases.sh")
32
+
33
+ print("")
34
+ print("[green]✅ bdh-linux installed![/green]")
35
+
36
+ @app.command()
37
+ def minimal():
38
+ """Minimal bdh-linux install"""
39
+ print("[cyan]⚡ bdh-linux — Minimal Install[/cyan]")
40
+ print("=" * 30)
41
+
42
+ # Basic only
43
+ print("[yellow]📦 Installing basic packages...[/yellow]")
44
+ run("sudo pacman -S --noconfirm python python-pip git zsh curl wget")
45
+
46
+ print("[yellow]🐍 Installing Python packages...[/yellow]")
47
+ run("pip install fastapi uvicorn bdh-fastapi-new")
48
+
49
+ print("")
50
+ print("[green]✅ Minimal install done![/green]")
@@ -0,0 +1,48 @@
1
+ import typer
2
+ import subprocess
3
+ from rich import print
4
+
5
+ app = typer.Typer(help="Remove bloatware from system")
6
+
7
+ def run(cmd: str):
8
+ subprocess.run(cmd, shell=True)
9
+
10
+ @app.command()
11
+ def bloat():
12
+ """Remove all bloatware"""
13
+ print("[cyan]⚡ BDH Linux — Removing Bloatware...[/cyan]")
14
+ print("=" * 30)
15
+
16
+ confirm = typer.confirm("Are you sure? This will remove games, office apps, media apps!")
17
+ if not confirm:
18
+ print("[yellow]Cancelled![/yellow]")
19
+ raise typer.Exit()
20
+
21
+ games()
22
+ office()
23
+ media()
24
+ cleanup()
25
+
26
+ print("")
27
+ print("[green]✅ All bloatware removed![/green]")
28
+
29
+ @app.command()
30
+ def games():
31
+ """Remove games"""
32
+ print("[yellow]🗑️ Removing games...[/yellow]")
33
+ run("sudo pacman -Rns --noconfirm manjaro-games steam hedgewars 2>/dev/null")
34
+ print("[green]✅ Games removed![/green]")
35
+
36
+ @app.command()
37
+ def office():
38
+ """Remove office apps"""
39
+ print("[yellow]🗑️ Removing office apps...[/yellow]")
40
+ run("sudo pacman -Rns --noconfirm libreoffice-fresh libreoffice-still 2>/dev/null")
41
+ print("[green]✅ Office removed![/green]")
42
+
43
+ @app.command()
44
+ def media():
45
+ """Remove media apps"""
46
+ print("[yellow]🗑️ Removing media apps...[/yellow]")
47
+ run("sudo pacman -Rns --noconfirm vlc rhythmbox shotwell transmission-gtk thunderbird 2>/dev/null")
48
+ print("[green]✅ Media apps removed!")
@@ -0,0 +1,75 @@
1
+ import typer
2
+ import subprocess
3
+ from rich import print
4
+
5
+ app = typer.Typer(help="Setup bdh-linux components")
6
+
7
+ def run(cmd: str):
8
+ subprocess.run(cmd, shell=True)
9
+
10
+ @app.command()
11
+ def terminal():
12
+ """Setup ZSH + BDH prompt + aliases"""
13
+ print("[cyan]⚡ Setting up bdh-linux Terminal...[/cyan]")
14
+ print("=" * 30)
15
+
16
+ # Install ZSH
17
+ print("[yellow]📦 Installing ZSH...[/yellow]")
18
+ run("sudo pacman -S --noconfirm zsh")
19
+
20
+ # Oh My Zsh
21
+ print("[yellow]⚡ Installing Oh My Zsh...[/yellow]")
22
+ run('sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended')
23
+
24
+ # Copy configs
25
+ print("[yellow]🔧 Applying BDH configs...[/yellow]")
26
+ run("cp ~/.bdh-linux/configs/.zshrc ~/.zshrc")
27
+ run("cp ~/.bdh-linux/configs/aliases.sh ~/.aliases.sh")
28
+
29
+ # Set ZSH as default
30
+ run("chsh -s /bin/zsh")
31
+
32
+ print("")
33
+ print("[green]✅ Terminal setup done![/green]")
34
+ print("[green]Restart terminal to apply![/green]")
35
+
36
+ @app.command()
37
+ def packages():
38
+ """Install all BDH packages"""
39
+ print("[cyan]⚡ Setting up BDH Packages...[/cyan]")
40
+ print("=" * 30)
41
+
42
+ run("bash ~/.bdh-linux/scripts/install-packages.sh")
43
+
44
+ print("")
45
+ print("[green]✅ Packages setup done![/green]")
46
+
47
+ @app.command()
48
+ def git():
49
+ """Setup Git global config"""
50
+ print("[cyan]⚡ Setting up Git...[/cyan]")
51
+ print("=" * 30)
52
+
53
+ name = typer.prompt("Your name")
54
+ email = typer.prompt("Your email")
55
+
56
+ run(f'git config --global user.name "{name}"')
57
+ run(f'git config --global user.email "{email}"')
58
+ run("git config --global init.defaultBranch main")
59
+
60
+ print("")
61
+ print("[green]✅ Git setup done![/green]")
62
+
63
+ @app.command()
64
+ def docker():
65
+ """Install and setup Docker"""
66
+ print("[cyan]⚡ Setting up Docker...[/cyan]")
67
+ print("=" * 30)
68
+
69
+ run("sudo pacman -S --noconfirm docker docker-compose")
70
+ run("sudo systemctl enable docker")
71
+ run("sudo systemctl start docker")
72
+ run("sudo usermod -aG docker $USER")
73
+
74
+ print("")
75
+ print("[green]✅ Docker setup done![/green]")
@@ -0,0 +1,50 @@
1
+ import typer
2
+ from rich import print
3
+ from bdh_linux.commands import install, setup, remove
4
+
5
+ app = typer.Typer(
6
+ name="bdh-linux",
7
+ help="⚡ BDH Linux — Backend Developer OS setup tool",
8
+ )
9
+
10
+ # Sub commands
11
+ app.add_typer(install.app, name="install")
12
+ app.add_typer(setup.app, name="setup")
13
+ app.add_typer(remove.app, name="remove")
14
+
15
+ @app.command()
16
+ def version():
17
+ """Show BDH Linux version"""
18
+ print("[cyan]⚡ bdh-linux v1.0.0[/cyan]")
19
+ print("[green]Backend Developer OS — Arch/Manjaro[/green]")
20
+
21
+ @app.command()
22
+ def status():
23
+ """Check what's installed"""
24
+ import shutil
25
+ tools = {
26
+ "Python": "python",
27
+ "FastAPI": "uvicorn",
28
+ "PostgreSQL": "psql",
29
+ "Docker": "docker",
30
+ "Git": "git",
31
+ "ZSH": "zsh",
32
+ "bdh-fastapi-new": "bdh-fastapi-new",
33
+ }
34
+ print("\n[cyan]⚡ bdh-linux Status[/cyan]")
35
+ print("=" * 30)
36
+ for name, cmd in tools.items():
37
+ if shutil.which(cmd):
38
+ print(f"[green]✅ {name}[/green]")
39
+ else:
40
+ print(f"[red]❌ {name} — not installed[/red]")
41
+ print("=" * 30)
42
+
43
+ @app.command()
44
+ def doctor():
45
+ """Full system health check"""
46
+ print("\n[cyan]⚡ bdh-linux Doctor[/cyan]")
47
+ status()
48
+
49
+ if __name__ == "__main__":
50
+ app()
@@ -0,0 +1,16 @@
1
+ Metadata-Version: 2.4
2
+ Name: bdh-linux
3
+ Version: 1.0.2
4
+ Summary: bdh-linux — Backend Developer OS setup tool for Arch/Manjaro
5
+ Author-email: Prabakaran <prabakaran20020430@gmail.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/BackendDeveloperHub/bdh-linux
8
+ Project-URL: Repository, https://github.com/BackendDeveloperHub/bdh-linux
9
+ Keywords: linux,backend,developer,fastapi,arch,manjaro
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: License :: OSI Approved :: MIT License
12
+ Classifier: Operating System :: POSIX :: Linux
13
+ Requires-Python: >=3.10
14
+ Description-Content-Type: text/markdown
15
+ Requires-Dist: typer
16
+ Requires-Dist: rich
@@ -0,0 +1,13 @@
1
+ pyproject.toml
2
+ setup.py
3
+ bdh_linux/__init__.py
4
+ bdh_linux/main.py
5
+ bdh_linux.egg-info/PKG-INFO
6
+ bdh_linux.egg-info/SOURCES.txt
7
+ bdh_linux.egg-info/dependency_links.txt
8
+ bdh_linux.egg-info/entry_points.txt
9
+ bdh_linux.egg-info/requires.txt
10
+ bdh_linux.egg-info/top_level.txt
11
+ bdh_linux/commands/install.py
12
+ bdh_linux/commands/remove.py
13
+ bdh_linux/commands/setup.py
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ bdh-linux = bdh_linux.main:app
@@ -0,0 +1,2 @@
1
+ typer
2
+ rich
@@ -0,0 +1 @@
1
+ bdh_linux
@@ -0,0 +1,31 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "bdh-linux"
7
+ version = "v1.0.2"
8
+ description = "bdh-linux — Backend Developer OS setup tool for Arch/Manjaro"
9
+ readme = "README.md"
10
+ license = {text = "MIT"}
11
+ authors = [
12
+ {name = "Prabakaran", email = "prabakaran20020430@gmail.com"}
13
+ ]
14
+ keywords = ["linux", "backend", "developer", "fastapi", "arch", "manjaro"]
15
+ classifiers = [
16
+ "Programming Language :: Python :: 3",
17
+ "License :: OSI Approved :: MIT License",
18
+ "Operating System :: POSIX :: Linux",
19
+ ]
20
+ requires-python = ">=3.10"
21
+ dependencies = [
22
+ "typer",
23
+ "rich",
24
+ ]
25
+
26
+ [project.scripts]
27
+ bdh-linux = "bdh_linux.main:app"
28
+
29
+ [project.urls]
30
+ Homepage = "https://github.com/BackendDeveloperHub/bdh-linux"
31
+ Repository = "https://github.com/BackendDeveloperHub/bdh-linux"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,3 @@
1
+ from setuptools import setup
2
+
3
+ setup()