# Install py-spy

Sampling profiler for Python programs. Version 0.4.2 via Homebrew; verified 2026-05-24.

## Install

```sh
sudo av install brew:py-spy
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install py-spy
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add py-spy
```

  Evidence: Alpine Linux edge package indexes: py-spy from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#py-spy
```

  Evidence: nixpkgs package indexes: pkgs/by-name/py/py-spy/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package Facts

- **Package key:** brew:py-spy
- **Package manager:** Homebrew
- **Package manager URL:** <https://formulae.brew.sh/formula/py-spy>
- **Version:** 0.4.2
- **Source summary:** Sampling profiler for Python programs
- **Homepage:** <https://github.com/benfred/py-spy>
- **Repository:** <https://github.com/benfred/py-spy>
- **Upstream docs:** <https://github.com/benfred/py-spy#readme>
- **License:** MIT
- **Source archive:** <https://github.com/benfred/py-spy/archive/refs/tags/v0.4.2.tar.gz>
- **Last updated:** 2026-05-24T12:58:58+09:00
- **Generated:** 2026-06-10T07:18:26+00:00

## Executables

- py-spy (cli)
- py-spy (alias)

## Build Dependencies

- rust

## Install Behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-06-10
- Package-manager version: 0.4.2
- Package-manager updated: 2026-05-24
- Local data status: ok
- Upstream repository: https://github.com/benfred/py-spy
- Upstream latest detected: v0.4.2 (current)

## 安全说明

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **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:** head, stable

## Other Package-Manager Records

- Nix - py-spy: normalized package name match | nixpkgs package indexes: pkgs/by-name/py/py-spy/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - py-spy - 0.3.14-r3: normalized package name match | Alpine Linux edge package indexes: py-spy from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Sampling profiler for Python programs | https://github.com/benfred/py-spy
- apk - py-spy-bash-completion - 0.3.14-r3: normalized package name match | Alpine Linux edge package indexes: py-spy-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Bash completions for py-spy | https://github.com/benfred/py-spy
- apk - py-spy-doc - 0.3.14-r3: normalized package name match | Alpine Linux edge package indexes: py-spy-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Sampling profiler for Python programs (documentation) | https://github.com/benfred/py-spy
- apk - py-spy-fish-completion - 0.3.14-r3: normalized package name match | Alpine Linux edge package indexes: py-spy-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Fish completions for py-spy | https://github.com/benfred/py-spy
- apk - py-spy-zsh-completion - 0.3.14-r3: normalized package name match | Alpine Linux edge package indexes: py-spy-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Zsh completions for py-spy | https://github.com/benfred/py-spy


## Related Links

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [rust](https://www.automicvault.com/zh-hans/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [memray](https://www.automicvault.com/zh-hans/pkg/brew/memray/) - Shares av.db curated category or tags: cli, developer-tools, performance, profiling, python.
- [tracy](https://www.automicvault.com/zh-hans/pkg/brew/tracy/) - Shares av.db curated category or tags: cli, developer-tools, performance, profiler, profiling.
- [sysprof](https://www.automicvault.com/zh-hans/pkg/brew/sysprof/) - Shares av.db curated category or tags: cli, developer-tools, performance, profiler, profiling.
- [gprof2dot](https://www.automicvault.com/zh-hans/pkg/brew/gprof2dot/) - Shares av.db curated category or tags: cli, developer-tools, performance, profiling.
- [snakeviz](https://www.automicvault.com/zh-hans/pkg/brew/snakeviz/) - Shares av.db curated category or tags: cli, developer-tools, profiling, python.
- [flamegraph](https://www.automicvault.com/zh-hans/pkg/brew/flamegraph/) - Shares av.db curated category or tags: cli, developer-tools, performance, profiling.
- [samply](https://www.automicvault.com/zh-hans/pkg/brew/samply/) - Shares av.db curated category or tags: cli, developer-tools, performance, profiler, profiling.
- [cargo-flamegraph](https://www.automicvault.com/zh-hans/pkg/brew/cargo-flamegraph/) - Shares av.db curated category or tags: cli, developer-tools, performance, profiling.

## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
