# beanquery を Homebrew, Nix, apt でインストール

beanquery のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:beanquery
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install beanquery
```

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#beanquery
```

  証拠: nixpkgs package indexes: beanquery from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- Debian apt (92%):

```sh
sudo apt install python3-beanquery
```

  証拠: Debian stable package indexes: python3-beanquery from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

## パッケージ情報

- **パッケージキー:** brew:beanquery
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/beanquery>
- **バージョン:** 0.2.0
- **ソース概要:** Customizable lightweight SQL query tool
- **ホームページ:** <https://github.com/beancount/beanquery>
- **リポジトリ:** <https://github.com/beancount/beanquery>
- **ライセンス:** GPL-2.0-only
- **ソースアーカイブ:** <https://files.pythonhosted.org/packages/7c/90/801eec23a07072dcf8df061cb6f27be6045e08c12a90b287e872ce0a12d3/beanquery-0.2.0.tar.gz>
- **最終更新:** 2026-07-13T12:20:50Z
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- bean-query (cli)
- bean-query (エイリアス)

## 依存関係

- python@3.14

## ビルド依存関係

- bison
- meson
- ninja

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 0.2.0
- マネージャ更新日: 2026-07-13
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/beancount/beanquery
- 情報: No cached GitHub release or tag data was available.
## プロジェクトの歴史と使われ方

beanquery is a lightweight SQL-like query tool for tabular data, especially Beancount ledger data.

### プロジェクトの歴史

Beancount's query-language documentation describes bean-query as a custom SQL-like client created because plain SQLite export was awkward for Beancount's inventory and lot-aware accounting model.

The current beanquery repository presents it as a standalone, customizable, extensible SQL query tool that works on tabular data including Beancount ledgers.

### 採用の歴史

beanquery is mainly adopted as part of the Beancount ecosystem. The supplied package metadata shows it packaged for Homebrew, Debian as python3-beanquery, and Nix.

### 使われ方

The Beancount docs show bean-query running interactively on a ledger file or receiving a query directly on the command line, for example to produce balances, journals, and custom accounting reports.

### パッケージ好きにとっての重要性

beanquery is the small-tool companion to Beancount: it turns ledger data into queryable tabular output without requiring users to flatten accounting inventories into a general SQL database first.

### タイムライン

- 2014: Beancount documentation says about 70 percent of the planned query-language features were implemented and the first iteration was merged.
- 2021: The official GitHub repository for beanquery was created as a separate project.
- 2024: Beancount v3's README describes former v2 tools moving into independent GitHub projects, matching beanquery's standalone packaging role.

### Related projects

- Beancount is the primary related project. The tool also overlaps conceptually with SQL shells and Beancount's older SQLite-export experiments.

### ソース

- <https://beancount.github.io/docs/beancount_query_language/>
- <https://github.com/beancount/beancount#readme>
- <https://github.com/beancount/beanquery#readme>
- input.json source_facts.package-manager


## セキュリティノート

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:** beanquery
- **Version Scheme:** 0
- **Revision:** 1
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 他のパッケージマネージャ記録

- Debian apt - python3-beanquery - 0.2.0-1: normalized package name match | Debian stable package indexes: python3-beanquery from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Customizable lightweight SQL query tool (Python 3) | https://github.com/beancount/beanquery
- Nix - beanquery: normalized package name match | nixpkgs package indexes: beanquery from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix


## 関連リンク

- [Source-control packages](https://pkg.so/ja/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/ja/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [python@3.14](https://pkg.so/ja/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [ninja](https://pkg.so/ja/brew/ninja/) - Build dependency declared by Homebrew.
- [meson](https://pkg.so/ja/brew/meson/) - Build dependency declared by Homebrew.
- [bison](https://pkg.so/ja/brew/bison/) - Build dependency declared by Homebrew.
- [csvq](https://pkg.so/ja/brew/csvq/) - Shares pkgdb curated category or tags: cli, data, query, sql.
- [steampipe](https://pkg.so/ja/brew/steampipe/) - Shares pkgdb curated category or tags: cli, data, query, sql.
- [sqlite](https://pkg.so/ja/brew/sqlite/) - Shares pkgdb curated category or tags: cli, data, sql.
- [mysql](https://pkg.so/ja/brew/mysql/) - Shares pkgdb curated category or tags: cli, data, sql.
- [postgresql@14](https://pkg.so/ja/brew/postgresql-14/) - Shares pkgdb curated category or tags: cli, data, sql.
- [postgresql@16](https://pkg.so/ja/brew/postgresql-16/) - Shares pkgdb curated category or tags: cli, data, sql.
- [postgresql@17](https://pkg.so/ja/brew/postgresql-17/) - Shares pkgdb curated category or tags: cli, data, sql.
- [postgresql@18](https://pkg.so/ja/brew/postgresql-18/) - Shares pkgdb curated category or tags: cli, data, sql.
- [ccm](https://pkg.so/ja/brew/ccm/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, data, python, python-3-14.
- [dolphie](https://pkg.so/ja/brew/dolphie/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, data, python, python-3-14.
- [kaskade](https://pkg.so/ja/brew/kaskade/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, data, python, python-3-14.

## Combined YAML source

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


## ソース

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
