简体   繁体   中英

Lightweight HTTP server for python desktop Application

I am currently working on a desktop application in which a pair of this application will have to communicate with each other using HTTP meaning that both will server as a client/server simultaneously. What python webserver will suffice for such desktop application?

You haven't really given us much information, but depending on your use-case SimpleHTTPServer might suffice. It's in the standard library, which is convenient.

There's also Bottle , Flask , web.py ...

I have a sample HTTP server that you can find it here.

http://snipplr.com/view/57745/python-web-server/

I think you are looking at a bi-directional HTTP communication.

You can get many resources over it. HTML5 websocket, my favourite.

Check this resource or BOSH.

Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM