Find-orphans#
Description#
Return all packages from all repos which are not needed to install the list of top-level package versions specified.
The find-orphans command helps identify packages in a repository that are no longer used by a given set of top-level packages. This is useful for repository cleanup and maintenance.
This command will analyze the repository and return a list of package versions that are not referenced by the specified top-level packages or their dependencies.
For CLI options, run wrapp find-orphans --help.
Python API Reference#
- async wrapp.find_orphaned_package_versions(
- locking_packages: list[UniquePackageLocation],
- repos_to_inspect: list[str],
- *,
- context: CommandParameters | None = None,
- scheduler: SchedulerContext | None = None,
return all packages from all repos listed in the first parameter which are not needed to install the list of top-level package versions in the second parameter. The list of repos in the first parameter and the list of repos storing the packages in the second parameter are uncorrelated.