Python Prompts Free Prompt

Python Script to Monitor Disk Usage

Write a Python script that monitors disk usage and sends alerts
☆ Save
Prompt
You are a Python developer. Write a script that checks disk usage for all mounted partitions using shutil. The script must: 1) Get usage statistics, 2) Alert if usage exceeds threshold (email), 3) Log to file, 4) Run periodically, 5) Provide a summary report, 6) Handle cross-platform, 7) Include a simple dashboard. Add comments.

How to use this prompt

1
Click Copy Prompt above to copy to your clipboard.
2
Open ChatGPT, Claude, Gemini, or any AI assistant and paste the prompt.
3
Replace any [PLACEHOLDER] values with your specific details.
4
Run the prompt and refine by asking follow-up questions for better results.