roboherd.util
parse_connection_string(connection_string)
Parse a connection string into a dictionary of connection parameters.
>>> parse_connection_string("ws://user:pass@host/ws")
{'host': 'host',
'port': 80,
'username': 'user',
'password': 'pass',
'websocket_path': '/ws'}
>>> parse_connection_string("wss://user:pass@host/ws")
{'host': 'host',
'port': 443,
'username': 'user',
'password': 'pass',
'websocket_path': '/ws'}