cli_proton_python.options module

Proton reactive API python client options module

class cli_proton_python.options.ConnectorOptions[source]

Bases: cli_proton_python.options.CoreOptions

Proton reactive API python connector specific client options

add_connector_options()[source]

add the connector options

class cli_proton_python.options.CoreOptions[source]

Bases: optparse.OptionParser, object

Proton reactive API python core client options

add_connection_options()[source]

add the connection options

add_control_options()[source]

add the control options

add_logging_options()[source]

add the logging options

class cli_proton_python.options.ReceiverOptions[source]

Bases: cli_proton_python.options.SRCoreOptions

Proton reactive API python receiver specific client options

add_control_options()[source]

add the control options

add the control options

add_reactor_options()[source]

add receiver’s options

add_receiver_options()[source]

add receiver’s options

class cli_proton_python.options.SRCoreOptions[source]

Bases: cli_proton_python.options.CoreOptions

Proton reactive API python sender/receiver client options

add_control_options()[source]

add the control options

add the link options

add_logging_options()[source]

add the logging options

add_transaction_options()[source]

add the transaction options

class cli_proton_python.options.SenderOptions[source]

Bases: cli_proton_python.options.SRCoreOptions

Proton reactive API python sender specific client options

add_message_options()[source]

add the message options

add_reactor_options()[source]

add receiver’s options

cli_proton_python.options.convert_to_unicode(value)[source]

Python 2.x: converts value to unicode

Parameters:value (str) – value to be converted to unicode
Returns:unicode string
Return type:str (unicode)
cli_proton_python.options.str_to_unicode(option, _, value, parser)[source]

Python 2.x: stores cmdline string, converts to unicode for Python 2.x

Parameters:
  • option – option object
  • value (related Option object from cli_proton_python.options) – option value
  • value – option parser
cli_proton_python.options.to_unicode(option, _, value, parser)[source]

stores values of multi-value cmdline string, converts to unicode for Python 2.x

Parameters:
  • option – option object
  • value (related Option object from cli_proton_python.options) – option value
  • value – option parser