_images/logo.svg

Digesting function arguments into clear, reliable contracts.#


Install it#

conda install -c uibcdf argdigest

Use it#

ArgDigest helps you normalize and validate input arguments at your API boundary, without forcing a single internal architecture.

from argdigest import arg_digest

@arg_digest(
    digestion_source="mylib._private.digestion.argument",
    digestion_style="package",
    strictness="warn",
)
def get(molecular_system, selection="all", syntax="MolSysMT"):
    return molecular_system, selection, syntax

What happens here:

  • ArgDigest resolves digesters for each argument and applies them before your logic runs.

  • If an argument cannot be digested, behavior follows your strictness policy.

  • Optional diagnostics can be emitted through SMonitor.