fromscratch-pystack 0.5.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.
Files changed (43) hide show
  1. fromscratch_pystack-0.5.0.dist-info/METADATA +510 -0
  2. fromscratch_pystack-0.5.0.dist-info/RECORD +43 -0
  3. fromscratch_pystack-0.5.0.dist-info/WHEEL +4 -0
  4. fromscratch_pystack-0.5.0.dist-info/entry_points.txt +3 -0
  5. fromscratch_pystack-0.5.0.dist-info/licenses/LICENSE +21 -0
  6. pystack/__init__.py +1 -0
  7. pystack/_version.py +24 -0
  8. pystack/adapters/__init__.py +1 -0
  9. pystack/adapters/db_storage.py +157 -0
  10. pystack/adapters/os_pebble.py +118 -0
  11. pystack/adapters/pebble_db.py +85 -0
  12. pystack/cli.py +127 -0
  13. pystack/environment.py +272 -0
  14. pystack/plugins/__init__.py +1 -0
  15. pystack/plugins/_dbcrash_child.py +56 -0
  16. pystack/plugins/_schedagents.py +37 -0
  17. pystack/plugins/_schedalerts.py +103 -0
  18. pystack/plugins/_schedweb.py +79 -0
  19. pystack/plugins/_shared.py +26 -0
  20. pystack/plugins/_webdemo.py +171 -0
  21. pystack/plugins/base.py +201 -0
  22. pystack/plugins/coldb_plugin.py +165 -0
  23. pystack/plugins/crypto_plugin.py +115 -0
  24. pystack/plugins/docdb_plugin.py +172 -0
  25. pystack/plugins/git_plugin.py +94 -0
  26. pystack/plugins/graphdb_plugin.py +206 -0
  27. pystack/plugins/kv_plugin.py +156 -0
  28. pystack/plugins/llm_plugin.py +102 -0
  29. pystack/plugins/mq_plugin.py +290 -0
  30. pystack/plugins/net_plugin.py +247 -0
  31. pystack/plugins/pydb_plugin.py +111 -0
  32. pystack/plugins/registry.py +150 -0
  33. pystack/plugins/sched_plugin.py +235 -0
  34. pystack/plugins/search_plugin.py +151 -0
  35. pystack/plugins/tsdb_plugin.py +175 -0
  36. pystack/plugins/vecdb_plugin.py +168 -0
  37. pystack/plugins/web_plugin.py +95 -0
  38. pystack/py.typed +0 -0
  39. pystack/web/__init__.py +1 -0
  40. pystack/web/app.py +138 -0
  41. pystack/web/static/app.js +105 -0
  42. pystack/web/static/style.css +158 -0
  43. pystack/web/templates/index.html +59 -0
