March 16th, 2005, 01:00 PM
Best way to write a client server app in Python
I want to create a simple client server application where the server pushes some data to a single client who uses this data to draw some simple drawings.
There server and client will always be on the same LAN and there will always be only a single server and a single client.
The data I have to send is in plain text.
What is the best way to do this in Python ?
I checked the Library reference on www.python.org and the only thing that I saw that I think I can use is sockets.
Is this easy to work with ? Is this the best way to pass data.
I am looking at the simplest way to devlop in the least time as the speed of transfer is not an important factor and the traffic between the server and client should be very low and fiability and uptime is not an important concern.
March 16th, 2005, 03:02 PM
you will want to take a look at SOAP for python or XML-RPC.
If you don't already know, diveintopython.org rules Visit this site, and immediately download the book for your personal use! Here's the simplest SOAP example from this site with fully anointed explanations on the code: http://diveintopython.org/soap_web_services/first_steps.html
also from google...
March 16th, 2005, 03:40 PM
Sockets are really pretty simple, if you've ever used C/C++ sockets then you'll be right at home. There's an excellent intro to socket programming in Python right here on DevShed .
March 16th, 2005, 04:37 PM