projectdevsetup 1.0.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.
Files changed (34) hide show
  1. projectdevsetup-1.0.0/LICENSE +22 -0
  2. projectdevsetup-1.0.0/MANIFEST.in +3 -0
  3. projectdevsetup-1.0.0/PKG-INFO +83 -0
  4. projectdevsetup-1.0.0/README.md +42 -0
  5. projectdevsetup-1.0.0/projectdevsetup/__init__.py +11 -0
  6. projectdevsetup-1.0.0/projectdevsetup/__main__.py +31 -0
  7. projectdevsetup-1.0.0/projectdevsetup/detector.py +102 -0
  8. projectdevsetup-1.0.0/projectdevsetup/installer.py +447 -0
  9. projectdevsetup-1.0.0/projectdevsetup/network.py +80 -0
  10. projectdevsetup-1.0.0/projectdevsetup/path_manager.py +149 -0
  11. projectdevsetup-1.0.0/projectdevsetup/permissions.py +95 -0
  12. projectdevsetup-1.0.0/projectdevsetup/templates/Hello.java +8 -0
  13. projectdevsetup-1.0.0/projectdevsetup/templates/__init__.py +5 -0
  14. projectdevsetup-1.0.0/projectdevsetup/templates/hello.c +9 -0
  15. projectdevsetup-1.0.0/projectdevsetup/templates/hello.cpp +9 -0
  16. projectdevsetup-1.0.0/projectdevsetup/templates/hello.go +10 -0
  17. projectdevsetup-1.0.0/projectdevsetup/templates/hello.html +25 -0
  18. projectdevsetup-1.0.0/projectdevsetup/templates/hello.js +4 -0
  19. projectdevsetup-1.0.0/projectdevsetup/templates/hello.py +4 -0
  20. projectdevsetup-1.0.0/projectdevsetup/templates/hello.rs +6 -0
  21. projectdevsetup-1.0.0/projectdevsetup/utils/__init__.py +5 -0
  22. projectdevsetup-1.0.0/projectdevsetup/utils/logger.py +69 -0
  23. projectdevsetup-1.0.0/projectdevsetup/utils/os_detect.py +142 -0
  24. projectdevsetup-1.0.0/projectdevsetup/utils/venv_helper.py +95 -0
  25. projectdevsetup-1.0.0/projectdevsetup/vscode.py +386 -0
  26. projectdevsetup-1.0.0/projectdevsetup/wizard.py +262 -0
  27. projectdevsetup-1.0.0/projectdevsetup.egg-info/PKG-INFO +83 -0
  28. projectdevsetup-1.0.0/projectdevsetup.egg-info/SOURCES.txt +32 -0
  29. projectdevsetup-1.0.0/projectdevsetup.egg-info/dependency_links.txt +1 -0
  30. projectdevsetup-1.0.0/projectdevsetup.egg-info/requires.txt +1 -0
  31. projectdevsetup-1.0.0/projectdevsetup.egg-info/top_level.txt +1 -0
  32. projectdevsetup-1.0.0/pyproject.toml +32 -0
  33. projectdevsetup-1.0.0/setup.cfg +4 -0
  34. projectdevsetup-1.0.0/setup.py +17 -0
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Zenith Open Source Projects
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,3 @@
1
+ include LICENSE
2
+ include README.md
3
+ recursive-include projectdevsetup/templates *
@@ -0,0 +1,83 @@
1
+ Metadata-Version: 2.4
2
+ Name: projectdevsetup
3
+ Version: 1.0.0
4
+ Summary: Automatic developer environment setup for beginners
5
+ Author-email: roshhellwett <roshhellwett@icloud.com>
6
+ License: MIT License
7
+
8
+ Copyright (c) 2026 Zenith Open Source Projects
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining
11
+ a copy of this software and associated documentation files (the
12
+ "Software"), to deal in the Software without restriction, including
13
+ without limitation the rights to use, copy, modify, merge, publish,
14
+ distribute, sublicense, and/or sell copies of the Software, and to
15
+ permit persons to whom the Software is furnished to do so, subject to
16
+ the following conditions:
17
+
18
+ The above copyright notice and this permission notice shall be
19
+ included in all copies or substantial portions of the Software.
20
+
21
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
24
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
25
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
26
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
27
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28
+ Project-URL: Homepage, https://github.com/zenith-open-source/projectdevsetup
29
+ Project-URL: Organization, https://zenithopensourceprojects.vercel.app
30
+ Keywords: developer setup,beginner,vscode,gcc,jdk,python setup,coding environment,zenith
31
+ Classifier: Programming Language :: Python :: 3
32
+ Classifier: License :: OSI Approved :: MIT License
33
+ Classifier: Operating System :: OS Independent
34
+ Classifier: Intended Audience :: Developers
35
+ Classifier: Topic :: Software Development :: Build Tools
36
+ Requires-Python: >=3.8
37
+ Description-Content-Type: text/markdown
38
+ License-File: LICENSE
39
+ Requires-Dist: colorama>=0.4.6
40
+ Dynamic: license-file
41
+
42
+ # projectdevsetup
43
+
44
+ Automatic developer environment setup for beginners - by Zenith Open Source Projects
45
+
46
+ ## What is this?
47
+
48
+ projectdevsetup is a beginner-friendly tool that automatically sets up your computer for coding. It asks you which programming language you want to use, then installs everything you need automatically.
49
+
50
+ ## Who is it for?
51
+
52
+ Complete beginners who have never coded before. No technical knowledge needed.
53
+
54
+ ## Features
55
+
56
+ - One-command setup for 8 languages: Python, C, C++, Java, HTML/CSS, JavaScript, Rust, Go
57
+ - Automatic compiler/runtime installation
58
+ - VSCode installation and extension setup
59
+ - Creates a starter file ready to go
60
+ - Opens VSCode with your file
61
+
62
+ ## Installation
63
+
64
+ ```bash
65
+ pip install projectdevsetup
66
+ ```
67
+
68
+ ## Usage
69
+
70
+ ```bash
71
+ python -m projectdevsetup
72
+ ```
73
+
74
+ Follow the simple on-screen instructions.
75
+
76
+ ## Credits
77
+
78
+ Developed by roshhellwett
79
+ Copyright (c) 2026 Zenith Open Source Projects
80
+
81
+ ## License
82
+
83
+ MIT License - See LICENSE file for details
@@ -0,0 +1,42 @@
1
+ # projectdevsetup
2
+
3
+ Automatic developer environment setup for beginners - by Zenith Open Source Projects
4
+
5
+ ## What is this?
6
+
7
+ projectdevsetup is a beginner-friendly tool that automatically sets up your computer for coding. It asks you which programming language you want to use, then installs everything you need automatically.
8
+
9
+ ## Who is it for?
10
+
11
+ Complete beginners who have never coded before. No technical knowledge needed.
12
+
13
+ ## Features
14
+
15
+ - One-command setup for 8 languages: Python, C, C++, Java, HTML/CSS, JavaScript, Rust, Go
16
+ - Automatic compiler/runtime installation
17
+ - VSCode installation and extension setup
18
+ - Creates a starter file ready to go
19
+ - Opens VSCode with your file
20
+
21
+ ## Installation
22
+
23
+ ```bash
24
+ pip install projectdevsetup
25
+ ```
26
+
27
+ ## Usage
28
+
29
+ ```bash
30
+ python -m projectdevsetup
31
+ ```
32
+
33
+ Follow the simple on-screen instructions.
34
+
35
+ ## Credits
36
+
37
+ Developed by roshhellwett
38
+ Copyright (c) 2026 Zenith Open Source Projects
39
+
40
+ ## License
41
+
42
+ MIT License - See LICENSE file for details
@@ -0,0 +1,11 @@
1
+ """
2
+ @project projectdevsetup
3
+ @org Zenith Open Source Projects
4
+ @license MIT License
5
+ @author roshhellwett
6
+ """
7
+
8
+ __version__ = "1.0.0"
9
+ __author__ = "roshhellwett"
10
+ __org__ = "Zenith Open Source Projects"
11
+ __email__ = "roshhellwett@icloud.com"
@@ -0,0 +1,31 @@
1
+ """
2
+ @project projectdevsetup
3
+ @org Zenith Open Source Projects
4
+ @license MIT License
5
+ """
6
+
7
+ import sys
8
+ from projectdevsetup.wizard import run
9
+ from projectdevsetup.utils.logger import error
10
+
11
+
12
+ def main():
13
+ try:
14
+ run()
15
+ except KeyboardInterrupt:
16
+ print("\n")
17
+ error(
18
+ "Setup cancelled by user. Run 'python -m projectdevsetup' to start again."
19
+ )
20
+ sys.exit(0)
21
+ except Exception as e:
22
+ error(
23
+ "Something unexpected went wrong. "
24
+ "Please report this issue at:\n"
25
+ " https://github.com/zenith-open-source/projectdevsetup/issues"
26
+ )
27
+ sys.exit(1)
28
+
29
+
30
+ if __name__ == "__main__":
31
+ main()
@@ -0,0 +1,102 @@
1
+ """
2
+ @project projectdevsetup
3
+ @org Zenith Open Source Projects
4
+ @license MIT License
5
+ """
6
+
7
+ import subprocess
8
+ import platform
9
+ import shutil
10
+ from projectdevsetup.utils.logger import already_installed, info
11
+
12
+
13
+ def is_installed(command: str, version_flag: str = "--version") -> bool:
14
+ """
15
+ Check if a command-line tool is installed and working.
16
+ Returns True if tool exists and responds to version flag.
17
+ """
18
+ try:
19
+ if not shutil.which(command):
20
+ return False
21
+ result = subprocess.run(
22
+ [command, version_flag], capture_output=True, text=True, timeout=10
23
+ )
24
+ return result.returncode == 0
25
+ except (subprocess.TimeoutExpired, FileNotFoundError, OSError):
26
+ return False
27
+
28
+
29
+ def check_python() -> bool:
30
+ cmds = ["python3", "python"]
31
+ for cmd in cmds:
32
+ if is_installed(cmd):
33
+ return True
34
+ return False
35
+
36
+
37
+ def check_gcc() -> bool:
38
+ return is_installed("gcc")
39
+
40
+
41
+ def check_gpp() -> bool:
42
+ return is_installed("g++")
43
+
44
+
45
+ def check_java() -> bool:
46
+ return is_installed("java", "-version")
47
+
48
+
49
+ def check_node() -> bool:
50
+ return is_installed("node")
51
+
52
+
53
+ def check_npm() -> bool:
54
+ return is_installed("npm")
55
+
56
+
57
+ def check_rust() -> bool:
58
+ return is_installed("rustc")
59
+
60
+
61
+ def check_cargo() -> bool:
62
+ return is_installed("cargo")
63
+
64
+
65
+ def check_go() -> bool:
66
+ return is_installed("go", "version")
67
+
68
+
69
+ def check_vscode() -> bool:
70
+ """Check if VSCode (code command) is available."""
71
+ return bool(shutil.which("code"))
72
+
73
+
74
+ def check_winget() -> bool:
75
+ return is_installed("winget", "--version")
76
+
77
+
78
+ def check_brew() -> bool:
79
+ return is_installed("brew", "--version")
80
+
81
+
82
+ def check_snap() -> bool:
83
+ return is_installed("snap", "--version")
84
+
85
+
86
+ def get_installed_summary() -> dict:
87
+ """Return a full summary of what is installed."""
88
+ return {
89
+ "python": check_python(),
90
+ "gcc": check_gcc(),
91
+ "gpp": check_gpp(),
92
+ "java": check_java(),
93
+ "node": check_node(),
94
+ "npm": check_npm(),
95
+ "rust": check_rust(),
96
+ "cargo": check_cargo(),
97
+ "go": check_go(),
98
+ "vscode": check_vscode(),
99
+ "winget": check_winget(),
100
+ "brew": check_brew(),
101
+ "snap": check_snap(),
102
+ }