This is a tool package for processing tcp api as http. You should create a interface which seems like a url, and alse create a handler to process the request and to send the response. All the communication is async.
Install pseudo-http
git clone https://github.com/xsank/pseudo-http.git
python setup.py install
I also use the pseudo-http write an example, all the source code is in example directory.