discovery.register('123', 'key3', ConnectionParams.from_tuples( 
    'host', 'localhost', 
    'port', '8000' 
)) # Returns {'host': 'localhost', 'port': '8000'}