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.0.tar.gz (18.3 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.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for quik_stat-0.1.0.tar.gz
Algorithm Hash digest
SHA256 df3d9fb9a036bd3e1849476a2f663de85ea1801bbe1602889bbd88d4ccf19f35
MD5 269163c9604091018d80673eb53ee061
BLAKE2b-256 898b81779de577e323b71db99edb1249d6c366b7ac5b994535bffa93f56f77bc

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for quik_stat-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 604dd1ee6afca3fdb54ad47304d9f81ee03383e72b9ce37a19b7080d21237a88
MD5 e4ab6c8bdab770726a0fad9512c04564
BLAKE2b-256 ac96eef8b33475518b357f1719fdfbdad879b4bc4b468b164e5ddd3f71ee5beb

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