Build a Python Dependency Inventory
Create a local Python tool that records installed packages, project imports, versions, and unresolved dependencies without uploading the project or environment data.
Create a local Python tool that records installed packages, project imports, versions, and unresolved dependencies without uploading the project or environment data.
Prepare 25m · Build 105m · Verify 25m · Document 25m
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.
python Smartphone-Academy.py prepare dependency-inventoryNo root. Work only with the supplied files under $HOME.Practical mission
- Export installed Python package names and versions in machine-readable form
- Parse imports from the supplied Python files without executing them
- Match imports to installed distributions and preserve ambiguous results as unknown
- Generate a JSON report and test it in a clean sample project directory
A dependency_inventory.py tool and dependency-report.json with explicit unknown and unused categories.
Quality gate
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?
After checking the deliverables, run python Smartphone-Academy.py complete dependency-inventory. Progress is stored locally in the Termux home directory.