@@ -0,0 +1,158 @@
1
+ * {
2
+ margin: 0;
3
+ padding: 0;
4
+ box-sizing: border-box;
5
+ }
6
+
7
+ body {
8
+ font-family: 'Courier New', Courier, monospace;
9
+ background: #1a1a2e;
10
+ color: #e0e0e0;
11
+ min-height: 100vh;
12
+ display: flex;
13
+ flex-direction: column;
14
+ }
15
+
16
+ header {
17
+ background: #16213e;
18
+ padding: 12px 20px;
19
+ border-bottom: 2px solid #0f3460;
20
+ }
21
+
22
+ header h1 {
23
+ color: #e94560;
24
+ font-size: 20px;
25
+ display: inline;
26
+ }
27
+
28
+ .subtitle {
29
+ color: #888;
30
+ font-size: 12px;
31
+ margin-left: 10px;
32
+ display: inline;
33
+ }
34
+
35
+ nav {
36
+ margin-top: 8px;
37
+ }
38
+
39
+ .tab {
40
+ background: #1a1a2e;
41
+ color: #888;
42
+ border: 1px solid #333;
43
+ padding: 6px 16px;
44
+ cursor: pointer;
45
+ font-family: inherit;
46
+ font-size: 13px;
47
+ border-radius: 4px 4px 0 0;
48
+ margin-right: 2px;
49
+ }
50
+
51
+ .tab.active {
52
+ background: #0f3460;
53
+ color: #e0e0e0;
54
+ border-bottom-color: #0f3460;
55
+ }
56
+
57
+ .tab:hover {
58
+ color: #e94560;
59
+ }
60
+
61
+ main {
62
+ flex: 1;
63
+ display: flex;
64
+ flex-direction: column;
65
+ padding: 0;
66
+ }
67
+
68
+ .panel {
69
+ display: none;
70
+ flex: 1;
71
+ flex-direction: column;
72
+ padding: 10px 20px;
73
+ }
74
+
75
+ .panel.active {
76
+ display: flex;
77
+ }
78
+
79
+ .output {
80
+ flex: 1;
81
+ background: #0d1117;
82
+ border: 1px solid #333;
83
+ border-radius: 4px;
84
+ padding: 12px;
85
+ overflow-y: auto;
86
+ white-space: pre-wrap;
87
+ font-size: 13px;
88
+ line-height: 1.5;
89
+ min-height: 300px;
90
+ max-height: 60vh;
91
+ }
92
+
93
+ .input-row {
94
+ display: flex;
95
+ align-items: center;
96
+ margin-top: 8px;
97
+ background: #0d1117;
98
+ border: 1px solid #333;
99
+ border-radius: 4px;
100
+ padding: 8px 12px;
101
+ }
102
+
103
+ .prompt {
104
+ color: #e94560;
105
+ margin-right: 8px;
106
+ white-space: nowrap;
107
+ }
108
+
109
+ input[type="text"] {
110
+ flex: 1;
111
+ background: transparent;
112
+ border: none;
113
+ color: #e0e0e0;
114
+ font-family: inherit;
115
+ font-size: 14px;
116
+ outline: none;
117
+ }
118
+
119
+ .editor {
120
+ flex: 1;
121
+ background: #0d1117;
122
+ border: 1px solid #333;
123
+ border-radius: 4px;
124
+ padding: 12px;
125
+ color: #e0e0e0;
126
+ font-family: inherit;
127
+ font-size: 13px;
128
+ line-height: 1.5;
129
+ resize: none;
130
+ min-height: 200px;
131
+ outline: none;
132
+ tab-size: 4;
133
+ }
134
+
135
+ .run-btn {
136
+ margin-top: 8px;
137
+ padding: 8px 24px;
138
+ background: #e94560;
139
+ color: white;
140
+ border: none;
141
+ border-radius: 4px;
142
+ cursor: pointer;
143
+ font-family: inherit;
144
+ font-size: 14px;
145
+ align-self: flex-start;
146
+ }
147
+
148
+ .run-btn:hover {
149
+ background: #c73650;
150
+ }
151
+
152
+ .error {
153
+ color: #ff6b6b;
154
+ }
155
+
156
+ .success {
157
+ color: #69db7c;
158
+ }
@@ -0,0 +1,59 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>PyStack -- The Full Stack, From Scratch</title>
7
+ <link rel="stylesheet" href="/static/style.css">
8
+ </head>
9
+ <body>
10
+ <header>
11
+ <h1>PyStack</h1>
12
+ <p class="subtitle">The Full Stack, From Scratch</p>
13
+ <nav>
14
+ <button class="tab active" data-panel="terminal">OS Terminal</button>
15
+ <button class="tab" data-panel="pebble">Pebble Editor</button>
16
+ <button class="tab" data-panel="sql">SQL Console</button>
17
+ </nav>
18
+ </header>
19
+
20
+ <main>
21
+ <!-- OS Terminal Panel -->
22
+ <div id="terminal" class="panel active">
23
+ <div id="terminal-output" class="output">{{ boot_log }}</div>
24
+ <div class="input-row">
25
+ <span class="prompt">pystack-os&gt;</span>
26
+ <input type="text" id="terminal-input" autofocus
27
+ placeholder="Type a command (ls, pebble, sql, help)">
28
+ </div>
29
+ </div>
30
+
31
+ <!-- Pebble Editor Panel -->
32
+ <div id="pebble" class="panel">
33
+ <textarea id="pebble-source" class="editor" placeholder='import "db"
34
+
35
+ db_execute("CREATE TABLE cards (name TEXT, power INTEGER)")
36
+ db_execute("INSERT INTO cards VALUES (&apos;Pikachu&apos;, 55)")
37
+
38
+ let rows = db_query("SELECT * FROM cards")
39
+ for row in rows {
40
+ print(row["name"])
41
+ }'></textarea>
42
+ <button id="pebble-run" class="run-btn">Run</button>
43
+ <div id="pebble-output" class="output"></div>
44
+ </div>
45
+
46
+ <!-- SQL Console Panel -->
47
+ <div id="sql" class="panel">
48
+ <div id="sql-output" class="output"></div>
49
+ <div class="input-row">
50
+ <span class="prompt">sql&gt;</span>
51
+ <input type="text" id="sql-input"
52
+ placeholder="SELECT * FROM cards">
53
+ </div>
54
+ </div>
55
+ </main>
56
+
57
+ <script src="/static/app.js"></script>
58
+ </body>
59
+ </html>