@cnife/pi-execute-python

Execute Python code with uv - streaming output, dependency management

Packages

Package details

extension

Install @cnife/pi-execute-python from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@cnife/pi-execute-python
Package
@cnife/pi-execute-python
Version
0.1.2
Published
May 28, 2026
Downloads
not available
Author
cnife
License
MIT
Types
extension
Size
13.9 KB
Dependencies
0 dependencies · 1 peer
Pi manifest JSON
{
  "extensions": [
    "./extensions"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

@cnife/pi-execute-python

在 pi 中执行 Python 代码,基于 uv 运行。

功能

  • 实时流式输出
  • 自动管理内联依赖(PEP 723)
  • 自定义 TUI 渲染

安装

pi install npm:@cnife/pi-execute-python

使用

在 pi 中直接让 AI 编写并执行 Python 代码即可,扩展提供 execute_python 工具。