#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2005
    Posts
    20
    Rep Power
    0

    Best way to write a client server app in Python


    Hi,

    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.
  2. #2
  3. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2005
    Posts
    174
    Rep Power
    11
    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...
    http://pywebsvcs.sourceforge.net/
    http://sandeep.weblogs.us/archives/016611.html

    cheers
    sf2k
  4. #3
  5. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    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 .

    http://www.devshed.com/c/a/Python/Sockets-in-Python/

    Take care,

    Mark.
    programming language development: www.netytan.com Hula

  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2005
    Posts
    20
    Rep Power
    0
    Thanks guys.

IMN logo majestic logo threadwatch logo seochat tools logo