Skip to main content

CLI tools for viewing simple stats about files

Reason this release was yanked:

Broken

Project description

stat-tools

A small collection of simple CLI utilities for displaying stats about sets of files. Currently stat-tools provides two utility commands, extat for showing statistics about path suffixes (aka file extensions), and imstat for displaying information about image files, e.g resolution, size, format etc.

Usage

Both commands function by reading a set of files, separated by newlines, to analyze from stdin. Neither command provides any filesystem search or filtering functionality; it is the responsibility of an external tool to generate the list of paths to analyze and pass it to the stat-tools command over stdin. This design decision greatly simplifies the implementation of stat-tools and affords users maximum flexibility and control.

The intended use pattern is using a filesystem search tool such as GNU find, fd, or in simple cases ls to generate a list of file paths which is then piped to the desired stat-tools command:

# Report statistics on all files under `/some/root/path`
find some/root/path -type f | extat

extat

extat provides statistics about the path suffixes (aka "file extensions") present in the input list. This includes the number of paths with the suffix, the total number of paths, analyzed, the percentage of all paths having the suffix, the total file size of all files having the suffix, and the portion of total set file size represented by the suffix

imstat

imstat works the same way extat does, but is designed to only process image files, e.g. jpeg files, and webp files, and instead of printing statistics about the path suffixes, it prints information about each file's image metadata, e.g. resolution and file size info

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quik_stat-0.1.1.tar.gz (31.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quik_stat-0.1.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file quik_stat-0.1.1.tar.gz.

File metadata

  • Download URL: quik_stat-0.1.1.tar.gz
  • Upload date:
  • Size: 31.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.5

File hashes

Hashes for quik_stat-0.1.1.tar.gz
Algorithm Hash digest
SHA256 df22ef35ead05807f04a59e1348af5c1d4d8d890a58db5f5c17e421338ebe820
MD5 5c9a780ed2f5566813f8d7680ae78f7d
BLAKE2b-256 5a2d16967adc3fe23963fa2b5342783d4027246e513ad69e4aca98789a8dba1f

See more details on using hashes here.

File details

Details for the file quik_stat-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: quik_stat-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.5

File hashes

Hashes for quik_stat-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 808cd4dbc8d2fd385fe945f9acd70b8756a4ab96b23f6d5e98019a4ef5027b03
MD5 a70ad435210f6b68ebb711cf1e4db996
BLAKE2b-256 4cc18a0ef09b596bb07bc3378c94ed32dc9c5245f2183b552fc6177598c3b2a9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page