Tsetup 1.0__py3-none-any.whl

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.
T_setup/__init__.py ADDED
@@ -0,0 +1 @@
1
+ #f
T_setup/setup.py ADDED
@@ -0,0 +1,241 @@
1
+ import os
2
+ import random
3
+ import platform
4
+ import sys
5
+ import string
6
+ import time
7
+ import re
8
+ import json
9
+
10
+ try:
11
+ import rich
12
+ except ImportError:
13
+ print(f"\n 👉 Installing Rich...\n")
14
+ os.system("pip install rich")
15
+ import rich
16
+
17
+ try:
18
+ import httpx
19
+ except ImportError:
20
+ print(f"\n 👉 Installing httpx...\n")
21
+ os.system("pip install httpx")
22
+ import httpx
23
+
24
+ try:
25
+ import requests
26
+ except ImportError:
27
+ print(f"\n 👉 Installing Requests...\n")
28
+ os.system("pip install requests")
29
+ import requests
30
+
31
+ try:
32
+ import bs4
33
+ except ImportError:
34
+ print(f"\n 👉 Installing Bs4...\n")
35
+ os.system("pip install bs4")
36
+ import bs4
37
+
38
+ from os import system as shell
39
+ from rich import print
40
+ from rich.progress import track
41
+ from rich.markdown import Markdown
42
+ from rich.tree import Tree
43
+
44
+ sys.stdout.write('\x1b]2;𝐌𝐑 𝐓𝐀𝐍\x07')
45
+ shell("clear")
46
+
47
+ def lod(message):
48
+ for i in track(range(100), description=f"[red][bold] {message}"):
49
+ time.sleep(0.01)
50
+
51
+ print("\n" * 10)
52
+ print("""[light_green]
53
+ /| //| | /__ ___/ // ) )
54
+ //| // | | / / //___/ /
55
+ // | // | | / / / ___ (
56
+ // | // | | / / // | |
57
+ // |// | | / / // | | \n""")
58
+ lod('loading ')
59
+ shell('clear')
60
+
61
+ logo = ("""[light_green]
62
+ /| //| | /__ ___/ // ) )
63
+ //| // | | / / //___/ /
64
+ // | // | | / / / ___ (
65
+ // | // | | / / // | |
66
+ // |// | | / / // | |
67
+ [b dark_sea_green2]setup tool
68
+ [bold cyan]V[white]=[bold yellow]1.1[light_green]
69
+ """)
70
+
71
+ def space():
72
+ print("\n")
73
+
74
+ # UI Menu Trees
75
+ mj = Tree("[bold purple]![[bold red]A[bold purple]] ")
76
+ mj.add("[cyan][bold]Full Setup")
77
+ gm = Tree("[bold purple]![[bold red]B[bold purple]] ")
78
+ gm.add("[light_green]Game Setup")
79
+ my = Tree("[bold purple]![[bold red]C[bold purple]] ")
80
+ my.add("[bold yellow]contact admin")
81
+ ex = Tree("[bold purple]![[bold red]D[bold purple]] ") # Fixed label conflict
82
+ ex.add("[tan][bold]exit")
83
+ cv = Tree("[bold purple]![[bold red]+[bold purple]] ")
84
+ cv.add("[bold red]Choice Option ")
85
+
86
+ def main():
87
+ try:
88
+ shell("clear")
89
+ print(logo)
90
+ print(Markdown("# Menu"))
91
+ space()
92
+ print(mj)
93
+ print(gm)
94
+ print(my)
95
+ print(ex)
96
+ print(cv)
97
+ choice = input(f" └──> ").strip()
98
+
99
+ if choice in ["a", "A", "1", "01"]:
100
+ setup()
101
+ elif choice in ["b", "B", "2", "02"]:
102
+ game_pkg()
103
+ elif choice in ["c", "C", "3", "03"]:
104
+ shell("xdg-open http://www.facebook.com/abutanim.chowdury")
105
+ main()
106
+ elif choice in ["d", "D", "4", "04"]:
107
+ print("[bold red]\n[!] Exiting tool... Goodbye![/bold red]")
108
+ sys.exit()
109
+ else:
110
+ main()
111
+ except KeyboardInterrupt:
112
+ print("[bold red]\n[!] Interrupted by user. Exiting...[/bold red]")
113
+ sys.exit()
114
+
115
+ def success_logo():
116
+ shell("clear")
117
+ print("""[sea_green2]
118
+ █▀▀ █▀▀ ▀▀█▀▀ █░░█ █▀▀█
119
+ ▀▀█ █▀▀ ░░█░░ █░░█ █░░█
120
+ ▀▀▀ ▀▀▀ ░░▀░░ ▀▀▀▀ █▀▀▀
121
+
122
+ █▀▀▄ █▀▀█ █▀▀▄ █▀▀
123
+ █░░█ █░░█ █░░█ █▀▀
124
+ ▀▀▀░ ▀▀▀▀ ▀░░▀ ▀▀▀
125
+ """)
126
+ print("\n[bold white]Press Enter to back to Menu...[/bold white]")
127
+ input()
128
+ main()
129
+
130
+ def setup():
131
+ shell("clear")
132
+ print(logo)
133
+ print(Markdown("# Setup Started"))
134
+
135
+ # Storage & System Repos
136
+ print("\n 👉 storage permission...\n")
137
+ os.system("termux-setup-storage -y")
138
+ print("\n 👉 clang...\n")
139
+ os.system("pkg install clang python-development -y")
140
+ print("\n 👉 installing x11-repo & root-repo...\n")
141
+ os.system("pkg install x11-repo root-repo -y")
142
+ os.system("pkg update -y")
143
+
144
+ print("\n 👉 installing Termimage...\n")
145
+ os.system("pkg install termimage -y")
146
+ print("\n 👉 installing Fish...\n")
147
+ os.system("pkg install fish -y")
148
+ print("\n 👉 installing Termux api...\n")
149
+ os.system("pkg install termux-api -y")
150
+ print("\n 👉 installing php...\n")
151
+ os.system("pkg install php -y")
152
+ print("\n 👉 installing figlet...\n")
153
+ os.system("pkg install figlet -y")
154
+ print("\n 👉 installing cmatrix...\n")
155
+ os.system("pkg install cmatrix -y")
156
+ print("\n 👉 installing ruby...\n")
157
+ os.system("pkg install ruby -y")
158
+ print("\n 👉 installing ccrypt...\n")
159
+ os.system("pkg install ccrypt -y")
160
+ print("\n 👉 installing espeak robot...\n")
161
+ os.system("pkg install espeak -y")
162
+ print("\n 👉 installing toilet...\n")
163
+ os.system("pkg install toilet -y")
164
+ print("\n 👉 installing openssh...\n")
165
+ os.system("pkg install openssh -y")
166
+ print("\n 👉 installing wget...\n")
167
+ os.system("pkg install wget -y")
168
+ print("\n 👉 installing curl...\n")
169
+ os.system("pkg install curl -y")
170
+ print("\n 👉 installing w3m...\n")
171
+ os.system("pkg install w3m -y")
172
+ print("\n 👉 installing mpv...\n")
173
+ os.system("pkg install mpv -y")
174
+ print("\n 👉 installing proot...\n")
175
+ os.system("pkg install proot-distro -y")
176
+ print("\n 👉 installing sslscan...\n")
177
+ os.system("pkg install sslscan -y")
178
+ print("\n 👉 installing openssl...\n")
179
+ os.system("pkg install openssl -y")
180
+ print("\n 👉 installing iproute2...\n")
181
+ os.system("pkg install iproute2 -y")
182
+ print("\n 👉 installing nmap...\n")
183
+ os.system("pkg install nmap -y")
184
+ print("\n 👉 installing hello...\n")
185
+ os.system("pkg install hello -y")
186
+ print("\n 👉 installing zip...\n")
187
+ os.system("pkg install zip unzip -y")
188
+
189
+ # Python PIP Packages (Fixed versions & packages)
190
+ print("\n 👉 installing future...\n")
191
+ os.system("pip install future")
192
+ print("\n 👉 installing mechanize...\n")
193
+ os.system("pip install mechanize")
194
+ print("\n 👉 installing lolcat...\n")
195
+ os.system("pip install lolcat")
196
+ print("\n 👉 installing Telebot...\n")
197
+ os.system("pip install pyTelegramBotAPI")
198
+ print("\n 👉 installing google...\n")
199
+ os.system("pip install google")
200
+ print("\n 👉 installing gtts...\n")
201
+ os.system("pip install gtts")
202
+ print("\n 👉 installing phonenumbers...\n")
203
+ os.system("pip install phonenumbers")
204
+ print("\n 👉 installing opencage...\n")
205
+ os.system("pip install opencage")
206
+ print("\n 👉 installing wikipedia...\n")
207
+ os.system("pip install wikipedia")
208
+ print("\n 👉 installing pytube...\n")
209
+ os.system("pip install pytube")
210
+ print("\n 👉 installing Find github email...\n")
211
+ os.system("pip install find-github-email")
212
+ print("\n 👉 installing colorama...\n")
213
+ os.system("pip install colorama")
214
+ print("\n 👉 installing pillow (Latest version for Python 3.13)...\n")
215
+ os.system("pip install pillow") # Removed outdated v2.2.1
216
+ print("\n 👉 installing tor...\n")
217
+ os.system("pkg install tor -y") # Tor works better via pkg in Termux
218
+ print("\n 👉 installing piexif...\n")
219
+ os.system("pip install piexif")
220
+ print("\n 👉 installing vininfo...\n")
221
+ os.system("pip install vininfo")
222
+
223
+ success_logo()
224
+
225
+ def game_pkg():
226
+ shell("clear")
227
+ print(logo)
228
+ print(Markdown("# Installing Game Packages"))
229
+ print("\n 👉 installing ninvaders...\n")
230
+ os.system("pkg install ninvaders -y")
231
+ print("\n 👉 installing nudoku...\n")
232
+ os.system("pkg install nudoku -y")
233
+ print("\n 👉 installing bastet...\n")
234
+ os.system("pkg install bastet -y")
235
+ print("\n 👉 installing sl...\n")
236
+ os.system("pkg install sl -y")
237
+
238
+ success_logo()
239
+
240
+ if __name__ == "__main__":
241
+ main()
@@ -0,0 +1,105 @@
1
+ Metadata-Version: 2.4
2
+ Name: Tsetup
3
+ Version: 1.0
4
+ Summary: An automation and network scanning utility tool.
5
+ Author-email: Abu Tanim <mrtanvai@gmail.com>
6
+ License: Custom License
7
+ Project-URL: Homepage, https://github.com/mrtan-official/T-setup
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Operating System :: POSIX :: Linux
10
+ Requires-Python: >=3.13
11
+ Description-Content-Type: text/markdown
12
+ Requires-Dist: requests
13
+ Requires-Dist: rich
14
+ Requires-Dist: httpx
15
+ Requires-Dist: beautifulsoup4
16
+
17
+ # ⚙️ Mr Tan Setup Tool (Termux Automation)
18
+
19
+ A powerful **Termux setup automation tool** built in Python by **Mr Tan**.
20
+ This tool automatically installs essential packages, programming tools, and game utilities in one click.
21
+
22
+ ---
23
+
24
+ ## 🚀 Features
25
+
26
+ - ⚡ One-click Termux full environment setup
27
+ - 🧠 Auto install of development tools
28
+ - 🎮 Game packages installer
29
+ - 📦 Python dependency auto installer
30
+ - 🛠️ Security & networking tools setup
31
+ - 🎨 Interactive Rich CLI interface
32
+
33
+ ---
34
+
35
+ ## 📦 What It Installs
36
+
37
+ ### 🔧 System Tools
38
+ - python, clang, git, wget, curl
39
+ - openssh, zip/unzip, php, ruby
40
+ - nmap, sslscan, openssl
41
+ - proot-distro, termux-api
42
+
43
+ ### 🐍 Python Packages
44
+ - requests, rich, httpx, bs4
45
+ - mechanize, colorama
46
+ - gtts, phonenumbers, wikipedia
47
+ - pytube, pillow, piexif
48
+ - pyTelegramBotAPI
49
+
50
+ ### 🎮 Game Packages
51
+ - ninvaders
52
+ - nudoku
53
+ - bastet
54
+ - sl (steam locomotive fun)
55
+
56
+ ---
57
+
58
+ ## 📱 Requirements
59
+
60
+ - Termux (Android)
61
+ - Internet connection
62
+
63
+ ---
64
+
65
+ ## 🚀 Installation
66
+
67
+ ```bash
68
+ git clone https://github.com/mrtan-official/setup-tool.git
69
+ cd setup-tool
70
+ python setup.py
71
+ ▶️ Usage
72
+
73
+ Run the tool:
74
+
75
+ python setup.py
76
+
77
+ Then select option:
78
+
79
+ A → Full Setup
80
+ B → Game Setup
81
+ C → Contact Admin
82
+ D → Exit
83
+ ⚠️ Disclaimer
84
+
85
+ This tool is made for educational and personal setup purposes only.
86
+
87
+ Do not use for illegal activities
88
+ Some packages may require storage permission
89
+ 👨‍💻 Author
90
+
91
+ Mr Tan
92
+
93
+ GitHub: https://github.com/mrtan-official
94
+ Facebook: http://www.facebook.com/abutanim.chowdury
95
+ 🔥 Warning
96
+
97
+ This tool installs system packages automatically using pkg and pip.
98
+ Use carefully in Termux environment only.
99
+
100
+ 💡 Future Updates
101
+ GUI version (Streamlit / Web UI)
102
+ Faster installer engine
103
+ Custom package selection menu
104
+
105
+ ---
@@ -0,0 +1,7 @@
1
+ T_setup/__init__.py,sha256=Wnc_grAZV9lDR4VgIHk0X232UKfm9EjdhFbcfe1yV-Q,2
2
+ T_setup/setup.py,sha256=wTR6FT9cYeH2gsoI2-ZkHKxZazH5KSmUmN9B23OHaBI,8293
3
+ tsetup-1.0.dist-info/METADATA,sha256=aWjGb7_TA4ZDcH-b66OTFKCxMZdFsstIM6zbF4SETZ8,2247
4
+ tsetup-1.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
5
+ tsetup-1.0.dist-info/entry_points.txt,sha256=CcgHBNlkV_XRl7CXH2kTkb2gOQbDhUSiwK6Tl0aByYQ,47
6
+ tsetup-1.0.dist-info/top_level.txt,sha256=VSRN1JOQ2VFmK8REcJa6w3SZm9xfLGZMK2ddRK0IzDE,8
7
+ tsetup-1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ T-setup = T_setup.setup:main
@@ -0,0 +1 @@
1
+ T_setup