simplebench.enums.flag_type module๐Ÿ”—

FlagType enums for SimpleBench.

Types of command-line flags for reporters.

Available FlagTypes are:
  • BOOLEAN: Boolean flag type.

  • TARGET_LIST: List of output targets

  • INVALID: Invalid flag type. This is a testing placeholder and should not be used.

class simplebench.enums.flag_type.FlagType(value)[source]๐Ÿ”—

Bases: str, Enum

Types of command-line flags for reporters.

Available FlagTypes are:
  • BOOLEAN: Boolean flag type.

  • TARGET_LIST: List of output targets

  • INVALID: Invalid flag type. This is a testing placeholder and should not be used.

BOOLEAN = 'boolean'๐Ÿ”—

Boolean flag type.

This flag type represents a simple on/off or true/false option.

Example: โ€“verbose / โ€“no-verbose

INVALID = 'invalid'๐Ÿ”—

Invalid flag type.

This is a testing placeholder and should not be used. It is included to test error handling for unsupported flag types.

TARGET_LIST = 'target_list'๐Ÿ”—

List of output targets

This flag type represents a list of output targets for the reporter.

This allows specifying multiple targets for the reporter to output to.

The targets are specified as a list of strings and validated against the allowed Target enum values. It support passing NO targets as well, in which case the reporter will use the default targets.

Example: โ€“json console filesystem callback