_images/logo.svg

Digesting dependencies into clear, actionable insight.#


Install it#

conda install -c uibcdf depdigest

Use it#

DepDigest lets you keep imports fast and dependency errors clear. You declare what is optional, guard execution at runtime, and load heavy modules only when they are really needed.

from depdigest import dep_digest

@dep_digest("openmm")
def run_simulation(system):
    import openmm  # lazy import: only executed when function is called
    ...

What happens here:

  • If openmm is installed, your function runs normally.

  • If it is missing, DepDigest raises a readable error with installation hints.

  • A structured SMonitor event is emitted for diagnostics.