# 使用 Homebrew 安装 libpostal-rest

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

## 安装

```sh
sudo av install brew:libpostal-rest
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install libpostal-rest
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:libpostal-rest
- **软件包管理器:** Homebrew
- **版本:** 1.1.0
- **来源摘要:** REST API for libpostal
- **主页:** <https://github.com/johnlonganecker/libpostal-rest>
- **仓库:** <https://github.com/johnlonganecker/libpostal-rest>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- libpostal-rest (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.1.0
## 项目历史与用法

libpostal-rest is a small Go REST service that exposes libpostal address parsing and expansion over HTTP. Its history is best understood as a deployment wrapper around the larger libpostal geospatial NLP library.

### 项目历史

The repository documents a Go 1.13+ build, HTTP endpoints for parsing, expansion, and combined expand-and-parse calls, and environment-variable configuration for listen address, logging, and Prometheus metrics. Its go.mod file depends on openvenues/gopostal, the Go binding for libpostal.

### 采用历史

The package has a narrow adoption story: it makes libpostal easier to run as a service when callers do not want to link directly to C or language bindings. The related libpostal project has broader adoption for normalizing and parsing international street addresses from open data.

### 使用方式

Operators run `libpostal-rest` as an HTTP service, then send address strings to `/parser`, `/expand`, or `/expandparser`. Environment variables configure the bind host, port, log format, log level, and optional Prometheus metrics endpoint.

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

The package is useful because libpostal itself has a heavy native build and large model-data footprint. A REST wrapper turns that local native dependency into a network service that other applications can consume with plain HTTP.

### 时间线

- 2022-06-17: The GitHub repository lists a public release around this date.
- 2022: The README documents Prometheus metrics and structured logging configuration for the service.

### Related projects

- libpostal is the core C address-normalization and parsing library.
- gopostal is the Go binding used by libpostal-rest.
- OpenStreetMap-derived data and libpostal's training pipeline are part of the upstream libpostal ecosystem.

### 来源

- <https://github.com/johnlonganecker/libpostal-rest>
- <https://github.com/openvenues/libpostal>
- <https://raw.githubusercontent.com/johnlonganecker/libpostal-rest/master/README.md>
- <https://raw.githubusercontent.com/johnlonganecker/libpostal-rest/master/go.mod>
- <https://raw.githubusercontent.com/openvenues/libpostal/master/README.md>


## 安全说明

library-like package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- library-like package without higher-risk signals


## Combined YAML source

View the package source record on GitHub. [combined/libpostal-rest.yml](https://github.com/mxcl/pkgdb/blob/main/combined/libpostal-rest.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
