Calculates count and average file size of files recorded by file extension
Project description
=============
Storage Stats
=============
Calculates statistics about minimum, maximum and mean average file sizes for each file extension within a directory.
|license|
Intallation
===========
::
pip install storage_stats
Documentation
=============
Usage: ``storage_stats [-h] [-e MAPFILE] [-o OUTPUT] [--no-aggregation] [--no-recursion] [--no-timing] [-s] [-v] path [path ...] ``
Calculates file size statistics for the specified folder(s).
positional arguments:
path(s) the folder(s) 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-aggregation Do not aggregate results from all specified paths together
--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
If multiple folders are specified, the results are aggregated together, unless the --no-aggregation flag is used.
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 <LICENSE>`_.
Contribute
==========
1. `Fork the GitHub project <https://help.github.com/articles/fork-a-repo>`_
2. Change the code and push into the forked project
3. `Submit a pull request <https://help.github.com/articles/using-pull-requests>`_
.. |license| image:: https://img.shields.io/badge/license-Apache%20V2-blue.svg
:target: https://github.com/pmay/storage-stats/blob/master/LICENSE
:alt: Apache V2
Storage Stats
=============
Calculates statistics about minimum, maximum and mean average file sizes for each file extension within a directory.
|license|
Intallation
===========
::
pip install storage_stats
Documentation
=============
Usage: ``storage_stats [-h] [-e MAPFILE] [-o OUTPUT] [--no-aggregation] [--no-recursion] [--no-timing] [-s] [-v] path [path ...] ``
Calculates file size statistics for the specified folder(s).
positional arguments:
path(s) the folder(s) 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-aggregation Do not aggregate results from all specified paths together
--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
If multiple folders are specified, the results are aggregated together, unless the --no-aggregation flag is used.
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 <LICENSE>`_.
Contribute
==========
1. `Fork the GitHub project <https://help.github.com/articles/fork-a-repo>`_
2. Change the code and push into the forked project
3. `Submit a pull request <https://help.github.com/articles/using-pull-requests>`_
.. |license| image:: https://img.shields.io/badge/license-Apache%20V2-blue.svg
:target: https://github.com/pmay/storage-stats/blob/master/LICENSE
:alt: Apache V2
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
storage_stats-0.4.0.zip
(10.5 kB
view hashes)
Built Distribution
Close
Hashes for storage_stats-0.4.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd4de29cae2d6f9754b109cff3480c44e40e3efe043ca073ca795e732945485f |
|
MD5 | 9f50320e83b3da91a6ca83b0f9384afb |
|
BLAKE2b-256 | 03aefed5cb68d266afd6ef37351ee335363b02792c30da651a1f84f04976544b |