pidgy.autocli

Module Contents

pidgy.autocli.autoclick(*object: typing.Union[types.FunctionType, click.Command], group=None, **settings) → click.Command[source]

Automatically generate a click command line application using type inference.

pidgy.autocli.istype(x: typing.Any, y: type) → bool[source]
pidgy.autocli.click_type(object: typing.Union[type, tuple], default=None) → typing.Union[type, click.types.ParamType][source]

Translate python types to click’s subset of types.

pidgy.autocli.command_from_decorators(command, *decorators, **settings)[source]
pidgy.autocli.decorators_from_dicts(annotations, defaults, *decorators)[source]
pidgy.autocli.decorators_from_dict(object)[source]
pidgy.autocli.decorators_from_module(object)[source]
pidgy.autocli.signature_to_decorators(object, *decorators)[source]