## congressclient.common.parseractions module

this page last updated: 2019-07-11 05:40:32

# congressclient.common.parseractions module

argparse Custom Actions

class `congressclient.common.parseractions.``KeyValueAction`(option_strings, dest, nargs=None, const=None, default=None, type=None, choices=None, required=False, help=None, metavar=None)

  Bases: `argparse.Action`

  A custom action to parse arguments as key=value pairs

  Ensures that `dest` is a dict

class `congressclient.common.parseractions.``RangeAction`(option_strings, dest, nargs=None, const=None, default=None, type=None, choices=None, required=False, help=None, metavar=None)

  Bases: `argparse.Action`

  A custom action to parse a single value or a range of values

  Parses single integer values or a range of integer values delimited by a colon and returns a tuple of integers: ‘4’ sets `dest` to (4, 4) ‘6:9’ sets `dest` to (6, 9)

this page last updated: 2019-07-11 05:40:32

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.

found an error? report a bug questions?