Skip to main content
https://travis-ci.org/larsyencken/anytop.png

Overview

anytop is a tool for viewing frequency distributions over streaming input. It reads input line by line, and shows the top elements in the distribution as they stream in. It is inspired by the excellent command-line tools available for the Varnish web accelerator.

anytop is designed to work within a shell flow, allowing you to easily modify the data streaming in with tools such as cut, sed and tr. Get usage help by typing anytop --help. To exit anytop, type CTRL-C.

Example: dictionary words

Get the distribution of word starting with each different letter from the dictionary:

cut -c 1-1 /usr/share/dict/words | tr [:upper:] [:lower:] | anytop
http://media.quietlyamused.org.s3.amazonaws.com/anytop/img/anytop-dict.png

Looks like s, p and c have the most words.

Example: file types

Work out the relative distribution of file extensions in a source tree:

ack -f | fgrep . | awk -F . '{print $NF}' | anytop
http://media.quietlyamused.org.s3.amazonaws.com/anytop/img/anytop-sourcetree.png

Looks like a PHP codebase for a web app.

Example: shell commands

See what commands you use most often in bash:

cut -d ' ' -f 1 .bash_history | xargs -n 1 basename | anytop
http://media.quietlyamused.org.s3.amazonaws.com/anytop/img/anytop-bashhist.png

Developer tools vim, git and j (autojump) feature pretty prominently. Maybe I type ls a little too much.

As you can see, anytop lends itself handily to shell pipelines, allowing it to be useful in a wide variety of situations.

Memory usage

Anytop uses memory proportional to the number of distinct lines in the input. If the input keyspace is bounded, then anytop will use limited memory, no matter how many lines or how long it runs.

When the input keyspace is not bounded, memory use can still be bounded by only displaying statistics on a fixed-size window of lines with the -l option.

Bitdeli badge

Metadata

Release files for anytop 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for anytop 0.3.0
File Size Uploaded Provenance
anytop-0.3.0.tar.gz 6.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for anytop 0.3.0
File Interpreter ABI Platform
anytop-0.3.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 16.2 kB

Release files / anytop-0.3.0.tar.gz

Download URL anytop-0.3.0.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b393bce14971dbe6e8cef4983319efa4152eb75257abcea445cd444a04fd0b82
BLAKE2b-256 checksum
How to use checksums
819507be132f0423d06d5b490bb9f68fea52f8013544391405031a40fea7d0e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / anytop-0.3.0-py2.py3-none-any.whl

Download URL anytop-0.3.0-py2.py3-none-any.whl
Size 10.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
967924b061f29018d618ddd3dfd1f19b61df194904c504b2659596fcea1e54fd
BLAKE2b-256 checksum
How to use checksums
48acf43e01bbee4c00ce432cc2069c840b13219555dd05a15ae747f6e02617b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for anytop 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page