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,510 @@
1
+ Metadata-Version: 2.5
2
+ Name: fromscratch-pystack
3
+ Version: 0.5.0
4
+ Summary: Every project in the from-scratch-in-Python series joined into one working platform
5
+ Project-URL: Homepage, https://github.com/robcox2910/pystack
6
+ Project-URL: Repository, https://github.com/robcox2910/pystack
7
+ Project-URL: Issues, https://github.com/robcox2910/pystack/issues
8
+ Project-URL: Documentation, https://robcox2910.github.io/pystack/
9
+ Author: Rob Cox
10
+ License: MIT
11
+ License-File: LICENSE
12
+ Keywords: compiler,database,education,full-stack,operating-system
13
+ Classifier: Development Status :: 3 - Alpha
14
+ Classifier: Intended Audience :: Education
15
+ Classifier: License :: OSI Approved :: MIT License
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.14
18
+ Classifier: Topic :: Education
19
+ Classifier: Typing :: Typed
20
+ Requires-Python: >=3.14
21
+ Requires-Dist: fromscratch-pebble>=0.3.0
22
+ Requires-Dist: fromscratch-pycoldb>=0.4.0
23
+ Requires-Dist: fromscratch-pycrypt>=0.2.0
24
+ Requires-Dist: fromscratch-pydb>=0.5.0
25
+ Requires-Dist: fromscratch-pydocdb>=0.3.0
26
+ Requires-Dist: fromscratch-pygit>=0.3.0
27
+ Requires-Dist: fromscratch-pygraphdb>=0.4.0
28
+ Requires-Dist: fromscratch-pykv>=0.4.0
29
+ Requires-Dist: fromscratch-pyllm>=0.5.0
30
+ Requires-Dist: fromscratch-pymq>=0.5.0
31
+ Requires-Dist: fromscratch-pynet>=0.2.0
32
+ Requires-Dist: fromscratch-pyos>=0.3.0
33
+ Requires-Dist: fromscratch-pyscheduler>=0.5.0
34
+ Requires-Dist: fromscratch-pysearch>=0.3.0
35
+ Requires-Dist: fromscratch-pytsdb>=0.4.0
36
+ Requires-Dist: fromscratch-pyvecdb>=0.3.0
37
+ Requires-Dist: fromscratch-pyweb>=0.4.0
38
+ Provides-Extra: dev
39
+ Requires-Dist: commitizen>=4.4.0; extra == 'dev'
40
+ Requires-Dist: flask>=3.0; extra == 'dev'
41
+ Requires-Dist: hypothesis>=6.170; extra == 'dev'
42
+ Requires-Dist: pip-audit>=2.10.0; extra == 'dev'
43
+ Requires-Dist: pre-commit>=4.0.1; extra == 'dev'
44
+ Requires-Dist: pyright>=1.1.400; extra == 'dev'
45
+ Requires-Dist: pytest-cov>=6.0.0; extra == 'dev'
46
+ Requires-Dist: pytest>=8.3.4; extra == 'dev'
47
+ Requires-Dist: ruff>=0.9.3; extra == 'dev'
48
+ Provides-Extra: web
49
+ Requires-Dist: flask>=3.0; extra == 'web'
50
+ Description-Content-Type: text/markdown
51
+
52
+ # PyStack
53
+
54
+ The full stack, from scratch.
55
+
56
+ PyStack connects **SEVENTEEN** educational projects into one integrated
57
+ platform. Think of it like a school:
58
+
59
+ | Project | Role | School Analogy |
60
+ |---------|------|----------------|
61
+ | **PyOS** | Operating system | The school building |
62
+ | **Pebble** | Programming language | The language students speak |
63
+ | **PyDB** | Database engine | The filing cabinet |
64
+ | **PyCrypt** | Cryptography toolkit | The combination lock |
65
+ | **PyWeb** | HTTP web server | The front office |
66
+ | **PyNet** | Networking library | The phone system |
67
+ | **PyGit** | Version control | The yearbook archive |
68
+ | **PySearch** | Full-text search engine | The library index |
69
+ | **PyMQ** | Message queue | The intercom |
70
+ | **PyKV** | Key-value store | The cubby holes — one labeled box per thing |
71
+ | **PyDocDB** | Document database | The index-card box — every card has its own fields |
72
+ | **PyGraphDB** | Graph database | The friendship map — who knows whom |
73
+ | **PyTSDB** | Time-series database | The attendance logbook — readings over time |
74
+ | **PyVecDB** | Vector database | The "find similar" recommendation board |
75
+ | **PyColDB** | Column-family store | The flexible report cards |
76
+ | **PyLLM** | Language model | The imagination — the brain that dreams up new text |
77
+ | **PyStack** | Integration layer | The hallways connecting everything |
78
+
79
+ PyStack is the hallways. Without hallways, you can't get from the
80
+ filing cabinet to the front office. PyStack lets a Pebble program
81
+ query a database, hash a password, fetch a web page, search documents,
82
+ and send messages -- all in one program.
83
+
84
+ ## What Can You Do?
85
+
86
+ PyStack adds **14 Pebble modules** so your programs can use every
87
+ project. Just `import` the one you need.
88
+
89
+ ### Database -- `import "db"`
90
+
91
+ ```
92
+ import "db"
93
+
94
+ db_execute("CREATE TABLE pets (name TEXT, kind TEXT)")
95
+ db_execute("INSERT INTO pets VALUES ('Buddy', 'dog')")
96
+
97
+ let pets = db_query("SELECT * FROM pets")
98
+ for pet in pets {
99
+ print(pet["name"] + " is a " + pet["kind"])
100
+ }
101
+
102
+ let tables = db_tables()
103
+ print(tables)
104
+ ```
105
+
106
+ ### Cryptography -- `import "crypto"`
107
+
108
+ ```
109
+ import "crypto"
110
+
111
+ let h = hash("secret password")
112
+ print(h)
113
+
114
+ let encrypted = caesar_encrypt("HELLO", 3)
115
+ print(encrypted)
116
+
117
+ let decrypted = caesar_decrypt(encrypted, 3)
118
+ print(decrypted)
119
+
120
+ let tag = hmac_sign("important message", "my-key")
121
+ let ok = hmac_verify("important message", tag, "my-key")
122
+ print(ok)
123
+ ```
124
+
125
+ ### Web -- `import "web"`
126
+
127
+ ```
128
+ import "web"
129
+
130
+ let page = http_get("http://example.com")
131
+ print(page)
132
+
133
+ let parts = url_parse("https://example.com:8080/hello?q=1")
134
+ print(parts["host"])
135
+ print(parts["port"])
136
+ ```
137
+
138
+ ### Git -- `import "git"`
139
+
140
+ ```
141
+ import "git"
142
+
143
+ let h = git_hash("hello world")
144
+ print(h)
145
+
146
+ let d = git_diff("old version", "new version")
147
+ print(d)
148
+ ```
149
+
150
+ ### Networking -- `import "net"`
151
+
152
+ ```
153
+ import "net"
154
+
155
+ let ip = dns_lookup("example.com")
156
+ print(ip)
157
+
158
+ let parts = url_parse("https://example.com/page")
159
+ print(parts["scheme"])
160
+
161
+ let encoded = base64_encode("Hello!")
162
+ print(encoded)
163
+
164
+ let decoded = base64_decode(encoded)
165
+ print(decoded)
166
+ ```
167
+
168
+ ### Search -- `import "search"`
169
+
170
+ ```
171
+ import "search"
172
+
173
+ let engine = search_create()
174
+ search_add(engine, "doc1", "the cat sat on the mat")
175
+ search_add(engine, "doc2", "the dog chased the cat")
176
+
177
+ let results = search_query(engine, "cat")
178
+ print(results)
179
+ ```
180
+
181
+ ### Message Queue -- `import "mq"`
182
+
183
+ ```
184
+ import "mq"
185
+
186
+ let q = mq_create("orders")
187
+ mq_put("orders", "one coffee please")
188
+ mq_put("orders", "two teas")
189
+
190
+ let msg = mq_get("orders")
191
+ print(msg)
192
+
193
+ mq_subscribe("news")
194
+ mq_publish("news", "school is cancelled!")
195
+ let messages = mq_receive("news")
196
+ print(messages)
197
+ ```
198
+
199
+ ### Key-Value Store -- `import "kv"`
200
+
201
+ ```
202
+ import "kv"
203
+
204
+ kv_set("name", "Alice")
205
+ let who = kv_get("name")
206
+ print(who)
207
+
208
+ kv_delete("name") # "ok", or "error: key 'name' not found"
209
+ let keys = kv_keys()
210
+ print(keys)
211
+ ```
212
+
213
+ ### Document Database -- `import "docdb"`
214
+
215
+ ```
216
+ import "docdb"
217
+
218
+ doc_insert("students", {"name": "Alice", "age": 14})
219
+ let results = doc_find("students", {"name": "Alice"})
220
+ print(results)
221
+
222
+ let total = doc_count("students")
223
+ print(total)
224
+ ```
225
+
226
+ ### Graph Database -- `import "graphdb"`
227
+
228
+ ```
229
+ import "graphdb"
230
+
231
+ graph_add_node("alice", "Person")
232
+ graph_add_node("bob", "Person")
233
+ graph_add_edge("alice", "bob", "KNOWS")
234
+
235
+ let path = graph_shortest_path("alice", "bob")
236
+ print(path)
237
+ ```
238
+
239
+ ### Time-Series Database -- `import "tsdb"`
240
+
241
+ ```
242
+ import "tsdb"
243
+
244
+ ts_add("temperature", 72.5)
245
+ ts_add("temperature", 74.0)
246
+
247
+ let readings = ts_query("temperature")
248
+ print(readings)
249
+
250
+ let avg = ts_avg("temperature", 3600)
251
+ print(avg)
252
+ ```
253
+
254
+ ### Vector Database -- `import "vecdb"`
255
+
256
+ ```
257
+ import "vecdb"
258
+
259
+ vec_insert("song1", [0.9, 0.1, 0.3])
260
+ vec_insert("song2", [0.2, 0.8, 0.4])
261
+
262
+ let similar = vec_search([0.85, 0.15, 0.35], 1)
263
+ print(similar)
264
+ ```
265
+
266
+ ### Column-Family Store -- `import "coldb"`
267
+
268
+ ```
269
+ import "coldb"
270
+
271
+ col_set("grades", "alice", "math", "A+")
272
+ let grade = col_get("grades", "alice", "math")
273
+ print(grade)
274
+ ```
275
+
276
+ ### Language Model -- `import "llm"`
277
+
278
+ ```
279
+ import "llm"
280
+
281
+ let code = llm_generate("add two numbers")
282
+ print(code)
283
+
284
+ let valid = llm_write_pebble("add two numbers")
285
+ print(valid)
286
+
287
+ let name = llm_dream("pik")
288
+ print(name)
289
+ ```
290
+
291
+ `llm_generate` lets the model write freely, so its Pebble-flavoured code doesn't
292
+ always parse. `llm_write_pebble` calls in PyLLM's grammar **referee**, which
293
+ vetoes every illegal character, so what comes back is always real, parseable
294
+ Pebble. A plain-English request is pinned to the top as a comment and the model
295
+ writes code underneath:
296
+
297
+ ```
298
+ # add two numbers
299
+ print(self)
300
+ yse = 36
301
+ print(c)
302
+ a = 43
303
+ let total = 83 % (total - 73)
304
+ let a = value * (25 + 14)
305
+ print(step())
306
+ ```
307
+
308
+ ## All Commands
309
+
310
+ | Command | What It Does |
311
+ |---------|-------------|
312
+ | `pystack pebble <file.pbl>` | Run a Pebble program with all 14 modules available |
313
+ | `pystack sql` | Interactive SQL REPL |
314
+ | `pystack os` | PyOS shell with Pebble, SQL, and plugin commands |
315
+ | `pystack web` | Browser-based UI at http://localhost:8080 |
316
+ | `pystack --help` | Show available commands |
317
+ | `pystack <file.pbl>` | Shortcut for `pystack pebble <file.pbl>` |
318
+
319
+ ## Shell Commands
320
+
321
+ When you run `pystack os`, these commands are available at the
322
+ `pystack-os>` prompt:
323
+
324
+ | Command | What It Does | From |
325
+ |---------|-------------|------|
326
+ | `pebble run <file.pbl>` | Run a Pebble program | PyOS + Pebble |
327
+ | `pebble eval '<code>'` | Evaluate Pebble code inline | PyOS + Pebble |
328
+ | `sql <statement>` | Run a SQL statement | PyOS + PyDB |
329
+ | `hash <text>` | Print the SHA-256 hash | PyCrypt |
330
+ | `curl <url>` | Fetch a URL | PyWeb + PyNet |
331
+ | `webdemo` | Start a real PyWeb async server on localhost: public page, a doorman who says 401 until you log in, a session cookie wristband, then three live events | PyWeb |
332
+ | `dns <hostname>` | Resolve hostname to IP | PyNet |
333
+ | `overlap [n] [seconds]` | Run n sleeps at once on PyNet's event loop and time them | PyNet |
334
+ | `netecho <text>` | Send a message through a local PyNet server and time the round trip | PyNet |
335
+ | `wsecho <text>` | Send a message through a local PyNet WebSocket server and print the echo | PyNet |
336
+ | `git-hash <text>` | Print the Git blob hash (same as `git hash-object`) | PyGit |
337
+ | `git-diff <old> <new>` | Show a diff between two strings | PyGit |
338
+ | `mq-put <queue> <msg>` | Put a message on a queue | PyMQ |
339
+ | `mq-get <queue>` | Get the next message from a queue | PyMQ |
340
+ | `mqnet` | Run a real PyMQ broker on localhost: one worker crashes, its lease comes back to another, a poison job lands in the dead-letter box | PyMQ |
341
+ | `dbcrash` | Pull the plug on a journalled PyDB: a helper commits three job runs (with dates and timestamps) and dies mid-way through a fourth; reopening brings back the three and not the fourth | PyDB |
342
+ | `kv-set <key> <value>` | Store a value under a key | PyKV |
343
+ | `kv-get <key>` | Get a value by key | PyKV |
344
+ | `kv-delete <key>` | Delete a key (says so if it wasn't there) | PyKV |
345
+ | `kv-keys` | List all keys | PyKV |
346
+ | `doc-insert <collection> <json>` | Insert a document | PyDocDB |
347
+ | `doc-find <collection> [query]` | Find documents | PyDocDB |
348
+ | `doc-count <collection>` | Count documents | PyDocDB |
349
+ | `graph <add-node\|add-edge\|path> ...` | Graph database operations | PyGraphDB |
350
+ | `ts-add <series> <value>` | Add a data point | PyTSDB |
351
+ | `ts-query <series>` | Query a series | PyTSDB |
352
+ | `ts-avg <series> <window_seconds>` | Average over a time window | PyTSDB |
353
+ | `vec <insert\|search\|cosine> ...` | Vector database operations | PyVecDB |
354
+ | `col <set\|get> <family> <row> <col> [value]` | Column-family operations | PyColDB |
355
+ | `dream <prompt>` | Dream up new Pokemon names | PyLLM |
356
+
357
+ ## Quick Start
358
+
359
+ ```bash
360
+ # Install dependencies (released versions of all 17 sibling projects)
361
+ uv sync --all-extras
362
+
363
+ # Run an example program
364
+ pystack pebble examples/hello.pbl
365
+
366
+ # Try the interactive SQL REPL
367
+ pystack sql
368
+
369
+ # Launch the OS shell
370
+ pystack os
371
+
372
+ # Open the browser UI
373
+ pystack web
374
+
375
+ # Run tests
376
+ uv run pytest
377
+ ```
378
+
379
+ ## Developing alongside a sibling
380
+
381
+ Every sibling project comes from its PyPI release (`fromscratch-*` in
382
+ `pyproject.toml`), and `uv.lock` records the exact version. A change merged
383
+ into a sibling can't affect PyStack until the sibling publishes a release and
384
+ PyStack chooses to upgrade.
385
+
386
+ To try an unreleased change from a sibling checkout next to this one, install
387
+ it over the pinned release:
388
+
389
+ ```bash
390
+ uv pip install -e ../pebble-lang
391
+ uv run --no-sync pytest
392
+ ```
393
+
394
+ Use `uv run --no-sync` while you do this: a plain `uv run` (like `uv sync`)
395
+ puts the pinned release back, which is how you undo the override.
396
+
397
+ To upgrade a sibling, raise its minimum version in `pyproject.toml`, run
398
+ `uv lock --upgrade-package fromscratch-<name>`, and open a pull request so CI
399
+ checks the pair together.
400
+
401
+ ## Releasing
402
+
403
+ 1. Merge the change to `main`.
404
+ 2. Tag it: `git tag -a vX.Y.Z -m vX.Y.Z && git push origin vX.Y.Z`.
405
+ A change to the public API bumps the minor version (`v0.1.0` → `v0.2.0`);
406
+ anything else bumps the patch (`v0.1.0` → `v0.1.1`).
407
+
408
+ ## Your Data Is Saved
409
+
410
+ PyStack is like a real database: what you store is still there next time.
411
+ Your SQL tables and the data in `kv`, `docdb`, `graphdb`, `coldb`, `tsdb`,
412
+ `vecdb`, `search` and `mq` are all kept in the `pystack_data/` folder. Each
413
+ plugin has its own sub-folder (for example `pystack_data/kv/store.json`).
414
+
415
+ PyStack saves when it stops: `.quit` or `exit`, the end of a script, or
416
+ stopping the web server with Ctrl-C. Type `save` in the shell to save
417
+ straight away. If PyStack crashes, changes since the last save are lost.
418
+
419
+ Saving is crash-safe: a fresh copy is written beside the old file and
420
+ swapped in at once, so a file is never half-written. If a save file is ever
421
+ damaged, PyStack refuses to start and names the file, rather than starting
422
+ empty and overwriting your data.
423
+
424
+ Message queues (`mq`) work like a real broker: messages still waiting in a
425
+ queue are saved in `pystack_data/mq/queues.json` and are there next time, in
426
+ the same order. Pub/sub subscriptions are different. They are like live
427
+ radio: a message published while nobody is listening is gone, and
428
+ subscriptions don't outlive the run.
429
+
430
+ Because data is kept, running the same example twice adds the same data
431
+ twice. To start fresh, delete the `pystack_data/` folder (or just one
432
+ plugin's folder, like `pystack_data/kv/`). Saved search engines keep their
433
+ ids; `search_list()` lists them, so a later program can find them. Files in
434
+ `pystack_data/search/` that aren't named like a saved engine (`engine_7.json`)
435
+ are left alone, with a warning in the log naming each one.
436
+
437
+ ## Plugin System
438
+
439
+ PyStack uses a plugin system to integrate projects. Active plugins
440
+ include:
441
+
442
+ | Plugin | Pebble Module | Shell Commands |
443
+ |--------|--------------|----------------|
444
+ | CryptoPlugin | `crypto` | `hash` |
445
+ | WebPlugin | `web` | `curl`, `webdemo` |
446
+ | GitPlugin | `git` | `git-hash`, `git-diff` |
447
+ | NetPlugin | `net` | `dns`, `overlap`, `netecho`, `wsecho` |
448
+ | SearchPlugin | `search` | (none -- used from Pebble) |
449
+ | MQPlugin | `mq` | `mq-put`, `mq-get`, `mqnet` |
450
+ | PyDBPlugin | (none) | `dbcrash` |
451
+ | PySchedulerPlugin | (none) | `sched`, `schedagents`, `schedalerts`, `schedweb` |
452
+ | LLMPlugin | `llm` | `dream` |
453
+
454
+ The `db` module comes from the Pebble-DB adapter instead of a plugin,
455
+ because it needs this environment's database.
456
+
457
+ PyStack hands Pebble each environment's own modules on every run (through
458
+ Pebble's public `run_source`), so two environments never see each other's
459
+ data.
460
+
461
+ Each plugin can:
462
+
463
+ - Add a new stdlib module to the Pebble language (`import "crypto"`)
464
+ - Add new commands to the PyOS shell (`hash`, `curl`, `dns`, etc.)
465
+ - Load its saved data at start-up (`load_state(folder)`), save it
466
+ (`save_state(folder)`) and clean up (`on_shutdown()`)
467
+ - Run custom setup logic at boot time (`on_boot()`)
468
+
469
+ A plugin keeps its data on itself (`self`), never in module-level
470
+ variables, and saves into its own folder, `pystack_data/<module>/`.
471
+
472
+ Plugins are discovered automatically via Python entry points, or
473
+ registered manually in the `PyStackEnvironment`.
474
+
475
+ <!-- series:start -->
476
+ ## Related Projects
477
+
478
+ This project is one of a series that builds real systems "from scratch in Python" to teach how they work. See the [series home](https://robcox2910.github.io/) for the full story.
479
+
480
+ | Project | What it teaches | Repository | Docs |
481
+ | --- | --- | --- | --- |
482
+ | PyOS | Operating systems | [py-os](https://github.com/robcox2910/py-os) | [Docs](https://robcox2910.github.io/py-os/) |
483
+ | Pebble | Compilers and programming languages | [pebble-lang](https://github.com/robcox2910/pebble-lang) | [Docs](https://robcox2910.github.io/pebble-lang/) |
484
+ | PyDB | Relational databases | [pydb](https://github.com/robcox2910/pydb) | [Docs](https://robcox2910.github.io/pydb/) |
485
+ | PyKV | Key-value stores | [pykv](https://github.com/robcox2910/pykv) | [Docs](https://robcox2910.github.io/pykv/) |
486
+ | PyDocDB | Document databases | [pydoc-db](https://github.com/robcox2910/pydoc-db) | [Docs](https://robcox2910.github.io/pydoc-db/) |
487
+ | PyGraphDB | Graph databases | [pygraphdb](https://github.com/robcox2910/pygraphdb) | [Docs](https://robcox2910.github.io/pygraphdb/) |
488
+ | PyTSDB | Time-series databases | [pytsdb](https://github.com/robcox2910/pytsdb) | [Docs](https://robcox2910.github.io/pytsdb/) |
489
+ | PyVecDB | Vector databases | [pyvecdb](https://github.com/robcox2910/pyvecdb) | [Docs](https://robcox2910.github.io/pyvecdb/) |
490
+ | PyColDB | Column-family databases | [pycoldb](https://github.com/robcox2910/pycoldb) | [Docs](https://robcox2910.github.io/pycoldb/) |
491
+ | PyCrypt | Cryptography | [pycrypt](https://github.com/robcox2910/pycrypt) | [Docs](https://robcox2910.github.io/pycrypt/) |
492
+ | PyNet | Computer networking | [pynet](https://github.com/robcox2910/pynet) | [Docs](https://robcox2910.github.io/pynet/) |
493
+ | PyWeb | HTTP web servers | [pyweb](https://github.com/robcox2910/pyweb) | [Docs](https://robcox2910.github.io/pyweb/) |
494
+ | PyGit | Version control | [pygit](https://github.com/robcox2910/pygit) | [Docs](https://robcox2910.github.io/pygit/) |
495
+ | PySearch | Search engines | [pysearch](https://github.com/robcox2910/pysearch) | [Docs](https://robcox2910.github.io/pysearch/) |
496
+ | PyMQ | Message queues | [pymq](https://github.com/robcox2910/pymq) | [Docs](https://robcox2910.github.io/pymq/) |
497
+ | PyLLM | Language models (the brain) | [pyllm](https://github.com/robcox2910/pyllm) | [Docs](https://robcox2910.github.io/pyllm/) |
498
+ | PyScheduler | Job scheduling | [pyscheduler](https://github.com/robcox2910/pyscheduler) | [Docs](https://robcox2910.github.io/pyscheduler/) |
499
+ | **PyStack** | **Full-stack integration** | [pystack](https://github.com/robcox2910/pystack) | [Docs](https://robcox2910.github.io/pystack/) |
500
+ <!-- series:end -->
501
+
502
+ <!-- docs:start -->
503
+ ## Documentation
504
+
505
+ Full docs (with kid-friendly explanations of every idea): https://robcox2910.github.io/pystack/
506
+ <!-- docs:end -->
507
+
508
+ ## License
509
+
510
+ MIT
@@ -0,0 +1,43 @@
1
+ pystack/__init__.py,sha256=GXPrRvBSx8GbtGCZtSaQu7XzMQKreRIwb6Mzr6Y9LW8,84
2
+ pystack/_version.py,sha256=APp2gXXpoz-tyKGj5fWwVTf7yK8O9LHP-MP0aQ_uNxs,520
3
+ pystack/cli.py,sha256=b-rrSxfPENt1AKPL1pckgayIP8zKlQxeUbLzX8vxacA,3793
4
+ pystack/environment.py,sha256=p3gRFoH-qH4HYspYZVbVMHp5yl9-YVuljvsMw_eAucM,9137
5
+ pystack/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ pystack/adapters/__init__.py,sha256=PMf2PdWhdhZ4pBaAzpJ1NdhOLNGdgmeqk74E4bU3Nuc,61
7
+ pystack/adapters/db_storage.py,sha256=TF3kooGXn-54f8yDcYjsT7j9jldzqbV1SYY5tAL3ALo,5091
8
+ pystack/adapters/os_pebble.py,sha256=hTVkv7SEdKFkc09ve3x2rDGbYQ32ZkccWQpfDNrHcdw,3393
9
+ pystack/adapters/pebble_db.py,sha256=bgs9lJKyLlv16hJ2jJfW1qge-2zqUCn1ixa6kL7QlXk,2825
10
+ pystack/plugins/__init__.py,sha256=PFin8KSBG_n23cZ5Trq9K0Me3igdjOATMvZogLsTAbc,63
11
+ pystack/plugins/_dbcrash_child.py,sha256=c0ygr9Et5XlvxkbFDx_93B0sEgdt7tlkB6NqA1p9xQs,2154
12
+ pystack/plugins/_schedagents.py,sha256=-MjGgOUBvtnWdAtrgapB-lNkg0IsZkOnHNfV0nIgKWU,1472
13
+ pystack/plugins/_schedalerts.py,sha256=UoXqDRPiA3NmS9F6XRzZoY2-Q7jfluq7uSRV1fmHlm4,3697
14
+ pystack/plugins/_schedweb.py,sha256=lGniE8VyCBXuWYIbpk1T94dQMCbq7A5OG_rsLMiKdck,2959
15
+ pystack/plugins/_shared.py,sha256=1SpYnBnbsYv2sTXWXSmYw2Flg8ko1dYT_wjstG7oSBU,837
16
+ pystack/plugins/_webdemo.py,sha256=O8erlFjH9KwRrMVMJ8OCw687PYGa2d8QdPnhZLW95XI,6914
17
+ pystack/plugins/base.py,sha256=HtjJaiIRVe4NQTkf_EQvBp-VhF3B4kZ2o9fcw0RBwAw,5714
18
+ pystack/plugins/coldb_plugin.py,sha256=bJTuAUoBpZ10YTBvoCXxLBO-D3yIvJHLVEVB9HeJH_A,5640
19
+ pystack/plugins/crypto_plugin.py,sha256=6ECLVMd8Cp5GJpAgT0OiLzl5oBofTJobxFcCHbDUERo,3644
20
+ pystack/plugins/docdb_plugin.py,sha256=8HqACC89XEWoc3KkrBRh1s7YEUVwKWEBQSdjIDS8eS8,6567
21
+ pystack/plugins/git_plugin.py,sha256=xegacAUuxnTm5td84OOH1lRtWBrl6WL5aelCro6Gi4g,2939
22
+ pystack/plugins/graphdb_plugin.py,sha256=a6E5xLXj9_NvwH_7RWGejq4XhjElfvkE6PMGlow67ao,7615
23
+ pystack/plugins/kv_plugin.py,sha256=uy8CqAgZmXnafvrpgVZ0PHLa1nNBbkkbMvi3bnzuEUY,5460
24
+ pystack/plugins/llm_plugin.py,sha256=sSubKIaUQ0JWYxX66aL9b_lhzjMyXWRGErtNG0mvYEU,3887
25
+ pystack/plugins/mq_plugin.py,sha256=BJoXrlz0Hvam2_efzevNTfdlVsqGWVmHwKyGe52dW64,10916
26
+ pystack/plugins/net_plugin.py,sha256=LnXmqOALj-JAu-fTPGLWFlWXB4wvBpEoV84cA5897K0,8422
27
+ pystack/plugins/pydb_plugin.py,sha256=7FGkTDeCL2roD-SOt2Ej6jJ-o3Q8qern_Bq76Ywv0Ig,4155
28
+ pystack/plugins/registry.py,sha256=pi1jKGNxJ1zL4Fo3a99CqBopa0eBo-ABEgYEiixX_go,5081
29
+ pystack/plugins/sched_plugin.py,sha256=qOX8S1twVKPHtUAJSpaQ_-TdTYPcuNRmPmnX4Fe4thI,8763
30
+ pystack/plugins/search_plugin.py,sha256=e_xaddAf98tPw1ekL7JeT-CxEOf0w6Xqolu4C7vq3r8,5649
31
+ pystack/plugins/tsdb_plugin.py,sha256=59mSnDKSW-dl6uykOET-1Rhla490tMwKjWzmd3dohWQ,6400
32
+ pystack/plugins/vecdb_plugin.py,sha256=gRJDYZiIVZon6kW6_cKqpTFXKEdYbKtW4a_xwFdZ7Dk,6067
33
+ pystack/plugins/web_plugin.py,sha256=WXM3UY-8H1SACEkdwUYBWcvf96V2CBk0DpfK5aZG4R8,3067
34
+ pystack/web/__init__.py,sha256=Z54hKnxbhBDGhNYBnFiQ4jeaUWjjLzxeq2IPB_f4KU4,77
35
+ pystack/web/app.py,sha256=b7077wtEYDQgV21w9Yr4o6kXgdKJiohx-pPCXyMYbb4,4633
36
+ pystack/web/static/app.js,sha256=RmJOE4ggEOA-L93UMsb0BpbSx2-iY8hcKd_xhexER84,3561
37
+ pystack/web/static/style.css,sha256=O0k5SqQgsWXsbNc5i1kN5bjvn2G5U1_kZGnUc6PgDB4,2452
38
+ pystack/web/templates/index.html,sha256=wJp8vTusGU6C_WDPeL56nY_j8yA2TgHCpjIoocgCtSk,2032
39
+ fromscratch_pystack-0.5.0.dist-info/METADATA,sha256=cXJFt7ChnlTjY_2MzpFynJa-iEwvkaGscVQZRrO04ZQ,17883
40
+ fromscratch_pystack-0.5.0.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
41
+ fromscratch_pystack-0.5.0.dist-info/entry_points.txt,sha256=wwDWxnQLZPLSK3px70viRJNMiXtQPg7sSG__CnDdUU0,80
42
+ fromscratch_pystack-0.5.0.dist-info/licenses/LICENSE,sha256=NtHM2ak--oE71VCcY50kcCoC1cKS0LRUsxq_xA89RNc,1064
43
+ fromscratch_pystack-0.5.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.32.4
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ pystack = pystack.cli:main
3
+ pystack-web = pystack.web.app:main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Rob Cox
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.
pystack/__init__.py ADDED
@@ -0,0 +1 @@
1
+ """PyStack -- a unified educational platform integrating PyOS, Pebble, and PyDB."""
pystack/_version.py ADDED
@@ -0,0 +1,24 @@
1
+ # file generated by vcs-versioning
2
+ # don't change, don't track in version control
3
+ from __future__ import annotations
4
+
5
+ __all__ = [
6
+ "__version__",
7
+ "__version_tuple__",
8
+ "version",
9
+ "version_tuple",
10
+ "__commit_id__",
11
+ "commit_id",
12
+ ]
13
+
14
+ version: str
15
+ __version__: str
16
+ __version_tuple__: tuple[int | str, ...]
17
+ version_tuple: tuple[int | str, ...]
18
+ commit_id: str | None
19
+ __commit_id__: str | None
20
+
21
+ __version__ = version = '0.5.0'
22
+ __version_tuple__ = version_tuple = (0, 5, 0)
23
+
24
+ __commit_id__ = commit_id = None
@@ -0,0 +1 @@
1
+ """Adapters that connect PyOS, Pebble, and PyDB together."""