How do imports work, and why should I care? (and why should I use a tool like PDM?)
summary
Explains how Python resolves imports using the import machinery (finders and loaders), where packages live (site‑packages, venvs, pyenv), and what installers do when installing into those paths; demonstrates that PDM manages virtual environments, creates a lockfile, and runs PDM ad instead of pip while adhering to standards; warns about real PyPI typosquat malware (examples that exfiltrate secrets) and recommends using scanners like safety to guard against supply‑chain attacks when using PDM.
AI-written summary · about
