TensorLearn
Back to Course
Python Essentials: The Engineering Approach
Module 15 of 20

15. Final Capstone

Task: Build a "File Analyzer" CLI tool.

Requirements:

  1. Accept a folder path as an argument (argparse).
  2. Recursively Find all files.
  3. Statistics: Count extension types (.py, .txt) and total size.
  4. Error Handling: Handle permission errors.
  5. Save report to a JSON file.

Architecture:

  • analyzer.py: Main entry point.
  • core/:
    • scanner.py: File system walking.
    • stats.py: Math logic.
  • tests/: Unit tests.

Go forth and build.

Mark as Completed

TensorLearn - AI Engineering for Professionals