# 使用 Homebrew 安装 moto

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

## 安装

```sh
sudo av install brew:moto
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install moto
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:moto
- **软件包管理器:** Homebrew
- **版本:** 5.2.2
- **来源摘要:** Mock AWS services
- **主页:** <http://getmoto.org/>
- **最后更新:** 2026-07-15T12:02:26Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- moto_proxy (别名)
- moto_server (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Moto began as Steve Pulec's Python library for mocking AWS services, with the project AUTHORS file naming Pulec as the original writer and a long contributor list behind the broader emulator. Its role is tightly coupled to the boto and boto3 ecosystem: tests wrap AWS-using code with Moto's mocks so that S3, DynamoDB, IAM, Lambda, and other service calls are handled locally instead of reaching a real AWS account.

### 项目历史

The project became a standard testing tool because it supports both in-process Python decorators/context managers and a stand-alone HTTP server mode. The server mode lets non-Python SDKs point at Moto's fake AWS endpoints, while the Python API fits normal unit-test and pytest workflows. Moto 5.0.0 marked a major API simplification by replacing service-specific decorators with a single `mock_aws` decorator and making one MotoServer instance the recommended server shape, a milestone aimed at simplifying usage and state management.

### 使用方式

As a package-manager entry, Moto is more of a developer-test dependency than an end-user CLI, although Homebrew exposes `moto_server` and `moto_proxy` executables for local service emulation. Its closest neighbors are broader local cloud emulators and hand-written mocks, but Moto's niche is AWS-specific behavioral coverage that can be pulled directly into Python tests.

### 来源

- <https://docs.getmoto.org/>
- <https://docs.getmoto.org/en/latest/docs/getting_started.html>
- <https://formulae.brew.sh/formula/moto>
- <https://github.com/getmoto/moto/blob/master/AUTHORS.md>
- <https://github.com/getmoto/moto/issues/7198>
- <https://pypi.org/project/moto/>


## 安全说明

formula declares a Homebrew service.

- **Geiger 风险:** orange / 中
- formula declares a Homebrew service


## Combined YAML source

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


## 来源

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