OBJECTIVE

Create a local Python tool that records installed packages, project imports, versions, and unresolved dependencies without uploading the project or environment data.

TIME PLAN

Prepare 25m · Build 105m · Verify 25m · Document 25m

Working boundary

Work only inside the folder created by Smartphone-Academy.py prepare dependency-inventory. Use the supplied fictional samples or data you are explicitly authorized to handle.

Prepare the Termux workspace

Open Termux in the Academy folder and create the safe workspace. The companion generates samples, notes, and evidence files under your account.

Android + Termuxpython Smartphone-Academy.py prepare dependency-inventoryNo root. Work only with the supplied files under $HOME.

Practical mission

  1. Export installed Python package names and versions in machine-readable form
  2. Parse imports from the supplied Python files without executing them
  3. Match imports to installed distributions and preserve ambiguous results as unknown
  4. Generate a JSON report and test it in a clean sample project directory
EVIDENCE TO PRODUCE

A dependency_inventory.py tool and dependency-report.json with explicit unknown and unused categories.

Quality gate

The deliverable states a clear scope and date for “Build a Python Dependency Inventory.”
A second learner can reproduce the commands and paths.
Original samples remain unchanged and verifiable.
Limitations and confidence are recorded beside the conclusions.

Analyst reflection

Which result from “Generate a JSON report and test it in a clean sample project directory” needs additional evidence before it could support a real operational decision?

Complete in Termux

After checking the deliverables, run python Smartphone-Academy.py complete dependency-inventory. Progress is stored locally in the Termux home directory.

12 · Python Automation

Continue learning

Back to Smartphone Academy