
UNIFY TCL AND PYTHON IN ONE SCRIPT WITH NATIVE INTEROPERABILITY

WHY IS TCLPYSH UNIQUE?
tclpysh is a hybrid Tcl+Python interpreter built on DashThru FusionShell core, designed for modern EDA scripting workflows. Unlike traditional tools that separate Tcl and Python into distinct modes or environments, tclpysh enables both languages to be written in a single script, with real-time mode switching and native variable sharing.
Designed for flexibility, tclpysh can be launched directly, used as a script interpreter with shebang headers (#!), or imported into third-party tools with a Python mode. It brings the openness and extensibility of the Python ecosystem to traditional Tcl users, while also enhancing Tcl shell with features like interrupt enhancement, command completion, and procedure customization.
USE CASE SCENARIOS
•CAD Teams
Import tclpysh into Python-capable tools to enable hybrid Tcl/Python scripting, enhancing tool flexibility without changing existing interfaces.
•Script Developers
Without launching an external Python environment, access thousands of open-source Python libraries within the familiar Tcl command-line for data processing, analysis, and customized EDA automation.
•Design Engineers
Traditional Tcl users can boost productivity with tclpysh enhancements like interrupt handling, command completion, and advanced procedure customization.
KEY FEATURES
Mode Switching
Switch seamlessly between Tcl and Python inside one shell without restarting or reloading the environment.
Hybrid Script
Write Tcl and Python together in a single script file with native language interoperability.
Variable Sharing
Access and update variables freely between Tcl and Python with zero-delay visibility and full cross-mode consistency.
Interrupt Enhancement
Enhanced Ctrl+C breaks the limitations of Tcl shell by supporting immediate loop/cond/proc interruption and post-interrupt actions.
Command Completion
Enhanced Tab completion supports commands, sub commands, options, variables, file paths, and nested commands.
Proc Customization
Create powerful user-defined procedures with option parsing, argument type checks, default values, and help information.