splunklib.searchcommands.validators

class splunklib.searchcommands.validators.Fieldname

Validates field name option values.

class splunklib.searchcommands.validators.Validator

Base class for validators that check and format search command options.

You must inherit from this class and override Validator.__call__ and Validator.format. Validator.__call__ should convert the value it receives as argument and then return it or raise a ValueError, if the value will not convert.

Validator.format should return a human readable version of the value it receives as argument the same way str does.

Table Of Contents