X-Received: by 10.236.24.196 with SMTP id x44mr11463440yhx.15.1405481446630; Tue, 15 Jul 2014 20:30:46 -0700 (PDT) X-Received: by 10.50.55.6 with SMTP id n6mr216109igp.1.1405481446459; Tue, 15 Jul 2014 20:30:46 -0700 (PDT) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!v10no939837qac.1!news-out.google.com!gf2ni861igb.0!nntp.google.com!h18no2371799igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.python Date: Tue, 15 Jul 2014 20:30:45 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=101.110.31.120; posting-account=hN_E7goAAACjQVXgbDQSFXgYbC6dmSWU NNTP-Posting-Host: 101.110.31.120 References: <5a2ece49-1b5a-41a5-99f1-e2c0e1bf96b8@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <0492292c-8cfd-49dc-babc-2f3030fac2e3@googlegroups.com> Subject: Re: Twitter Client on Terminal by Python From: Orakaro Injection-Date: Wed, 16 Jul 2014 03:30:46 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: csiph.com comp.lang.python:74526 On Tuesday, July 15, 2014 3:27:15 PM UTC+9, Omar Abou Mrad wrote: > Dear Orakaro, >=20 >=20 > Cool app you have there. Please consider the following comments as feedba= ck in the most positive sense possible: >=20 >=20 > - I didn't care for the figlet, it's noise beyond anything else, if you d= rop it, you would drop the pyfiglet dependency as well >=20 > - What's with the SQLAlchemy dependency? I checked your table definitions= and if I'm not mistaken all you're using is Theme, Message, Tweet. My firs= t question on that front is why are message and tweet stored locally? Are y= ou doing local caching to speed things up? What about theme? >=20 >=20 >=20 > Good job and take care! >=20 >=20 > Regards, >=20 >=20 > Omar >=20 >=20 >=20 > On Sun, Jul 13, 2014 at 9:00 PM, Orakaro wrote: >=20 > Hello! >=20 >=20 >=20 > I'm @dtvd88 on Twitter and very new here. >=20 > I read from python.org that anything Python-related can be discussed, and= not sure if I can share my OSS package here to get feedback or not ? >=20 >=20 >=20 > I just wrote a Twitter Client on Terminal by Python, it has very beautifu= l display and even can display image on terminal. Check it out and maybe yo= u guys will love it :) >=20 >=20 >=20 > Homepage: http://www.rainbowstream.org/ >=20 > Github: https://github.com/DTVD/rainbowstream >=20 >=20 >=20 > Thanks for any feedback and sorry if this kind of topics is not tolerated= here. >=20 > -- >=20 > https://mail.python.org/mailman/listinfo/python-list Hi Omar. Thanks about the feedback.=20 - The ascii art character... seems interesting to some people and not to ot= hers. Maybe I should add a config option for ignoring it. - I used 2 python process, ones handle the streaming API, ones listens to u= ser's input as well as executes REST API and they need to share some variab= les. After tried ctypes, SyncManage or Queue, I found out that a database s= olution is easier and less buggy. So SQLAlchemy exists. - I only store Tweet and Message ID (not the content) locally and delete = all when program exit. The reason is Twitter API's Tweet/Message ID is too = long for user to type a command like "rep 489242568104095234 also like it!"= . In DB Tweet/Message ID is a small number which map 1-by-1 to the "real" T= weet/Message ID. - 2 process need to know the new theme when user type a command to change= their current theme. So Theme exists in DB. Sorry for the long reply. Hope that there is a smarter solution and thanks = very much again Regards