All docs
PackageManager·
method
PackageManager.dependents_of
list installed packages that depend on a given package
Python
dependents_of(name: str) -> list[str]
Returns list[str] — sorted names of installed packages that depend on name
Parameters#
| name | type | default | description |
|---|---|---|---|
name |
str |
— | the package to find dependents of |
Example#
Python
from lsdtools.advanced import PackageManager
pm = PackageManager()
print(pm.dependents_of("lsd-spatial")) # → ["gis", "bim", "mim"]
Notes#
Scans the installed set for packages whose manifest dependencies name name, returning the reverse
edges sorted by name. Use it before remove to see what would
break. It looks only at installed packages, not external pip distributions.
See also#
API: dependency_report · remove · installed
Guides: Dependencies
By LSD Team · Last updated Jul 17, 2026
Ask on Discord
View as Markdown