Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.013 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'url:pipermail': 0.05; 'subject:Python': 0.06; 'subject:code': 0.07; 'disclosure:': 0.09; 'frameworks,': 0.09; 'http,': 0.09; 'separating': 0.09; 'python': 0.11; 'gui': 0.12; 'debugging,': 0.16; 'frameworks?': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'hrm.': 0.16; 'newline,': 0.16; 'only?': 0.16; 'python;': 0.16; 'stuff,': 0.16; 'subject: \n ': 0.16; 'subject:Not': 0.16; 'subject:start': 0.16; 'task.': 0.16; 'url:thread': 0.16; 'wrote:': 0.18; 'app': 0.19; 'subject:project': 0.19; 'thu,': 0.19; 'programming': 0.22; 'pages,': 0.22; 'certainly': 0.24; 'convenient': 0.24; 'header:In-Reply-To:1': 0.27; 'message- id:@mail.gmail.com': 0.30; '(which': 0.31; 'usually': 0.31; 'another.': 0.31; 'bunch': 0.31; 'allows': 0.31; 'this.': 0.32; 'another': 0.32; 'url:python': 0.33; 'framework': 0.33; 'style': 0.33; 'subject: (': 0.35; 'something': 0.35; 'received:google.com': 0.35; 'google': 0.35; 'there': 0.35; 'done': 0.36; "i'll": 0.36; 'url:org': 0.36; 'implement': 0.38; 'server': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'rather': 0.38; 'structure': 0.39; 'to:addr:python.org': 0.39; 'system.': 0.39; 'either': 0.39; 'url:mail': 0.40; 'skip:u 10': 0.60; 'consists': 0.60; 'length': 0.61; 'simple': 0.61; 'skip:n 10': 0.64; 'here': 0.66; 'side': 0.67; 'fact,': 0.69; 'online': 0.71; 'jul': 0.74; 'ending': 0.78; 'downloadable': 0.84; 'subject:before': 0.84; 'subject:system': 0.84; 'url:lang': 0.84; '(full': 0.91; 'subject:chat': 0.93; 'clients,': 0.95; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=+gQZGNigZXPFcI6TFHAZ99Q51Ot+2z/7WYaZyTDdHJU=; b=h8MwQ1UsTqI3Z/igjPh694kfL3YPAnBckY8OaYZNhWnfvXNcT8IhzxQjInoWaUucRp fNGW5pWMjAfX4q/s1khegN4/pmF5gQrF38TB1pNlGMMXi0Z2KlHIxeyp7GkF2syJEkio ncEUJGsO3wVAz+Y8RGMrnYxcbPU9QnC1CYUDBUNfJR9iQS8CRaBznwUYFpDukzx92Bxd Zf7doJZcwsfnIPbz/dzGrbMQNDmgrQpaAVTjZr6Xex3HGCl4PaIWh3aV5VXVYWC0iMJm Bylj7+8EqlaoVHadWCshe3jkkLqPzrM80U71lk63f4i8bZhgmSkH0H2bO2FBefzQUGX5 n1yQ== MIME-Version: 1.0 X-Received: by 10.58.223.238 with SMTP id qx14mr3337677vec.98.1374128714418; Wed, 17 Jul 2013 23:25:14 -0700 (PDT) In-Reply-To: <432d1377-8421-479d-a560-962158de2e15@googlegroups.com> References: <1f3e15e8-bbd3-457c-85f4-c5f251b3e744@googlegroups.com> <432d1377-8421-479d-a560-962158de2e15@googlegroups.com> Date: Thu, 18 Jul 2013 16:25:14 +1000 Subject: Re: What does it take to implement a chat system in Python (Not asking for code just advice before I start my little project) From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 34 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1374128723 news.xs4all.nl 15977 [2001:888:2000:d::a6]:53801 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:50834 On Thu, Jul 18, 2013 at 4:11 PM, Aseem Bansal wrote: > @vikash agrawal > > About GUI I discussed it at https://groups.google.com/forum/#!starred/com= p.lang.python/M-Dy2pyWRfM and I am thinking about using PySide 1.2 for clie= nts of chat system. I think I'll need downloadable clients if I want to mak= e something like google talk. Then I'll need to implement server side progr= amming also. I think google app engine would be suitable for this as it is = going to be always online. Hrm. Rather than pointing people to Google Groups, which a number here (and not unreasonably) detest, you may want to link to the python-list archive: http://mail.python.org/pipermail/python-list/2013-July/thread.html#651359 > About using web frameworks, in the above scenario when there isn't an onl= ine website for chat would I need web frameworks? I am confused about this.= Can server side programming be done in Python or by using a web framework = only? You can certainly do your server-side programming directly in Python; in fact, I recommend it for this task. There's no reason to use HTTP, much less a web framework (which usually consists of a structured way to build HTML pages, plus a bunch of routing and stuff, none of which you need). All you need is a simple structure for separating one message from another. I would recommend either going MUD/TELNET style and ending each message with a newline, or prefixing each message with its length in octets. Both ways work very nicely; newline-termination allows you to use a MUD client for debugging, which I find very convenient (full disclosure: I am the author of multiple MUD clients, including one that's zero-dollar and another that's free). ChrisA