macOS
brew install py-spylocal Homebrew formula metadata
安装
brew install py-spylocal Homebrew formula metadata
sudo apk add py-spyAlpine Linux edge package indexes · py-spy · 来源: dl-cdn.alpinelinux.org
nix profile install nixpkgs#py-spynixpkgs package indexes · pkgs/by-name/py/py-spy/package.nix · 来源: api.github.com
概览
Sampling profiler for Python programs
历史
py-spy is a Rust-based sampling profiler that observes running Python programs with low overhead and without modifying their code.
Ben Frederickson created py-spy as a low-overhead sampling profiler inspired by rbspy. It reads CPython process memory externally, enabling profiling of an already-running program without restarting it or injecting profiling code.
py-spy is available as PyPI binary wheels, a Cargo package, a Homebrew formula, and packages for Alpine, Nix, and other ecosystems. Its prebuilt binaries and ability to attach to existing processes helped make production profiling accessible without application instrumentation.
Its record command produces flame graphs, speedscope profiles, or raw samples; top provides a live view; and dump captures thread stacks. Attaching to unrelated processes may require elevated privileges or ptrace capabilities, especially in containers and Kubernetes.
py-spy is notable for combining Python-aware profiling with a Rust implementation that runs outside the target interpreter. It gives operators flame graphs and live top-like views while avoiding the code changes and in-process overhead associated with many traditional Python profilers.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
py-spy | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/benfred/py-spy
安装元数据
| 软件包键 | brew:py-spy |
|---|---|
| 版本 | 0.4.2 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/py-spy |
| 主页 | https://github.com/benfred/py-spy |
| 仓库 | https://github.com/benfred/py-spy |
| 许可证 | MIT |
| 源码归档 | https://github.com/benfred/py-spy/archive/refs/tags/v0.4.2.tar.gz |
| 最后更新 | 2026-09-13T13:03:28Z |
| Pulse | updated |
| 构建依赖 | rust |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | py-spy |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
py-spy
nix profile install nixpkgs#py-spypy-spy 0.3.14-r3
Sampling profiler for Python programs
https://github.com/benfred/py-spy
sudo apk add py-spypy-spy-bash-completion 0.3.14-r3
Bash completions for py-spy
https://github.com/benfred/py-spy
sudo apk add py-spy-bash-completionpy-spy-doc 0.3.14-r3
Sampling profiler for Python programs (documentation)
https://github.com/benfred/py-spy
sudo apk add py-spy-docpy-spy-fish-completion 0.3.14-r3
Fish completions for py-spy
https://github.com/benfred/py-spy
sudo apk add py-spy-fish-completionpy-spy-zsh-completion 0.3.14-r3
Zsh completions for py-spy
https://github.com/benfred/py-spy
sudo apk add py-spy-zsh-completion来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.