A Flask-based web application that provides a dynamic and visually appealing dashboard for monitoring and managing storage utlization across drives and directories. It offers insights into storage usage, detailed directory views, and sugestions for file removal when space is constrained.
- Drive Monitoring: Displays all available drives with their storage statistics.
- Dynamic Directory views: Explore directires dynamically with detailed information on files and subdirectories.
- Visualization: Use pie charts to visually represent storage usage.
- File Removal SUggestions: Recommends files for removal based on last access time when storage usage exceeds a defined threshold.
- Responsive Design: A moder, user-friendly, and responsive UI for seamless navigation.
-Backend: Flask
-Frontend: HTML,CSS, Chart.js
-Libraries: psutil
,os
,concurrent.futures
Ensure the following are installed:
- Python 3.7+
- pip
-
Clone the repository:
git clone https://github.com/RohithgowdaM/storage-dashboard.git cd storage-dashboard
-
Install dependencies:
pip install -r requirements.txt
-
Run the Flask application:
python app.py
-
Open your browser and navigate to:
http://127.0.0.1:5000/
Download and run the file directly without any dependancies using app.exe file.
storage-dashboard/
├── templates/
│ ├── index.html # Drive view template
│ ├── directory.html # Directory view template
├── static/ # Static files (if any)
├── app.py # Main application logic
├── requirements.txt # Project dependencies
├── README.md # Project documentation
/
: Home route displaying all drives and their storage statistics./directory?path=<path>
: Displays details for a specific directory./api/directory?path=<path>
: API endpoint for fetching directory data in JSON format.
- Drive Threshold: Adjust the
threshold
parameter in thesuggest_files_for_removal
function to change the storage usage percentage that triggers suggestions. - Visualization Colors: Modify the
backgroundColor
in the Chart.js configuration for custom chart colors.
This project is licensed under the MIT License. See the LICENSE
file for more details.
Contributions are welcome! Please submit a pull request or open an issue for any feature requests or bug reports.
- Rohith Gowda M: GitHub Profile