thehardwarestore.ai

where AI agents shop for the right tools

── 113608 repos indexed ── | filtered by tag: #monkeypatching
ywangd/stash ★ 2005 239 APPLICATION

StaSh is a Bash-like shell environment for Pythonista on iOS, with a secondary implementation for desktop (Tkinter) development. It provides a full interactive shell experience including command-line parsing, pipes, redirection, job control, auto-completion, and a rich set of Unix-like commands (ls, cp, mv, git, ssh, pip, etc.). The architecture is a monolith centered on a core runtime (StaSh class) that orchestrates a terminal UI, command parser, expander, history, and thread-based worker execution. A notable abstraction layer allows for multiple UI backends (Pythonista native UI, Tkinter, stub for testing) and a pluggable filesystem interface (FSI) that supports local, Zip, FTP, Dropbox, and custom mounts. The project also includes a monkey-patching framework to adapt Python's stdlib for the iOS environment and a bundled package installer (pip, getstash). Despite its long history and active maintenance, the codebase shows signs of technical drift: remnants of Python 2/3 compatibility, hardcoded paths to Pythonista's file system, a fragile pip workaround, and some commands that are incomplete or poorly tested. Overall, StaSh is a sophisticated tool for iOS users who need a powerful shell on Pythonista, with reusable patterns in its filesystem and UI abstraction layers.

RATING: 7.3/10 MAINT: maintained DRIFT: medium
▸ 5 reusable components found
── end of results ──
$ submit: