# 使用 Homebrew 安装 netaddr

查看 netaddr 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:netaddr
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install netaddr
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:netaddr
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/netaddr>
- **版本:** 1.3.0
- **来源摘要:** Network address manipulation library
- **主页:** <https://netaddr.readthedocs.io/en/latest/>
- **仓库:** <https://github.com/netaddr/netaddr>
- **上游文档:** <https://netaddr.readthedocs.io/en/latest>
- **许可证:** BSD-3-Clause
- **源码归档:** <https://files.pythonhosted.org/packages/54/90/188b2a69654f27b221fba92fda7217778208532c962509e959a9cee5229d/netaddr-1.3.0.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- netaddr (cli)
- netaddr (别名)

## 依赖

- python@3.14

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 1.3.0
- 本地数据: OK
- 上游仓库: https://netaddr.readthedocs.io/en/latest/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

netaddr is a Python library and small CLI for working with IP and MAC address data: CIDR networks, arbitrary ranges, IP sets, reverse DNS names, IANA/IEEE metadata, and address-format conversions.

### 项目历史

The changelog shows public releases dating back at least to 0.4 on August 7, 2008 and credits the documentation copyright to David P. D. Moss in 2008 and netaddr contributors from 2020 onward. The project moved through a long 0.7.x era before renewed 2020s maintenance led to 1.x releases.

The 2024 1.0.0 release deliberately removed older compatibility behavior, including support for Python versions lower than 3.7 and permissive IPv4 parsing defaults. Releases through 1.3.0 continued tightening parsing behavior, metadata, and modern Python support.

### 采用历史

netaddr sits in the space where Python's standard `ipaddress` module is sometimes too narrow: bulk range formats, IPSet union/intersection behavior, OUI/IAB lookups, nmap/glob-style ranges, and convenience conversion workflows.

Homebrew usage is small because most users get netaddr through PyPI or Linux distro Python packages. The formula page showed 273 installs in the 365-day Homebrew window, all on request, which fits a Python-library package exposed as a convenience CLI.

### 使用方式

Programmatic users import `IPAddress`, `IPNetwork`, `IPRange`, `IPSet`, and helpers such as CIDR summarization functions to parse inventories, IPAM exports, firewall allowlists, scanner output, and address databases. The tutorials emphasize creating addresses, subnets, ranges, and sets, then doing set operations such as union, intersection, and difference.

The `netaddr` CLI exists, but the docs warn that it is intended for humans and should not be treated as a stable scripting interface. Package users who need stable automation should use the Python API.

### 为什么软件包爱好者会关心

netaddr is useful packaging-wise because it is a pure Python networking toolbox with a long compatibility tail. It often appears where operations code needs richer address math than the standard library offered when the code was written.

### 时间线

- 2008-08-07: 0.4 release listed in the changelog.
- 2008-09-19: 0.5 release listed, with internal descriptor and aggregate-class changes.
- 2009-08-11: 0.7 release listed in the changelog.
- 2020-07-03: 0.8.0 released after the long 0.7.x line.
- 2024-02-10: 1.0.0 released with Python-version and parsing cleanups.
- 2024-05-28: 1.3.0 released.

### Related projects

- Python ipaddress
- netaddr CLI
- IPAM tools
- nmap target formats

### 来源

- <https://formulae.brew.sh/formula/netaddr>
- <https://netaddr.readthedocs.io/en/latest/>
- <https://netaddr.readthedocs.io/en/latest/changes.html>
- <https://netaddr.readthedocs.io/en/latest/reference/cli.html>
- <https://netaddr.readthedocs.io/en/latest/tutorial_01.html>
- <https://netaddr.readthedocs.io/en/latest/tutorial_03.html>
- <https://pypi.org/project/netaddr/>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** netaddr
- **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


## 相关链接

- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://www.automicvault.com/zh-hans/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [python@3.14](https://www.automicvault.com/zh-hans/pkg/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [babeld](https://www.automicvault.com/zh-hans/pkg/brew/babeld/) - Shares av.db curated category or tags: cli, ipv4, ipv6, networking.
- [ddns-go](https://www.automicvault.com/zh-hans/pkg/brew/ddns-go/) - Shares av.db curated category or tags: cli, ipv4, ipv6, networking.
- [grepcidr](https://www.automicvault.com/zh-hans/pkg/brew/grepcidr/) - Shares av.db curated category or tags: cidr, cli, ipv4, networking.
- [grepip](https://www.automicvault.com/zh-hans/pkg/brew/grepip/) - Shares av.db curated category or tags: cli, ipv4, ipv6, networking.
- [inadyn](https://www.automicvault.com/zh-hans/pkg/brew/inadyn/) - Shares av.db curated category or tags: cli, ipv4, ipv6, networking.
- [ipcalc](https://www.automicvault.com/zh-hans/pkg/brew/ipcalc/) - Shares av.db curated category or tags: cli, ip-address, ipv6, networking.
- [ipinfo](https://www.automicvault.com/zh-hans/pkg/brew/ipinfo/) - Shares av.db curated category or tags: cidr, cli, ip-address, networking.
- [range2cidr](https://www.automicvault.com/zh-hans/pkg/brew/range2cidr/) - Shares av.db curated category or tags: cidr, cli, ip-address, networking.
- [airshare](https://www.automicvault.com/zh-hans/pkg/brew/airshare/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, network, networking, python, python-3-14.
- [netshow](https://www.automicvault.com/zh-hans/pkg/brew/netshow/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, network, networking, python, python-3-14.

## Combined YAML source

View the package source record on GitHub. [combined/netaddr.yml](https://github.com/automic-vault/db/blob/main/combined/netaddr.yml)


## 来源

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