Console script for certify_number

def cli_certify_core_number(
    config, min_value, max_value, value,
):
    """Console script for certify_number"""
    verbose = config['verbose']
    if verbose:
        click.echo(Back.GREEN + Fore.BLACK + "ACTION: certify-int")

    def parser(v):
        # Attempt a json/pickle decode:
        try:
            v = load_json_pickle(v, config)
        except Exception:
            pass

        # Attempt a straight conversion to float or integer:
        try:
            if v.find('.') != -1:
                # Assume is float:
                v = float(v)
            else:
                # Assume is int:
                v = int(v)
            return v
        except Exception as err:
            six.raise_from(
                CertifierTypeError(
                    message='Not integer or float: {v}'.format(
                        v=v,
                    ),
                    value=v,
                ),
                err,
            )

    execute_cli_command(
        'number',
        config,
        parser,
        certify_number,
        value[0] if value else None,
        min_value=min_value,
        max_value=max_value,
        required=config['required'],
    )