Build typed IPython app execution pipeline

This commit is contained in:
lda
2026-08-30 01:46:36 +07:00 Verified
commit d4d05d12cf
13 changed files with 1283 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
"""Small, side-effect-free API for the in-process IPython runner."""
from .app import App, generate_good_names
from .events import (
error_from_execution_result,
event_from_execution_result,
event_from_history_output,
)
from .models import CallError, CallEvent, CallEventKind, CallResponse, CallResult
from .shell import (
Shell,
isolate_output_history,
run_cell_and_collect,
setup_shell,
)
__all__ = [
"App",
"CallEvent",
"CallEventKind",
"CallError",
"CallResponse",
"CallResult",
"error_from_execution_result",
"event_from_execution_result",
"Shell",
"event_from_history_output",
"generate_good_names",
"isolate_output_history",
"run_cell_and_collect",
"setup_shell",
]
def main() -> None:
"""Run the package's minimal command-line entry point."""
print("Hello from ipython_demo!")