csft - Count Sizes of File Types
A CLI to count sizes of file types in a directory, implemented by Python.
Install
Install from the official PYPI:
pip install csft
Install from the latest source:
pip install git+https://github.com/yanqd0/csft.git
Usage
The simplest usage:
csft PATH/TO/A/DIRECTORY
More Usage:
csft -h
CLI Results
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
Use as a Python module
>>> 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
Changelog for csft
0.4.0 (2018-01-15)
Rename csft.csft to csft._csft
Use humanfriendly to display file sizes by default
Replace –pretty with –with-raw
Enhance test cases
0.3.0 (2017-06-16)
Expose csft.csft2data function
Add option –pretty
Add option –top
0.2.1 (2017-05-24)
Add the version option
0.2.0 (2017-05-22)
This is the 1st official release in PyPI.
Initialize test cases
Integrate in Travis CI
0.1.2 (2017-05-16)
Drop unused index column
0.1.1 (2017-05-16)
Fix problems about setup
0.1.0 (2017-05-16)
Basically usable
Metadata
Release files for csft 0.4.0
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 |
|---|---|---|---|---|
| csft-0.4.0.tar.gz | 12.9 kB | Without provenance | Details for csft-0.4.0.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| csft-0.4.0-py3.6.egg | Legacy Egg format | - | - | Details for csft-0.4.0-py3.6.egg |
| csft-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for csft-0.4.0-py3-none-any.whl |
Total release size: 29.3 kB
Release files / csft-0.4.0.tar.gz
| Download URL | csft-0.4.0.tar.gz |
|---|---|
| Size | 12.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2396a5658465d0b7c838547327a09d44500cd173ac1ae6f32c0f5308fef35d82
|
|
BLAKE2b-256 checksum How to use checksums |
8a4a46d39680b52abd5b17c01ab01aa3dea36ce2b5f9de8f4475af1d4571fb2e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / csft-0.4.0-py3.6.egg
| Download URL | csft-0.4.0-py3.6.egg |
|---|---|
| Size | 9.1 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
833877794c590d38ad5d7b1a33f3e14bf5a837d8136b2b1bd0671901b03db141
|
|
BLAKE2b-256 checksum How to use checksums |
665e4f070a9ff542da04cf18bb512dac26cf157ccb6ed4b74b1a5ebb749321fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / csft-0.4.0-py3-none-any.whl
| Download URL | csft-0.4.0-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f463892a056d8448e03cf767eee0d2733bc84a6c4b94e1285900782fd98c7499
|
|
BLAKE2b-256 checksum How to use checksums |
a09c34e578dc8d54206026831b32e57df897e745f0021c55a562bb9dbda94e13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for csft 0.4.0
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.