carputils
Doxygen code documentation for the python framework controlling openCARP
|
Some argparse extensions implementing custom behaviors for carputils. More...
Classes | |
class | CallbacksMixin |
class | CarputilsArgumentParser |
class | GroupAccessMixin |
Functions | |
def | bool (string) |
Bool checker for use as ArgumentParser type. More... | |
def | time_tuple (string) |
Time tuple converter for use as ArgumentParser type. More... | |
def | range_tuple (string) |
Range tuple converter for use as ArgumentParser type. More... | |
def | bitflags_callback (choices) |
Set up a callback to convert provided options into an integer value. More... | |
Variables | |
tuple | POSTPROCESS_MODES |
Some argparse extensions implementing custom behaviors for carputils.
def carputils.cli.bitflags_callback | ( | choices | ) |
Set up a callback to convert provided options into an integer value.
choices list or dict The strings that may be used as command line arguments - if a dict, the strings must be the keys and the values the corresponding integer values
callable A function which can be passed as the callback argument of CarputilsArgumentParser.add_argument().
def carputils.cli.bool | ( | string | ) |
Bool checker for use as ArgumentParser type.
def carputils.cli.range_tuple | ( | string | ) |
Range tuple converter for use as ArgumentParser type.
def carputils.cli.time_tuple | ( | string | ) |
Time tuple converter for use as ArgumentParser type.