CLI tool to inspect CODEOWNERS files: show unowned and owned directories, get owned paths for a user, find owners for a given path.
python3 -m pip install owners
Show paths owned by the given user or group:
python3 -m owners owned-by @some-user-name
Show owners of the given file or directory:
python3 -m owners owners-of some/local/path
Print a colorful tree of all directories and their owners:
python3 -m owners tree