code: def valid_api_key(ctx, param, value):
      
      if value is not None and len(value) != 32:
          raise click.BadParameter(
              "API Key must be 32 characters long, not {}".format(str(len(value)))
          )
      else:
          return value
docs: Ensures an API has valid length (this is a click callback)