Skip to main content

pysortfolder

Sort folders and files by size and display it in folder tree format.

Usage

from pysortfolder import PySortFolder

PySortFolder(path='PATH/TO/ROOT/FOLDER')
sf.make_tree(reverse=False)  # support reverse=True
sf.print_tree()

# data, size: 82
# ├── subfolder3, size: 0
# │   └── subsubfolder2, size: 0
# │       └── subsubsubfolder1, size: 0
# │           ├── subsubsubsubfolder1, size: 0
# │           └── subsubsubfolder1_text1.txt, size: 0
# ├── subfolder2, size: 17
# │   └── subfolder2_text1.txt, size: 17
# ├── subfolder1, size: 54
# │   ├── subsubfolder1, size: 20
# │   │   └── subsubfolder1_text1.txt, size: 20
# │   ├── subfolder1_text1.txt, size: 17
# │   └── subfolder1_text2.txt, size: 17
# └── root_text1.txt, size: 11
from pysortfolder import dir_size

print(dir_size(path='PATH/TO/ROOT/FOLDER')) # print the size of the root

# 82

Metadata

Release files for pysortfolder 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pysortfolder 0.0.4
File Size Uploaded Provenance Actions
pysortfolder-0.0.4.tar.gz 5.1 kB Without provenance Details for pysortfolder-0.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pysortfolder 0.0.4
File Interpreter ABI Platform Actions
pysortfolder-0.0.4-py3-none-any.whl Python 3 none any Details for pysortfolder-0.0.4-py3-none-any.whl

Total release size: 10.0 kB

Release files / pysortfolder-0.0.4.tar.gz

Download URL pysortfolder-0.0.4.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1dd9aaa016a0066be79c1d91b1fbd1c5f9510755f4c85aa6c89ffef84468dff3
BLAKE2b-256 checksum
How to use checksums
06b1530559f20bf914e07a12894b26a74c152cd1d47bff9776b2cfd0ec4bb6c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.8.10

Release files / pysortfolder-0.0.4-py3-none-any.whl

Download URL pysortfolder-0.0.4-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ca7344305a9a2a11d12dcd4059740657b33113932a01344c3f5e888372069c37
BLAKE2b-256 checksum
How to use checksums
e17033ef37f5664716142f54ee91cc4b50a5ee38f3cbb6f8419f32b8c9341799
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.8.10

Security for pysortfolder 0.0.4

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.

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page