thegti 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.
thegti-1.0.0/LICENSE ADDED
@@ -0,0 +1,17 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 GTI contributors
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.
thegti-1.0.0/PKG-INFO ADDED
@@ -0,0 +1,90 @@
1
+ Metadata-Version: 2.4
2
+ Name: thegti
3
+ Version: 1.0.0
4
+ Summary: A GTA San Andreas loading screen when the user type the wrong command
5
+ Author: GTI contributors
6
+ License: MIT License
7
+
8
+ Copyright (c) 2026 GTI contributors
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23
+
24
+ Keywords: termux,terminal,ansi,ascii,loading,cli
25
+ Classifier: Programming Language :: Python :: 3
26
+ Classifier: Programming Language :: Python :: 3 :: Only
27
+ Classifier: Operating System :: POSIX
28
+ Classifier: Environment :: Console
29
+ Classifier: Topic :: Terminals
30
+ Classifier: Topic :: Utilities
31
+ Requires-Python: >=3.8
32
+ Description-Content-Type: text/markdown
33
+ License-File: LICENSE
34
+ Dynamic: license-file
35
+
36
+ GTI
37
+
38
+ Git Typo? Nah. Welcome to San Andreas.
39
+
40
+ GTI is a tiny terminal prank inspired by "TheFuck" (https://github.com/nvbn/thefuck).
41
+
42
+ Ever accidentally typed "gti" instead of "git"?
43
+
44
+ Well, instead of show the boring damn error, GTI takes you on a little trip to San Andreas.
45
+
46
+ What does it do?
47
+
48
+ When you run:
49
+
50
+ gti
51
+
52
+ GTI launches a GTA: San Andreas-inspired loading screen directly in your terminal.
53
+
54
+ No actual game is launched. No GPU required. Just pure terminal nonsense.
55
+
56
+ Installation
57
+
58
+ pip install thegti
59
+
60
+ Usage
61
+
62
+ gti
63
+
64
+ That's it.
65
+
66
+ Sit back and enjoy the loading screen.
67
+
68
+ Requirements
69
+
70
+ - Python 3.8+
71
+ - An ANSI-compatible terminal.
72
+ - Termux or another POSIX-like environment.
73
+
74
+ No additional runtime dependencies.
75
+
76
+ Why GTI?
77
+
78
+ Because sometimes "git" isn't "git".
79
+
80
+ Sometimes it's a 30-second loading screen.
81
+
82
+ Disclaimer
83
+
84
+ Despite the San Andreas-inspired visuals, GTI has absolutely nothing to do with Grand Theft Auto, Rockstar Games, or Take-Two Interactive.
85
+
86
+ The package name is not related to GTA either. Any resemblance is purely coincidental.
87
+
88
+ This is an unofficial terminal joke project, not an actual Git replacement.
89
+
90
+ All you had to do was type the damn git.
thegti-1.0.0/README.md ADDED
@@ -0,0 +1,55 @@
1
+ GTI
2
+
3
+ Git Typo? Nah. Welcome to San Andreas.
4
+
5
+ GTI is a tiny terminal prank inspired by "TheFuck" (https://github.com/nvbn/thefuck).
6
+
7
+ Ever accidentally typed "gti" instead of "git"?
8
+
9
+ Well, instead of show the boring damn error, GTI takes you on a little trip to San Andreas.
10
+
11
+ What does it do?
12
+
13
+ When you run:
14
+
15
+ gti
16
+
17
+ GTI launches a GTA: San Andreas-inspired loading screen directly in your terminal.
18
+
19
+ No actual game is launched. No GPU required. Just pure terminal nonsense.
20
+
21
+ Installation
22
+
23
+ pip install thegti
24
+
25
+ Usage
26
+
27
+ gti
28
+
29
+ That's it.
30
+
31
+ Sit back and enjoy the loading screen.
32
+
33
+ Requirements
34
+
35
+ - Python 3.8+
36
+ - An ANSI-compatible terminal.
37
+ - Termux or another POSIX-like environment.
38
+
39
+ No additional runtime dependencies.
40
+
41
+ Why GTI?
42
+
43
+ Because sometimes "git" isn't "git".
44
+
45
+ Sometimes it's a 30-second loading screen.
46
+
47
+ Disclaimer
48
+
49
+ Despite the San Andreas-inspired visuals, GTI has absolutely nothing to do with Grand Theft Auto, Rockstar Games, or Take-Two Interactive.
50
+
51
+ The package name is not related to GTA either. Any resemblance is purely coincidental.
52
+
53
+ This is an unofficial terminal joke project, not an actual Git replacement.
54
+
55
+ All you had to do was type the damn git.
@@ -0,0 +1,32 @@
1
+ [build-system]
2
+ requires = ["setuptools>=68", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "thegti"
7
+ version = "1.0.0"
8
+ description = "A GTA San Andreas loading screen when the user type the wrong command"
9
+ readme = "README.md"
10
+ requires-python = ">=3.8"
11
+ license = { file = "LICENSE" }
12
+ authors = [
13
+ { name = "GTI contributors" }
14
+ ]
15
+ keywords = ["termux", "terminal", "ansi", "ascii", "loading", "cli"]
16
+ classifiers = [
17
+ "Programming Language :: Python :: 3",
18
+ "Programming Language :: Python :: 3 :: Only",
19
+ "Operating System :: POSIX",
20
+ "Environment :: Console",
21
+ "Topic :: Terminals",
22
+ "Topic :: Utilities"
23
+ ]
24
+
25
+ [project.scripts]
26
+ gti = "gti.cli:main"
27
+
28
+ [tool.setuptools]
29
+ package-dir = {"" = "src"}
30
+
31
+ [tool.setuptools.packages.find]
32
+ where = ["src"]
thegti-1.0.0/setup.cfg ADDED
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1 @@
1
+ __version__ = "1.0.0"
@@ -0,0 +1,184 @@
1
+ import os
2
+ import random
3
+ import select
4
+ import shutil
5
+ import signal
6
+ import sys
7
+ import termios
8
+ import time
9
+
10
+ signal.signal(signal.SIGINT, signal.SIG_IGN)
11
+
12
+ ESC = "\033["
13
+ RESET = ESC + "0m"
14
+ BOLD = ESC + "1m"
15
+ DIM = ESC + "2m"
16
+ WHITE = ESC + "97m"
17
+ GRAY = ESC + "90m"
18
+ RED = ESC + "31m"
19
+ GREEN = ESC + "32m"
20
+ YELLOW = ESC + "93m"
21
+ CYAN = ESC + "96m"
22
+
23
+ ART = [
24
+ " _..---.._",
25
+ " _.-' _ _ '-._",
26
+ " .' ( ) ( ) '.",
27
+ " / .-._ ___ _.-. \\",
28
+ " ; / _`(___)`_ \\ ;",
29
+ " | | / / \\ \\ | |",
30
+ " ; \\ \\_/ \\_/ / ;",
31
+ " \\ '._ _.' /",
32
+ " '. '-----' .'",
33
+ " '-._ _.-'",
34
+ " '-----'",
35
+ ]
36
+
37
+ PALM_CITY = [
38
+ " _Y_ _Y_",
39
+ " / | \\ / | \\",
40
+ " | __|__ |",
41
+ " / \\ | / \\",
42
+ " / \\",
43
+ " | _ | | | | _ |",
44
+ " | |_| | |___| | |_| |",
45
+ " ___|_____|__|___|__|_____|___",
46
+ ]
47
+
48
+ def term_size():
49
+ size = shutil.get_terminal_size((80, 24))
50
+ return max(40, size.columns), max(16, size.lines)
51
+
52
+ def clear_screen():
53
+ sys.stdout.write(ESC + "2J" + ESC + "H")
54
+ sys.stdout.flush()
55
+
56
+ def centered(text, width, style=""):
57
+ # Calculate padding from visible text only; ANSI codes are added afterwards.
58
+ padding = max(0, (width - len(text)) // 2)
59
+ return (" " * padding) + style + text + RESET
60
+
61
+ def write_centered(lines, width, height, percent, tip):
62
+ # Each line is (visible text, ANSI style).
63
+ bar_width = min(42, max(20, width - 12))
64
+ filled = int(bar_width * percent / 100)
65
+ bar_text = "[" + ("#" * filled) + ("-" * (bar_width - filled)) + "]"
66
+
67
+ block = []
68
+ block.append(("", ""))
69
+ block.extend((line, YELLOW) for line in ART)
70
+ block.append(("", ""))
71
+ block.extend((line, CYAN) for line in PALM_CITY)
72
+ block.extend([
73
+ ("", ""),
74
+ ("GRAND THEFT AUTO", RED + BOLD),
75
+ ("SAN ANDREAS", WHITE + BOLD),
76
+ ("", ""),
77
+ ("LOADING", YELLOW + BOLD),
78
+ (bar_text, GREEN),
79
+ (f"{percent:3d}%", WHITE + BOLD),
80
+ ("", ""),
81
+ (tip, DIM),
82
+ ])
83
+
84
+ top = max(0, (height - len(block)) // 2)
85
+ output = [ESC + "2J" + ESC + f"{top + 1};1H"]
86
+ for text, style in block:
87
+ output.append(centered(text, width, style) if text else "")
88
+ output.append("\n")
89
+ sys.stdout.write("".join(output))
90
+ sys.stdout.flush()
91
+
92
+ def enter_quiet_terminal():
93
+ """Disable key echo and terminal mouse reporting for the animation."""
94
+ old_attrs = None
95
+ if sys.stdin.isatty():
96
+ try:
97
+ old_attrs = termios.tcgetattr(sys.stdin.fileno())
98
+ new_attrs = termios.tcgetattr(sys.stdin.fileno())
99
+ new_attrs[3] &= ~(termios.ECHO | termios.ICANON)
100
+ new_attrs[6][termios.VMIN] = 0
101
+ new_attrs[6][termios.VTIME] = 0
102
+ termios.tcsetattr(sys.stdin.fileno(), termios.TCSANOW, new_attrs)
103
+ except (termios.error, OSError):
104
+ old_attrs = None
105
+
106
+ # Disable common X10 / button / any-motion / SGR mouse reporting modes.
107
+ sys.stdout.write(
108
+ ESC + "?1000l" + ESC + "?1002l" + ESC + "?1003l" +
109
+ ESC + "?1006l" + ESC + "?25l"
110
+ )
111
+ sys.stdout.flush()
112
+ return old_attrs
113
+
114
+ def discard_input():
115
+ """Consume any key/touch escape sequences without displaying them."""
116
+ if not sys.stdin.isatty():
117
+ return
118
+ try:
119
+ while select.select([sys.stdin], [], [], 0)[0]:
120
+ if not os.read(sys.stdin.fileno(), 128):
121
+ break
122
+ except (OSError, ValueError):
123
+ pass
124
+
125
+ def leave_quiet_terminal(old_attrs):
126
+ try:
127
+ if sys.stdin.isatty():
128
+ try:
129
+ termios.tcflush(sys.stdin.fileno(), termios.TCIFLUSH)
130
+ if old_attrs is not None:
131
+ termios.tcsetattr(sys.stdin.fileno(), termios.TCSANOW, old_attrs)
132
+ except (termios.error, OSError):
133
+ pass
134
+ finally:
135
+ # Re-enable cursor and make sure no mouse mode remains active.
136
+ sys.stdout.write(
137
+ ESC + "?1000l" + ESC + "?1002l" + ESC + "?1003l" +
138
+ ESC + "?1006l" + ESC + "?25h" + ESC + "0m"
139
+ )
140
+ clear_screen()
141
+
142
+ def main():
143
+ tips = [
144
+ "Welcome to Los Santos",
145
+ "All you had to do was follow the damn train",
146
+ "Respect is everything",
147
+ "Loading San Andreas...",
148
+ "The streets are waiting",
149
+ "Have a nice trip",
150
+ ]
151
+ duration = random.uniform(18, 40)
152
+ progress = 0
153
+ tip = random.choice(tips)
154
+ old_attrs = enter_quiet_terminal()
155
+
156
+ try:
157
+ while progress < 100:
158
+ width, height = term_size()
159
+ write_centered([], width, height, progress, tip)
160
+ discard_input()
161
+
162
+ step = random.choices(
163
+ [1, 2, 3, 4, 5, 7, 9],
164
+ weights=[12, 20, 22, 18, 14, 9, 5],
165
+ )[0]
166
+ next_progress = min(100, progress + step)
167
+ delay = duration * ((next_progress - progress) / 100)
168
+ delay *= random.uniform(0.65, 1.45)
169
+
170
+ end_time = time.monotonic() + max(0.08, delay)
171
+ while time.monotonic() < end_time:
172
+ discard_input()
173
+ time.sleep(min(0.04, max(0, end_time - time.monotonic())))
174
+ progress = next_progress
175
+
176
+ width, height = term_size()
177
+ write_centered([], width, height, 100, "Welcome to San Andreas")
178
+ time.sleep(0.8)
179
+ finally:
180
+ leave_quiet_terminal(old_attrs)
181
+
182
+ if __name__ == "__main__":
183
+ main()
184
+ print("Alway check your typo, dude.")
@@ -0,0 +1,90 @@
1
+ Metadata-Version: 2.4
2
+ Name: thegti
3
+ Version: 1.0.0
4
+ Summary: A GTA San Andreas loading screen when the user type the wrong command
5
+ Author: GTI contributors
6
+ License: MIT License
7
+
8
+ Copyright (c) 2026 GTI contributors
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23
+
24
+ Keywords: termux,terminal,ansi,ascii,loading,cli
25
+ Classifier: Programming Language :: Python :: 3
26
+ Classifier: Programming Language :: Python :: 3 :: Only
27
+ Classifier: Operating System :: POSIX
28
+ Classifier: Environment :: Console
29
+ Classifier: Topic :: Terminals
30
+ Classifier: Topic :: Utilities
31
+ Requires-Python: >=3.8
32
+ Description-Content-Type: text/markdown
33
+ License-File: LICENSE
34
+ Dynamic: license-file
35
+
36
+ GTI
37
+
38
+ Git Typo? Nah. Welcome to San Andreas.
39
+
40
+ GTI is a tiny terminal prank inspired by "TheFuck" (https://github.com/nvbn/thefuck).
41
+
42
+ Ever accidentally typed "gti" instead of "git"?
43
+
44
+ Well, instead of show the boring damn error, GTI takes you on a little trip to San Andreas.
45
+
46
+ What does it do?
47
+
48
+ When you run:
49
+
50
+ gti
51
+
52
+ GTI launches a GTA: San Andreas-inspired loading screen directly in your terminal.
53
+
54
+ No actual game is launched. No GPU required. Just pure terminal nonsense.
55
+
56
+ Installation
57
+
58
+ pip install thegti
59
+
60
+ Usage
61
+
62
+ gti
63
+
64
+ That's it.
65
+
66
+ Sit back and enjoy the loading screen.
67
+
68
+ Requirements
69
+
70
+ - Python 3.8+
71
+ - An ANSI-compatible terminal.
72
+ - Termux or another POSIX-like environment.
73
+
74
+ No additional runtime dependencies.
75
+
76
+ Why GTI?
77
+
78
+ Because sometimes "git" isn't "git".
79
+
80
+ Sometimes it's a 30-second loading screen.
81
+
82
+ Disclaimer
83
+
84
+ Despite the San Andreas-inspired visuals, GTI has absolutely nothing to do with Grand Theft Auto, Rockstar Games, or Take-Two Interactive.
85
+
86
+ The package name is not related to GTA either. Any resemblance is purely coincidental.
87
+
88
+ This is an unofficial terminal joke project, not an actual Git replacement.
89
+
90
+ All you had to do was type the damn git.
@@ -0,0 +1,10 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ src/gti/__init__.py
5
+ src/gti/cli.py
6
+ src/thegti.egg-info/PKG-INFO
7
+ src/thegti.egg-info/SOURCES.txt
8
+ src/thegti.egg-info/dependency_links.txt
9
+ src/thegti.egg-info/entry_points.txt
10
+ src/thegti.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ gti = gti.cli:main
@@ -0,0 +1 @@
1
+ gti