Usage:
After installation, you can run this package directly in command line. Launching it without arguments starts it in interactive mode:
Sample output:
Path: /home/sany/PycharmProjects Number of files: 6657 № | B | MB | Path 1 | 368078630 | 368.1 | /home/sany/PycharmProjects/xml_to_csv/Harrods_Google_Feed_USD_US.xml 2 | 195476333 | 195.5 | /home/sany/PycharmProjects/xml_to_csv/test.csv 3 | 188825866 | 188.8 | /home/sany/PycharmProjects/just/test.csv 4 | 40412990 | 40.4 | /home/sany/PycharmProjects/BuildingMachine/_sparsetools.cpython-36m-x86_64-linux-gnu.so 5 | 38513408 | 38.5 | /home/sany/PycharmProjects/BuildingMachine/.libs/libopenblasp-r0-39a31c03.2.18.so
Besides that, you can start it with arguments:
- -h, --help
show this help message and exit
- -p PATH
the path to parent dir
- -n NUMBER
how much files will be shown
- -m, --min
sort by min size
- --biggest
get information about the biggest file
- --smallest
get information about the smallest file
- --average
get the sum of the sizes divided by how many files are in the directory
- --median
get the middle value of an ordered list of sizes
- --range
get the difference between the min and max file sizes
- --mode
get file sizes repeated most often
Sample output
$ fant_sizer -p /home/sany/PycharmProjects/some_dir -n 40 -m Path: /home/sany/PycharmProjects/some_dir Number of files: 45 № | B | MB | Path 1 | 0 | 0.0 | /home/sany/PycharmProjects/some_dir/setup.cfg 2 | 6 | 0.0 | /home/sany/PycharmProjects/some_dir/.gitignore 3 | 10 | 0.0 | /home/sany/PycharmProjects/some_dir/runtime.txt 4 | 23 | 0.0 | /home/sany/PycharmProjects/some_dir/.git/HEAD 5 | 24 | 0.0 | /home/sany/PycharmProjects/some_dir/.git/COMMIT_EDITMSG 6 | 41 | 0.0 | /home/sany/PycharmProjects/some_dir/.git/refs/heads/master 7 | 73 | 0.0 | /home/sany/PycharmProjects/some_dir/.git/description 8 | 92 | 0.0 | /home/sany/PycharmProjects/some_dir/.git/config 9 | 180 | 0.0 | /home/sany/PycharmProjects/some_dir/.idea/vcs.xml 10 | 189 | 0.0 | /home/sany/PycharmProjects/some_dir/.git/hooks/post-update.sample 11 | 208 | 0.0 | /home/sany/PycharmProjects/some_dir/.idea/misc.xml 12 | 240 | 0.0 | /home/sany/PycharmProjects/some_dir/.git/info/exclude 13 | 280 | 0.0 | /home/sany/PycharmProjects/some_dir/.idea/modules.xml
Download
python3.6 -m pip install fant_sizer
Metadata
Release files for fant-sizer 0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fant_sizer-0.7.tar.gz | 5.6 kB | Without provenance | Details for fant_sizer-0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fant_sizer-0.7-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for fant_sizer-0.7-py2.py3-none-any.whl |
Total release size: 14.5 kB
Release files / fant_sizer-0.7.tar.gz
| Download URL | fant_sizer-0.7.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bb46998d5405ea6871cc11ce7083502753df3c183de572aaa0689dd245e064d3
|
|
BLAKE2b-256 checksum How to use checksums |
f548f18ddc0e4bfcaad83980f7e17d0ec40988805fdc5be456d50fd6b222a711
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / fant_sizer-0.7-py2.py3-none-any.whl
| Download URL | fant_sizer-0.7-py2.py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
e7f36d035fd70935a929c23c8d19d3a42c728d7bc0296eb0ed298b6d3b2ce57f
|
|
BLAKE2b-256 checksum How to use checksums |
fd18160ce9c2c78a0e39f5621f6edaaa3a21d9eec5be7d876662f39503953119
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for fant-sizer 0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.