Skip to content

jaraco/nspektr

Repository files navigation

tests Ruff https://readthedocs.org/projects/nspektr/badge/?version=latest https://img.shields.io/badge/skeleton-2024-informational

nspektr is a distribution package dependency inspector.

It combines functionality from importlib.metadata and packaging to provide routines to resolve and validate dependencies for a package or entry point.

Highlights:

  • resolve takes a requirement and returns a distribution satisfying that requirement (disregarding dependencies).
  • find_dependencies takes a metadata.Distribution and generates all dependencies transitively as installed in the environment, avoiding loops.
  • missing takes an entry point and identifies all unsatisfied dependencies for that entry point.