lookbusy 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.
- lookbusy-0.1.0/LICENSE +21 -0
- lookbusy-0.1.0/PKG-INFO +13 -0
- lookbusy-0.1.0/README.md +2 -0
- lookbusy-0.1.0/pyproject.toml +23 -0
- lookbusy-0.1.0/setup.cfg +4 -0
- lookbusy-0.1.0/src/lookbusy/__init__.py +0 -0
- lookbusy-0.1.0/src/lookbusy/cli.py +158 -0
- lookbusy-0.1.0/src/lookbusy.egg-info/PKG-INFO +13 -0
- lookbusy-0.1.0/src/lookbusy.egg-info/SOURCES.txt +10 -0
- lookbusy-0.1.0/src/lookbusy.egg-info/dependency_links.txt +1 -0
- lookbusy-0.1.0/src/lookbusy.egg-info/entry_points.txt +2 -0
- lookbusy-0.1.0/src/lookbusy.egg-info/top_level.txt +1 -0
lookbusy-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Kalinka
|
|
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. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
lookbusy-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: lookbusy
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Generate realistic fake terminal activity.
|
|
5
|
+
Author: Kalinka
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Requires-Python: >=3.9
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Dynamic: license-file
|
|
11
|
+
|
|
12
|
+
# lookbusy
|
|
13
|
+
A lightweight CLI tool that generates realistic-looking terminal output, including logs, progress bars, status messages, and system activity.
|
lookbusy-0.1.0/README.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=69"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "lookbusy"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Generate realistic fake terminal activity."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.9"
|
|
11
|
+
license = "MIT"
|
|
12
|
+
authors = [
|
|
13
|
+
{name = "Kalinka"}
|
|
14
|
+
]
|
|
15
|
+
|
|
16
|
+
[project.scripts]
|
|
17
|
+
lookbusy = "lookbusy.cli:main"
|
|
18
|
+
|
|
19
|
+
[tool.setuptools]
|
|
20
|
+
package-dir = {"" = "src"}
|
|
21
|
+
|
|
22
|
+
[tool.setuptools.packages.find]
|
|
23
|
+
where = ["src"]
|
lookbusy-0.1.0/setup.cfg
ADDED
|
File without changes
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import random
|
|
3
|
+
import time
|
|
4
|
+
|
|
5
|
+
MSGS = [
|
|
6
|
+
"Scanning ports",
|
|
7
|
+
"Compiling modules",
|
|
8
|
+
"Synchronizing cluster",
|
|
9
|
+
"Fetching metadata",
|
|
10
|
+
"Decrypting archive",
|
|
11
|
+
"Uploading artifacts",
|
|
12
|
+
"Running diagnostics",
|
|
13
|
+
]
|
|
14
|
+
|
|
15
|
+
STATUSES = [
|
|
16
|
+
("PASSED", "\033[32m"),
|
|
17
|
+
("FAILED", "\033[31m"),
|
|
18
|
+
]
|
|
19
|
+
ALERTS = [
|
|
20
|
+
("INFO", "\033[36m", "Cache warmed"),
|
|
21
|
+
("INFO", "\033[36m", "Worker heartbeat received"),
|
|
22
|
+
("WARN", "\033[33m", "Retrying slow endpoint"),
|
|
23
|
+
("WARN", "\033[33m", "Packet loss detected"),
|
|
24
|
+
]
|
|
25
|
+
NODES = ["api-01", "db-02", "queue-03", "cache-04", "worker-05"]
|
|
26
|
+
RESET_COLOR = "\033[0m"
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def show_progress_bar():
|
|
30
|
+
task = random.choice(MSGS)
|
|
31
|
+
width = 30
|
|
32
|
+
for percent in range(0, 101, random.randint(5, 15)):
|
|
33
|
+
percent = min(percent, 100)
|
|
34
|
+
filled = int(width * percent / 100)
|
|
35
|
+
bar = "#" * filled + "-" * (width - filled)
|
|
36
|
+
print(f"\r[{time.strftime('%H:%M:%S')}] {task}: [{bar}] {percent:3}%", end="")
|
|
37
|
+
time.sleep(random.randint(1, 4) / 10)
|
|
38
|
+
print()
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def show_spinner():
|
|
42
|
+
task = random.choice(
|
|
43
|
+
[
|
|
44
|
+
"Indexing cache",
|
|
45
|
+
"Waiting for workers",
|
|
46
|
+
"Verifying checksum",
|
|
47
|
+
"Negotiating tunnel",
|
|
48
|
+
]
|
|
49
|
+
)
|
|
50
|
+
frames = "|/-\\"
|
|
51
|
+
for step in range(random.randint(8, 18)):
|
|
52
|
+
print(
|
|
53
|
+
f"\r[{time.strftime('%H:%M:%S')}] {task} {frames[step % len(frames)]}",
|
|
54
|
+
end="",
|
|
55
|
+
)
|
|
56
|
+
time.sleep(random.randint(1, 3) / 10)
|
|
57
|
+
print(f"\r[{time.strftime('%H:%M:%S')}] {task} done ")
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
def show_alert():
|
|
61
|
+
level, color, message = random.choice(ALERTS)
|
|
62
|
+
print(f"[{time.strftime('%H:%M:%S')}] {color}{level}{RESET_COLOR}: {message}")
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
def show_node_snapshot():
|
|
66
|
+
print(f"[{time.strftime('%H:%M:%S')}] NODE HEALTH SNAPSHOT")
|
|
67
|
+
print("node cpu mem latency")
|
|
68
|
+
for node in NODES:
|
|
69
|
+
cpu = random.randint(3, 97)
|
|
70
|
+
memory = random.randint(10, 94)
|
|
71
|
+
latency = random.randint(8, 250)
|
|
72
|
+
color = "\033[32m" if latency < 120 else "\033[33m"
|
|
73
|
+
print(f"{node:<8} {cpu:>3}% {memory:>3}% {color}{latency:>4}ms{RESET_COLOR}")
|
|
74
|
+
time.sleep(random.randint(1, 2) / 10)
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
def show_connection_attempt():
|
|
78
|
+
target = random.choice(NODES)
|
|
79
|
+
print(f"[{time.strftime('%H:%M:%S')}] Opening secure channel to {target}")
|
|
80
|
+
for dot_count in range(1, random.randint(3, 6)):
|
|
81
|
+
print(f"\rHandshake{'.' * dot_count:<6}", end="")
|
|
82
|
+
time.sleep(random.randint(1, 3) / 10)
|
|
83
|
+
status, color = random.choice(STATUSES)
|
|
84
|
+
print(f"\rHandshake {color}{status}{RESET_COLOR} ")
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
def show_log_burst():
|
|
88
|
+
event_count = random.randint(3, 6)
|
|
89
|
+
print(f"[{time.strftime('%H:%M:%S')}] Streaming {event_count} buffered events")
|
|
90
|
+
for event_number in range(1, event_count + 1):
|
|
91
|
+
event_id = random.randint(1000, 9999)
|
|
92
|
+
print(
|
|
93
|
+
f" event-{event_id}: batch item {event_number}/{event_count} acknowledged"
|
|
94
|
+
)
|
|
95
|
+
time.sleep(random.randint(1, 2) / 10)
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
def main():
|
|
99
|
+
entries = 0
|
|
100
|
+
next_status_entry = random.randint(5, 10)
|
|
101
|
+
next_progress_entry = random.randint(5, 10)
|
|
102
|
+
next_spinner_entry = random.randint(8, 15)
|
|
103
|
+
next_alert_entry = random.randint(7, 14)
|
|
104
|
+
next_snapshot_entry = random.randint(10, 18)
|
|
105
|
+
next_connection_entry = random.randint(9, 16)
|
|
106
|
+
next_burst_entry = random.randint(12, 20)
|
|
107
|
+
|
|
108
|
+
while True:
|
|
109
|
+
if entries + 1 == next_progress_entry:
|
|
110
|
+
show_progress_bar()
|
|
111
|
+
next_progress_entry += random.randint(5, 10)
|
|
112
|
+
|
|
113
|
+
if entries + 1 == next_spinner_entry:
|
|
114
|
+
show_spinner()
|
|
115
|
+
next_spinner_entry += random.randint(8, 15)
|
|
116
|
+
|
|
117
|
+
if entries + 1 == next_alert_entry:
|
|
118
|
+
show_alert()
|
|
119
|
+
next_alert_entry += random.randint(7, 14)
|
|
120
|
+
|
|
121
|
+
if entries + 1 == next_snapshot_entry:
|
|
122
|
+
show_node_snapshot()
|
|
123
|
+
next_snapshot_entry += random.randint(10, 18)
|
|
124
|
+
|
|
125
|
+
if entries + 1 == next_connection_entry:
|
|
126
|
+
show_connection_attempt()
|
|
127
|
+
next_connection_entry += random.randint(9, 16)
|
|
128
|
+
|
|
129
|
+
if entries + 1 == next_burst_entry:
|
|
130
|
+
show_log_burst()
|
|
131
|
+
next_burst_entry += random.randint(12, 20)
|
|
132
|
+
|
|
133
|
+
status_text = ""
|
|
134
|
+
if entries + 1 == next_status_entry:
|
|
135
|
+
status, color = random.choice(STATUSES)
|
|
136
|
+
status_text = f" {color}{status}{RESET_COLOR}"
|
|
137
|
+
next_status_entry += random.randint(5, 10)
|
|
138
|
+
|
|
139
|
+
print(
|
|
140
|
+
f"[{time.strftime('%H:%M:%S')}] {random.choice(MSGS)}... "
|
|
141
|
+
f"{random.randint(0, 100)}%{status_text}"
|
|
142
|
+
)
|
|
143
|
+
entries += 1
|
|
144
|
+
if entries >= 200:
|
|
145
|
+
os.system("cls" if os.name == "nt" else "clear")
|
|
146
|
+
entries = 0
|
|
147
|
+
next_status_entry = random.randint(5, 10)
|
|
148
|
+
next_progress_entry = random.randint(5, 10)
|
|
149
|
+
next_spinner_entry = random.randint(8, 15)
|
|
150
|
+
next_alert_entry = random.randint(7, 14)
|
|
151
|
+
next_snapshot_entry = random.randint(10, 18)
|
|
152
|
+
next_connection_entry = random.randint(9, 16)
|
|
153
|
+
next_burst_entry = random.randint(12, 20)
|
|
154
|
+
time.sleep(random.randint(1, 10) / 10)
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
if __name__ == "__main__":
|
|
158
|
+
main()
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: lookbusy
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Generate realistic fake terminal activity.
|
|
5
|
+
Author: Kalinka
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Requires-Python: >=3.9
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Dynamic: license-file
|
|
11
|
+
|
|
12
|
+
# lookbusy
|
|
13
|
+
A lightweight CLI tool that generates realistic-looking terminal output, including logs, progress bars, status messages, and system activity.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
README.md
|
|
3
|
+
pyproject.toml
|
|
4
|
+
src/lookbusy/__init__.py
|
|
5
|
+
src/lookbusy/cli.py
|
|
6
|
+
src/lookbusy.egg-info/PKG-INFO
|
|
7
|
+
src/lookbusy.egg-info/SOURCES.txt
|
|
8
|
+
src/lookbusy.egg-info/dependency_links.txt
|
|
9
|
+
src/lookbusy.egg-info/entry_points.txt
|
|
10
|
+
src/lookbusy.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
lookbusy
|