# 使用 Homebrew 安装 tach

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

## 安装

```sh
sudo av install brew:tach
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install tach
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:tach
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/tach>
- **版本:** 0.35.0
- **来源摘要:** Tool to enforce dependencies using modular architecture
- **主页:** <https://docs.gauge.sh/getting-started/introduction>
- **仓库:** <https://github.com/tach-org/tach>
- **上游文档:** <https://docs.gauge.sh/getting-started/introduction>
- **许可证:** MIT
- **源码归档:** <https://files.pythonhosted.org/packages/81/54/8bae607899ba9fd7abd9895215f2e5dc789a73529f8afeb0a10d2ee71500/tach-0.35.0.tar.gz>
- **最后更新:** 2026-08-04T12:21:39Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- tach (cli)
- tach (别名)

## 依赖

- libyaml
- python@3.14

## 构建依赖

- rust

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.35.0
- 管理器更新时间: 2026-08-04
- 本地数据: OK
- 上游仓库: https://docs.gauge.sh/getting-started/introduction
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

Tach is a Python architecture-enforcement CLI that checks imports against declared module boundaries and public interfaces. Its official documentation frames it as a tool for pre-commit hooks, CI checks, and incremental adoption in existing Python repositories.

### 项目历史

The public GitHub repository was created in January 2024, and the project presents itself as a Rust-written tool for Python dependency and interface enforcement. The official docs describe `tach.toml` as the root project configuration and `tach.domain.toml` as an optional per-domain configuration file for teams that want ownership closer to module code.

### 采用历史

Tach's adoption story is centered on normal developer-tool channels: pip installation, Homebrew packaging, pre-commit hooks, CI, and VS Code integration. The repository metadata and documentation emphasize incremental adoption, which matters for large Python codebases where architecture checks must coexist with existing imports before being tightened.

### 使用方式

Typical use starts with `tach init`, then `tach check` in local workflows or CI. Other commands visualize dependency graphs, synchronize configuration with observed imports, check external package dependencies, generate dependency maps, and run impacted tests.

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

Package-manager users care about Tach because it turns package/module boundaries into a checked artifact that can travel with a repository. It sits in the same practical space as linters and type checkers: installable as a CLI, cheap enough for hooks, and useful for enforcing dependency contracts before packaging or deployment.

### 时间线

- 2024: Public GitHub repository created.
- 2024: Official docs describe Tach as open source, pip-installable, CI-friendly, and incrementally adoptable.
- 2026: Homebrew formula metadata lists `tach` as a package-manager-distributed CLI.

### Related projects

- Tach relates to Python linters, import-boundary checkers, pre-commit hooks, CI dependency checks, and monorepo tooling.

### 来源

- <https://api.github.com/repos/tach-org/tach>
- <https://docs.gauge.sh/getting-started/introduction>
- <https://docs.gauge.sh/usage/configuration/>
- <https://github.com/tach-org/tach>
- source_facts.package-manager


## 安全说明

没有找到 tach 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: tach.toml, tach.domain.toml
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** tach
- **Version Scheme:** 0
- **Revision:** 2
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [python@3.14](https://pkg.so/zh-hans/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [pyspelling](https://pkg.so/zh-hans/brew/pyspelling/) - Shares pkgdb curated category or tags: ci, cli, developer-tools, pre-commit, python.
- [poetry](https://pkg.so/zh-hans/brew/poetry/) - Shares pkgdb curated category or tags: cli, dependency-management, developer-tools, python.
- [pipenv](https://pkg.so/zh-hans/brew/pipenv/) - Shares pkgdb curated category or tags: cli, dependency-management, developer-tools, python.
- [black](https://pkg.so/zh-hans/brew/black/) - Shares pkgdb curated category or tags: cli, developer-tools, pre-commit, python.
- [check-jsonschema](https://pkg.so/zh-hans/brew/check-jsonschema/) - Shares pkgdb curated category or tags: cli, developer-tools, pre-commit, python.
- [tox](https://pkg.so/zh-hans/brew/tox/) - Shares pkgdb curated category or tags: ci, cli, developer-tools, python.
- [pdm](https://pkg.so/zh-hans/brew/pdm/) - Shares pkgdb curated category or tags: cli, dependency-management, developer-tools, python.
- [isort](https://pkg.so/zh-hans/brew/isort/) - Shares pkgdb curated category or tags: cli, developer-tools, pre-commit, python.
- [gersemi](https://pkg.so/zh-hans/brew/gersemi/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, commit, developer, developer-tools, libyaml.
- [peru](https://pkg.so/zh-hans/brew/peru/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, dependency, dependency-management, developer, developer-tools.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
