A Python package for analyzing and visualizing file sizes.
Project description
🕵️ sizespy
sizespy is a powerful Python CLI tool to inspect folders, discover disk usage, find large files, and analyze storage directly from your terminal.
Perfect for developers, power users, and anyone wondering:
"What is eating my disk space?"
🚀 Features
✅ Scan folder sizes instantly
✅ Show largest files
✅ Tree view with folder sizes
✅ Sort by biggest items
✅ Export report to CSV
✅ Safe file delete option
✅ Clean terminal output
✅ Cross-platform (Windows / Linux / macOS)
📦 Installation
pip install sizespy
⚡ Basic Usage
Scan current folder:
sizespy
Scan specific folder:
sizespy "C:\Users\KUMAR\Downloads"
Linux/macOS:
sizespy /home/user/Downloads
📊 Examples
Show Top 10 Largest Items
sizespy . --top 10
📁 Tree View
sizespy . --tree
Custom depth:
sizespy . --tree --depth 3
🔥 Largest Files
Show top 10 largest files:
sizespy . --largest 10
🔄 Smallest First
sizespy . --reverse
📄 Export CSV Report
sizespy . --export
Output:
sizespy_report.csv
🗑 Safe Delete File
sizespy --delete largefile.zip
(asks confirmation before deleting)
💻 Example Output
📊 SIZE REPORT
--------------------------------------------------
📁 5.42 GB | Videos
📁 2.18 GB | Downloads
📄 850.32 MB | movie.mkv
📄 120.45 MB | project.zip
--------------------------------------------------
Items: 4
🛠 Options
| Command | Description |
|---|---|
sizespy |
Scan current folder |
sizespy path |
Scan specific path |
--top N |
Show top N items |
--reverse |
Smallest first |
--tree |
Tree view |
--depth N |
Tree depth |
--largest N |
Largest files |
--export |
Export CSV |
--delete file |
Delete file safely |
🌍 Supported Platforms
✅ Windows
✅ Linux
✅ macOS
📌 Why sizespy?
Most disk tools are heavy GUI apps.
sizespy is:
- Fast ⚡
- Lightweight 🪶
- Developer friendly 💻
- Terminal based 🖥
- Scriptable 🔥
🤝 Contributing
Pull requests are welcome.
Ideas for future versions:
- Duplicate file finder
- Color themes
- Interactive mode
- Progress bar scanner
- Auto cleanup mode
📜 License
MIT License
⭐ Support
If you like this project:
⭐ Star the GitHub repo
⭐ Share with developers
⭐ Follow future updates
🕵️ sizespy
Spy on your storage. Find the truth.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sizespy-0.1.0.tar.gz.
File metadata
- Download URL: sizespy-0.1.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7daadcf8687f4888e41052eebccac2e9a895763b5e3c6144241f201a06b3499c
|
|
| MD5 |
5b5f1724c5d0324c6bc27b7beb871ac0
|
|
| BLAKE2b-256 |
501e3cbbc69f17be98580fe018b132020e5389bb3c69e409b0b0f1c12c7fbfe8
|
File details
Details for the file sizespy-0.1.0-py3-none-any.whl.
File metadata
- Download URL: sizespy-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b8c5178b870c89d32cff04a94b041a5b13a2dfd11517cfaf2e6f567a2ab55d3
|
|
| MD5 |
145cf28641f5a16fb26b5a4a61c7e616
|
|
| BLAKE2b-256 |
c0f74802f132caf9244227bb8bde374b5d1433b9b8824932e591a0014cdcd957
|