API Stability#
This page defines the current public contract guarantees in DepDigest.
Public API surface#
The public API is defined by depdigest.__all__.
Current exported symbols:
is_installedcheck_dependencyget_infodep_digestLazyRegistryDepConfigresolve_configregister_package_configunregister_package_configtemporary_package_configclear_package_configs
Compatibility rule:
removing or renaming these symbols is a breaking change.
get_info schema contract#
For format="dict" and format="json", the schema is:
name:
depdigest.get_infoversion:
1.0
Top-level keys:
schemamodule_pathdependency_countinstalled_countmissing_countdependencies
Dependency entry keys:
libraryinstalledstatustypepackage_nameinstall
Compatibility rule:
changing/removing keys or schema version without migration notes is a breaking change.
CLI contract#
depdigest audit behavior expected by integrators:
returns
0when no violations are found;returns
1when violations exist (unless--allow-violations);--jsonoutput is machine-readable and deterministic.
Change management guidance#
Before changing public behavior:
add/update contract tests first;
update this page and
standards/DEPDIGEST_GUIDE.md;call out compatibility impact in PR/release notes.