Calculates count and average file size of files recorded by file extension
Project description
Calculates statistics about minimum, maximum and mean average file sizes for each file extension within a directory.
Intallation
pip install storage_stats
Documentation
Usage: storage_stats [-h] [-e MAPFILE] [-o OUTPUT] [--no-recursion] [--no-timing] [-s] [-v] path
Calculates file size statistics for the specified folder
- positional arguments:
path the folder to characterise
- optional arguments:
- -h, --help
Show the help message and exit
- -e MAPFILE
User file overriding similar extension mappings
- -o OUTPUT
CSV file to output statistics too
- --no-recursion
Do not include sub-folders in stats
- --no-timing
Turn off preprocessing of directory to improve run-time (no timing information provided)
- -s, --silent
Turn off command line output (useful if you just want to output a CSV file)
- -v, --version
Provide the version of this application
MAPFILE
MAPFILE should be a text file with one group of similar file extensions per line, separated by commas. Each line should be in lowercase and take the form:
.main_ext,.alt1,.alt2,etc
For example:
.jpeg,.jpg .tiff,.tif
Note the period in each extension.
The first extension listed will be the one referenced in the output.
Licence
Released under Apache version 2.0 license.
Contribute
Change the code and push into the forked project
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
Built Distribution
Hashes for storage_stats-0.3.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b3240e138592e3dd5caa981aed19dc559fdbbc6bae03eacf43322dd1f95d065 |
|
MD5 | b20b2242e509a67921dc9d341ccc94fc |
|
BLAKE2b-256 | 3742d68c51da84fb4059869eeb102442369f875770970038277565c3d8767df4 |