A CLI to count sizes of file types in a directory, implemented by Python.
Install from the official PYPI:
pip install csft
Install from the latest source:
pip install git+https://github.com/yanqd0/csft.git
The simplest usage:
csft PATH/TO/A/DIRECTORY
More Usage:
csft -h
Something like this:
$ csft type size 0 .pack 116.11 MB 1 .js 12.64 MB 2 .json 6.68 MB 3 .png 1.89 MB 4 .html 1.57 MB 5 .idx 974.77 KB 6 .css 140.81 KB 7 78.33 KB 8 .gexf 51.33 KB 9 .sample 15.32 KB 10 .md 10.54 KB 11 .LICENSE 1.06 KB 12 .sh 292 bytes
>>> from csft import csft2data
>>> data = csft2data('.')
>>> from pandas import DataFrame, Series
>>> isinstance(data, DataFrame)
True
>>> isinstance(data['size'], Series)
True
>>> isinstance(data['type'], Series)
True