Tags: AhsanSheraz/pywho
Tags
feat: add project-wide shadow scanner (pywho scan) (#3) Add `pywho scan` subcommand that recursively scans directories for .py files shadowing stdlib or installed packages. Includes severity levels (HIGH for stdlib, MEDIUM for installed), smart directory exclusions, JSON output, and Python API via scan_path(). Revamp README with badges, table of contents, and quick-reference command table. Co-authored-by: ahsan.sheraz <[email protected]> Co-authored-by: Claude Opus 4.6 <[email protected]>
feat: add import resolution tracer (pywho trace) (#1) * feat: add import resolution tracer (pywho trace) New `pywho trace <module>` subcommand that explains where an import resolves and why. Includes sys.path search order, module classification, cache detection, and shadow warnings. - tracer.py: core trace engine with trace_import() API - trace_formatter.py: colored terminal output for trace reports - CLI: `pywho trace <module>` with --verbose and --json flags - 21 new tests (53 total) - Updated README, docs, API reference, and CHANGELOG - Version bump to 0.2.0 * fix: classify site-packages modules before stdlib path check On macOS system Python, site-packages lives under the same prefix as stdlib. Check for 'site-packages' in origin path first to correctly classify third-party packages on all platforms. --------- Co-authored-by: ahsan.sheraz <[email protected]>