alchemiscale.cli — command line interface

alchemiscale.cli.envvar_dictify(ctx, param, value)

Callback to return a dict of param’s envvar to value.

This ensures that the envvar name only has to be entered as a string once within the click system. It requires that the parameter this callback is attached to defines its envvar.

alchemiscale.cli.get_settings_from_options(kwargs, settings_cls)

Create a settings object from a dict.

This first strips all items with value None (which will be defaults) so that they don’t override settings defaults.