🍺 BREW Explorer

← all formulae

distribution

brew install distribution v1.3 GPL-2.0-only

Create ASCII graphical histograms in the terminal

4
30-day installs · #11204
13
90-day · #11189
82
365-day · #9716
6
★ GitHub stars · updated 4y ago

Links

Raw metadata
{
  "aliases": [],
  "alternatives": [],
  "build_dependencies": [],
  "categories": [],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Create ASCII graphical histograms in the terminal",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:36:58+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "distribution",
  "github_default_branch": "master",
  "github_last_commit_at": "2022-03-31T20:49:36Z",
  "github_readme_excerpt": "New Canonical Source\n====================\n\nI have taken employment such that it is difficult for me to be the owner of this project.\nI have transferred control to [the excellent engineer wizzat](https://github.com/wizzat/distribution).\nPlease contribute any PRs, issues, etc to that project rather than this one. Thank you,\nand it\u0027s been good serving you these past years.\n\ndistribution\n============\n\nShort, simple, direct scripts for creating character-based graphs in a\ncommand terminal. Status: stable. Features added very rarely.\n\n![diagram](https://raw.github.com/philovivero/distribution/master/screenshot.png?raw=true)\n\n\nPurpose\n=======\n\nTo generate graphs directly in the (ASCII-based) terminal. Most common use-case:\nif you type `long | list | of | commands | sort | uniq -c | sort -rn` in the terminal,\nthen you could replace the final `| sort | uniq -c | sort -rn` with `| distribution` and\nvery likely be happier with what you see.\n\nThe tool is mis-named. It was originally for generating histograms (a distribution\nof the frequency of input tokens) but it has since been expanded to generate\ntime-series graphs (or, in fact, graphs with any arbitrary \"x-axis\") as well.\n\nAt first, there will be only two scripts, the originals written in Perl and\nPython by Tim Ellis. Any other versions people are willing to create will be placed\nhere. The next likely candidate language is C++.\n\nThere are a few typical use cases for graphs in a terminal as we\u0027ll lay out here:\n\n## Tokenize and Graph\n\nA stream of ASCII bytes, tokenize it, tally the matching tokens, and graph\nthe result. For this example, assume \"file\" is a list of words with one word\nper line, so passing it to \"xargs\" makes it all-one-line.\n\n```\n$ cat file | xargs #put all words on one line\nthis is an arbitrary stream of tokens. this will be graphed with tokens pulled out. this is the first use case.\n$ cat file | xargs | distribution --tokenize=word --match=word --size=small -v\ntokens/lines examined: 25\n tokens/lines matched:",
  "github_repo": "time-less-ness/distribution",
  "github_stars": 6,
  "github_topics": [],
  "homepage": "https://github.com/time-less-ness/distribution",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 4,
  "installs_365d": 82,
  "installs_90d": 13,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "GPL-2.0-only",
  "llm_generated_at": null,
  "llm_model": null,
  "name": "distribution",
  "oldnames": [],
  "one_liner": null,
  "optional_dependencies": [],
  "rank_30d": 11204,
  "rank_365d": 9716,
  "rank_90d": 11189,
  "raw_hash": "f224e528ae94ce62",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/d/distribution.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [
    "python"
  ],
  "version_head": "HEAD",
  "version_stable": "1.3",
  "versioned_formulae": [],
  "why_use_this": null
}