#!/usr/bin/python import gats import socket import time s = socket.create_connection( ('localhost', 5051) ) gats.send( {'type': 'hello'}, s ) print gats.recv( s ) time.sleep( 10 )