Enables inline Python scripting directly in Zsh, allowing Python code execution as shell commands with piping and environment integration.
zpyi is a Zsh plugin that allows users to run Python code directly in their shell as if it were a native command. It solves the problem of switching between shell scripting and Python for small tasks by enabling inline Python execution, piping, and integration with shell environment variables. This eliminates the need for separate Python scripts or cumbersome `python -c` commands for one-off operations.
Developers and system administrators who use Zsh and want to leverage Python's capabilities for data processing, automation, and complex calculations directly in their terminal workflow.
Developers choose zpyi because it seamlessly blends Python's expressiveness with shell convenience, offering a more powerful alternative to traditional Unix tools like awk and sed while keeping scripts in shell history for reuse.
The power of python in your Zsh - Unobtrusive and easy python scripting in shell
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Allows writing and running Python code directly in Zsh commands by enclosing it in quotes, eliminating the need for separate scripts or python -c.
Python scripts can access shell environment variables and command outputs using standard substitutions, making it easy to blend shell and Python logic.
Enables piping shell output to Python scripts, offering a flexible alternative to traditional tools like awk and sed for data processing.
Supports writing multiline Python programs that are preserved in shell history, allowing for reuse and modification of complex scripts.
Exclusively designed for Zsh, so it's not usable with other shells like Bash or Fish, reducing portability and cross-environment compatibility.
Installation involves adding a source line to .zshrc, which can cause conflicts with other plugins or custom configurations, and requires manual intervention.
Lacks automatic handling for missing Python packages; custom imports require manual environment variable setup, as acknowledged in the TODO list.