From workforsiva at gmail.com Wed Feb 1 07:58:53 2012 From: workforsiva at gmail.com (Siva Ranganath) Date: Wed, 1 Feb 2012 12:28:53 +0530 Subject: [BangPypers] Python Begginers Message-ID: Hello , I am Siva Ranganath from Hyderabad, I am looking for help from this Community. As iam new to the Python Language (learnig volunterly).Please let me know am i get the support from this community.Please find my past Exprience. 4 years of Exprience in Application development and testing . work Exprience on C and C++ on linux. Knowledge on Socket Programming and multithreding. i am looking to add Python in skill set, So how will it help for further careir . I am lloking forward from you. Thanks & Regards Siva Ranganath 9000163232. From lorddaemon at gmail.com Wed Feb 1 10:47:58 2012 From: lorddaemon at gmail.com (Sidu Ponnappa) Date: Wed, 1 Feb 2012 15:17:58 +0530 Subject: [BangPypers] Python Begginers In-Reply-To: References: Message-ID: Hi Siva, http://learnpythonthehardway.org/ is an excellent place to start. Best, Sidu. http://c42.in http://rubymonk.com On Wed, Feb 1, 2012 at 12:28 PM, Siva Ranganath wrote: > Hello , > > > I am Siva Ranganath from Hyderabad, I am looking for help from this Community. > > As iam new to the Python Language (learnig volunterly).Please let me > know am i get ?the support from this community.Please find my past > Exprience. > > 4 years of Exprience in Application development and testing . > work Exprience on C and C++ on linux. > Knowledge on Socket Programming and multithreding. > > i am looking to add Python in skill set, So how will it help for > further careir . > I am lloking forward from you. > > > Thanks & Regards > Siva Ranganath > 9000163232. > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers From workforsiva at gmail.com Wed Feb 1 12:19:38 2012 From: workforsiva at gmail.com (Siva Ranganath) Date: Wed, 1 Feb 2012 16:49:38 +0530 Subject: [BangPypers] Python Begginers In-Reply-To: References: Message-ID: Thanks Sidhu , i iwll go with that. On 2/1/12, Sidu Ponnappa wrote: > Hi Siva, > > http://learnpythonthehardway.org/ is an excellent place to start. > > Best, > Sidu. > http://c42.in > http://rubymonk.com > > On Wed, Feb 1, 2012 at 12:28 PM, Siva Ranganath > wrote: >> Hello , >> >> >> I am Siva Ranganath from Hyderabad, I am looking for help from this >> Community. >> >> As iam new to the Python Language (learnig volunterly).Please let me >> know am i get the support from this community.Please find my past >> Exprience. >> >> 4 years of Exprience in Application development and testing . >> work Exprience on C and C++ on linux. >> Knowledge on Socket Programming and multithreding. >> >> i am looking to add Python in skill set, So how will it help for >> further careir . >> I am lloking forward from you. >> >> >> Thanks & Regards >> Siva Ranganath >> 9000163232. >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From baiju.m.mail at gmail.com Wed Feb 1 13:43:12 2012 From: baiju.m.mail at gmail.com (Baiju M) Date: Wed, 1 Feb 2012 18:13:12 +0530 Subject: [BangPypers] [JOB] Python programmers required Message-ID: Hi All, I am working in ZeOmega Infotech Pvt. Ltd., Bangalore. We are looking for 8+ years experienced Python programmers, the details are given below. If you are interested, please contact: bdeepa AT zeomega.com or mbaiju AT zeomega.com . Experience ========== 8+ yrs Designation =========== Python Developer Skill set ========= 1. Strong background in Python 2. Design new software system 3. Excellent debugging skills 4. Experience in building web applications 5. Proven ability to design and deliver custom solutions 6. Strong communication/collaboration/problem solving/documentation skills Roles and responsibility ======================== * Work in a team, building scalable health-care web applications * Analysis of problem domains and customer requirements * Deliver robust software components and solutions * Work with product group throughout development cycle to ensure quality of end product * Review code, track and fix bugs, respond rapidly to emergencies in production environment * Help writing project documentation, transition materials and training Regards, Baiju M From sajuptpm at gmail.com Wed Feb 1 20:31:00 2012 From: sajuptpm at gmail.com (Saju M) Date: Thu, 2 Feb 2012 01:01:00 +0530 Subject: [BangPypers] turbogears to pyramid or django Message-ID: HI, I have a project developed in turbogears, i want to move it to Pyramid or Django, which is the best option ??? I am using following feature of TG2 controller sqlalchemy tg2env developement.ini Not using any template system, since UI developed using EXTJS Reason to this change is, Pylons stopped further support for TG2. From senthil at uthcode.com Wed Feb 1 23:50:24 2012 From: senthil at uthcode.com (Senthil Kumaran) Date: Thu, 2 Feb 2012 06:50:24 +0800 Subject: [BangPypers] turbogears to pyramid or django In-Reply-To: References: Message-ID: <20120201225024.GA20294@mathmagic> Moving to Pyramid might be easier, because Pyramid is nothing but Pylons + TG + repoze.bfg etc. Pyramid is a unification and based upon some of the ealier framework. You could use sqlalchemy, controller and developmemnt.ini of your existing project out of box for Pyramid (but not for django). I am not sure what is tg2env. On Thu, Feb 02, 2012 at 01:01:00AM +0530, Saju M wrote: > HI, > > I have a project developed in turbogears, i want to move it to Pyramid or > Django, which is the best option ??? > I am using following feature of TG2 > controller > sqlalchemy > tg2env > developement.ini > Not using any template system, since UI developed using EXTJS > > Reason to this change is, Pylons stopped further support for TG2. > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers From prataprc at gmail.com Thu Feb 2 02:12:07 2012 From: prataprc at gmail.com (Pratap Chakravarthy) Date: Thu, 2 Feb 2012 06:42:07 +0530 Subject: [BangPypers] turbogears to pyramid or django In-Reply-To: <20120201225024.GA20294@mathmagic> References: <20120201225024.GA20294@mathmagic> Message-ID: > On Thu, Feb 02, 2012 at 01:01:00AM +0530, Saju M wrote: >> HI, >> >> I have a project developed in turbogears, i want to move it to Pyramid or >> Django, ?which is the best option ??? The web back-end of pyramid is bfg.repoze. The design of pyramid is lot cleaner and there is a ton of documentation for that. Another thing about Pyramid is that, they are not too serious about WSGI middlewares and their design of authentication and session management are implemented as Interface call-backs. The core of pyramid is based out of zope.component and zope.interface which again is fairly mature. If you want a flexible framework you might want Pyramids. But Django seems to have more users. Cheers, From alind_sap at yahoo.com Fri Feb 3 09:55:28 2012 From: alind_sap at yahoo.com (alind sharma) Date: Fri, 3 Feb 2012 14:25:28 +0530 (IST) Subject: [BangPypers] turbogears to pyramid or django In-Reply-To: References: <20120201225024.GA20294@mathmagic> Message-ID: <1328259328.55297.YahooMailNeo@web94911.mail.in2.yahoo.com> ? Alind Sharma ________________________________ From: Pratap Chakravarthy To: Bangalore Python Users Group - India Sent: Thursday, 2 February 2012 6:42 AM Subject: Re: [BangPypers] turbogears to pyramid or django As per the following, the turbogears team is itself moving to pyramid. They are keeping in mind that there will be minimal changes to the code of people using turbogears(with pylons) when they move to pyramid. You can check the following link. http://compoundthinking.com/blog/index.php/2010/12/28/turbogears-joins-the-pylons-project/ https://en.wikipedia.org/wiki/TurboGears#Future_of_TurboGears PS: I am not a developer of turbogears. I have just started using it and found it nice. Besides your question seems to be a crosspost from turbogears group. > On Thu, Feb 02, 2012 at 01:01:00AM +0530, Saju M wrote: >> HI, >> >> I have a project developed in turbogears, i want to move it to Pyramid or >> Django, ?which is the best option ??? The web back-end of pyramid is bfg.repoze. The design of pyramid is lot cleaner and there is a ton of documentation for that. Another thing about Pyramid is that, they are not too serious about WSGI middlewares and their design of authentication and session management are implemented as Interface call-backs. The core of pyramid is based out of zope.component and zope.interface which again is fairly mature. If you want a flexible framework you might want Pyramids. But Django seems to have more users. Cheers, _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers From vikasruhil06 at gmail.com Sat Feb 4 13:03:11 2012 From: vikasruhil06 at gmail.com (Vikas Ruhil) Date: Sat, 4 Feb 2012 17:33:11 +0530 Subject: [BangPypers] VIM as Modern Python/Dajngo IDE Message-ID: I write a Blog about VIM as a Python/Dajngo Modern IDE .There are about 15 Plugin and config of there is on post . I am looking for plugin suggestion for more . Also for newbie and Non-vim user's there is request to checkout the post.Those Guys who ask what IDE should they need use or Which is Best IDE for Python/Django. http://learnhackstuff.blogspot.in/2012/02/vim-as-universal-idepart-1.html Regards Vikash Ruhil From lawgon at gmail.com Sat Feb 4 13:35:34 2012 From: lawgon at gmail.com (Kenneth Gonsalves) Date: Sat, 04 Feb 2012 18:05:34 +0530 Subject: [BangPypers] VIM as Modern Python/Dajngo IDE In-Reply-To: References: Message-ID: <1328358934.1760.10.camel@xlquest.web> On Sat, 2012-02-04 at 17:33 +0530, Vikas Ruhil wrote: > Also for newbie and Non-vim user's there is request to checkout the > post.Those Guys who ask what IDE should they need use or Which is Best > IDE > for Python/Django. > > http://learnhackstuff.blogspot.in/2012/02/vim-as-universal-idepart-1.html not loading for me -- regards Kenneth Gonsalves From vikasruhil06 at gmail.com Sat Feb 4 13:53:04 2012 From: vikasruhil06 at gmail.com (Vikas Ruhil) Date: Sat, 4 Feb 2012 18:23:04 +0530 Subject: [BangPypers] VIM as Modern Python/Dajngo IDE In-Reply-To: <1328358934.1760.10.camel@xlquest.web> References: <1328358934.1760.10.camel@xlquest.web> Message-ID: On Sat, Feb 4, 2012 at 6:05 PM, Kenneth Gonsalves wrote: > On Sat, 2012-02-04 at 17:33 +0530, Vikas Ruhil wrote: > > Also for newbie and Non-vim user's there is request to checkout the > > post.Those Guys who ask what IDE should they need use or Which is Best > > IDE > > for Python/Django. > > > > > http://learnhackstuff.blogspot.in/2012/02/vim-as-universal-idepart-1.html > > not loading for me > -- > regards > Kenneth Gonsalves > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > main link is here this my newest blog ,access you will be there only http://learnhackstuff.blogspot.in Regards Vikash ruhil From quantrum75 at yahoo.com Wed Feb 8 10:35:18 2012 From: quantrum75 at yahoo.com (quantrum75) Date: Wed, 8 Feb 2012 01:35:18 -0800 (PST) Subject: [BangPypers] Python private coach? Message-ID: <1328693718.72687.YahooMailNeo@web113216.mail.gq1.yahoo.com> Hi Bangpypers, I just joined this group as I am highly enthusiastic about Python. However, the reason for this mail is to see if there are anyone in this group with an aptitude for teaching python on a one-to-one basis? I would like to obtain python coaching online for a fee. This would be the ideal situation for a smart college educated pythonista to get some extra money. I am quite comfortable with the syntax of python. In fact I have written fairly long scripts previously. What I am looking for is a complete perspective with regards to writing software professionally. I am completely self-taught so I am very rough with regards to writing elegant python software. The interested person would act as a "coach" to help me to progress to writing professional, COMPLETE software. I expect this to be one hour every week online. I pick up stuff fairly easily, so the main role of the person would be act as a guide more than anything else. I know I could join a open source project etc, but what I am looking for is rigor in the learning process. I also expect the person to be professional about the teaching part. Thank you very much for your time and I shall look forward to receiving your replies (please reply to my email and not the group) Regards Rama PS - Anyone who is interested, I would like to go in depth your previous background with python before I commit if it is ok. I am quite easy to get along with, so once we are ok with each other, you should find the teaching process quite interesting. From lawgon at gmail.com Wed Feb 8 10:47:06 2012 From: lawgon at gmail.com (Kenneth Gonsalves) Date: Wed, 08 Feb 2012 15:17:06 +0530 Subject: [BangPypers] Python private coach? In-Reply-To: <1328693718.72687.YahooMailNeo@web113216.mail.gq1.yahoo.com> References: <1328693718.72687.YahooMailNeo@web113216.mail.gq1.yahoo.com> Message-ID: <1328694426.1776.10.camel@xlquest.web> I do private one-to-one coaching in python and django. I am based in Ooty and find for Indians, remote usually does not work. I normally insist on personal presence (at least at the beginning). However I am willing to give remote a try. I charge 25K. My code is here: http://bitbucket.org/lawgon/ On Wed, 2012-02-08 at 01:35 -0800, quantrum75 wrote: > Hi Bangpypers, > I just joined this group as I am highly enthusiastic about Python. However, the reason for this mail is to see if there are anyone in this group with an aptitude for teaching python on a one-to-one basis? I would like to obtain python coaching online for a fee. This would be the ideal situation for a smart college educated pythonista to get some extra money. I am quite comfortable with the syntax of python. In fact I have written fairly long scripts previously. What I am looking for is a complete perspective with regards to writing software professionally. I am completely self-taught so I am very rough with regards to writing elegant python software. The interested person would act as a "coach" to help me to progress to writing professional, COMPLETE software. I expect this to be one hour every week online. I pick up stuff fairly easily, so the main role of the person would be act as a guide more than anything else. I know I could join a open source > project etc, but what I am looking for is rigor in the learning process. I also expect the person to be professional about the teaching part. > Thank you very much for your time and I shall look forward to receiving your replies (please reply to my email and not the group) > > Regards > Rama > > PS - Anyone who is interested, I would like to go in depth your previous background with python before I commit if it is ok. I am quite easy to get along with, so once we are ok with each other, you should find the teaching process quite interesting. > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers -- regards Kenneth Gonsalves From senthil at uthcode.com Wed Feb 8 15:20:24 2012 From: senthil at uthcode.com (Senthil Kumaran) Date: Wed, 8 Feb 2012 22:20:24 +0800 Subject: [BangPypers] Python private coach? In-Reply-To: <1328694426.1776.10.camel@xlquest.web> References: <1328693718.72687.YahooMailNeo@web113216.mail.gq1.yahoo.com> <1328694426.1776.10.camel@xlquest.web> Message-ID: <20120208142024.GB1896@mathmagic> Hi Kenneth, On Wed, Feb 08, 2012 at 03:17:06PM +0530, Kenneth Gonsalves wrote: > I do private one-to-one coaching in python and django. I am based in Was the group response intentional? If so, appreciate that!. :-) Thanks, Senthil From noufal at nibrahim.net.in Wed Feb 8 16:29:34 2012 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Wed, 08 Feb 2012 20:59:34 +0530 Subject: [BangPypers] Python private coach? In-Reply-To: <1328693718.72687.YahooMailNeo@web113216.mail.gq1.yahoo.com> (quantrum's message of "Wed, 8 Feb 2012 01:35:18 -0800 (PST)") References: <1328693718.72687.YahooMailNeo@web113216.mail.gq1.yahoo.com> Message-ID: <878vkdxs0x.fsf@sanitarium.localdomain> quantrum75 writes: [...] > The interested person would act as a "coach" to help me to progress to > writing professional, COMPLETE software. [...] I think you'll benefit more from an internship at a company rather than a trainer to do this. "Professional" software is written mostly in "professional" environments rather than in a training course. The latter is more useful to learn a specific narrow skill/application or for a broad "first timer" introduction to a technology. This is based on my experience as a part time trainer. -- ~noufal http://nibrahim.net.in Some bird populations soaring down -Headline of an article in Science News, page 126, February 20, 1993. From kracethekingmaker at gmail.com Wed Feb 8 17:19:15 2012 From: kracethekingmaker at gmail.com (kracekumar ramaraju) Date: Wed, 8 Feb 2012 21:49:15 +0530 Subject: [BangPypers] Python private coach? In-Reply-To: <878vkdxs0x.fsf@sanitarium.localdomain> References: <1328693718.72687.YahooMailNeo@web113216.mail.gq1.yahoo.com> <878vkdxs0x.fsf@sanitarium.localdomain> Message-ID: Hi > The interested person would act as a "coach" to help me to progress to > > writing professional, COMPLETE software. > [...] > > I think you'll benefit more from an internship at a company rather than > a trainer to do this. > > "Professional" software is written mostly in "professional" > environments rather than in a training course. The latter is more useful > to learn a specific narrow skill/application or for a broad "first > timer" introduction to a technology. > > Excluding Linux, Python :) > This is based on my experience as a part time trainer. > > -- * Thanks & Regards "Talk is cheap, show me the code" -- Linus Torvalds kracekumar www.kracekumar.com * From noufal at nibrahim.net.in Wed Feb 8 17:28:39 2012 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Wed, 08 Feb 2012 21:58:39 +0530 Subject: [BangPypers] Python private coach? In-Reply-To: (kracekumar ramaraju's message of "Wed, 8 Feb 2012 21:49:15 +0530") References: <1328693718.72687.YahooMailNeo@web113216.mail.gq1.yahoo.com> <878vkdxs0x.fsf@sanitarium.localdomain> Message-ID: <87zkctwaq0.fsf@sanitarium.localdomain> kracekumar ramaraju writes: > Hi > >> The interested person would act as a "coach" to help me to progress to >> > writing professional, COMPLETE software. >> [...] >> >> I think you'll benefit more from an internship at a company rather than >> a trainer to do this. >> >> "Professional" software is written mostly in "professional" >> environments rather than in a training course. The latter is more useful >> to learn a specific narrow skill/application or for a broad "first >> timer" introduction to a technology. >> >> > Excluding Linux, Python :) He explicitly mentioned he didn't want to just work on something open source. [...] -- ~noufal http://nibrahim.net.in Smoking is the leading cause of statistics. From lawgon at gmail.com Thu Feb 9 06:48:27 2012 From: lawgon at gmail.com (Kenneth Gonsalves) Date: Thu, 09 Feb 2012 11:18:27 +0530 Subject: [BangPypers] Python private coach? In-Reply-To: <20120208142024.GB1896@mathmagic> References: <1328693718.72687.YahooMailNeo@web113216.mail.gq1.yahoo.com> <1328694426.1776.10.camel@xlquest.web> <20120208142024.GB1896@mathmagic> Message-ID: <1328766507.1772.0.camel@xlquest.web> On Wed, 2012-02-08 at 22:20 +0800, Senthil Kumaran wrote: > On Wed, Feb 08, 2012 at 03:17:06PM +0530, Kenneth Gonsalves wrote: > > I do private one-to-one coaching in python and django. I am based in > > Was the group response intentional? If so, appreciate that!. :-) ouch -- regards Kenneth Gonsalves From sajuptpm at gmail.com Fri Feb 10 07:25:23 2012 From: sajuptpm at gmail.com (Saju M) Date: Fri, 10 Feb 2012 11:55:23 +0530 Subject: [BangPypers] Guide to: Learning Python Decorators Message-ID: New book : Guide to: Learning Python Decorators I am looking for PDF version of this book http://www.amazon.com/gp/product/B006ZHJSIM/ref=as_li_tf_tl?ie=UTF8&tag=8012-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=B006ZHJSIM http://tinyurl.com/python-decorartor From noufal at nibrahim.net.in Fri Feb 10 07:45:44 2012 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Fri, 10 Feb 2012 12:15:44 +0530 Subject: [BangPypers] Guide to: Learning Python Decorators In-Reply-To: (Saju M.'s message of "Fri, 10 Feb 2012 11:55:23 +0530") References: Message-ID: <87bop72nl3.fsf@sanitarium.localdomain> Saju M writes: > New book : Guide to: Learning Python Decorators > > I am looking for PDF version of this book Amazon is only selling a Kindle version as far as I can see and I can't find it on Flipkart. The author has not made a PDF version available. [...] -- ~noufal http://nibrahim.net.in Christ was born in 4 B.C. From sajuptpm at gmail.com Fri Feb 10 13:29:41 2012 From: sajuptpm at gmail.com (Saju M) Date: Fri, 10 Feb 2012 17:59:41 +0530 Subject: [BangPypers] log and figure out what bits are slow and optimize them. Message-ID: Hi, I want to log time taken to complete database requests inside a method/function using decorator . is it possible ???? I think, i have to inject log code inside the method/fuctions or modify it. I wrote a decorator to log taken by a method/function to complete it execution and its working well. My requirement : log everything and figure out what bits are slow and optimize them. What are your suggestions ?? From noufal at nibrahim.net.in Fri Feb 10 13:50:27 2012 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Fri, 10 Feb 2012 18:20:27 +0530 Subject: [BangPypers] log and figure out what bits are slow and optimize them. In-Reply-To: (Saju M.'s message of "Fri, 10 Feb 2012 17:59:41 +0530") References: Message-ID: <877gzu3l9o.fsf@sanitarium.localdomain> Saju M writes: > Hi, > > I want to log time taken to complete database requests inside a > method/function using decorator . is it possible ???? > I think, i have to inject log code inside the method/fuctions or modify it. > I wrote a decorator to log taken by a method/function to complete it > execution and its working well. > > My requirement : log everything and figure out what bits are slow and > optimize them. > > What are your suggestions ?? Use a profiler. http://docs.python.org/library/profile.html [...] -- ~noufal http://nibrahim.net.in We're overpaying him, but he's worth it. -Samuel Goldwyn From sajuptpm at gmail.com Fri Feb 10 14:00:43 2012 From: sajuptpm at gmail.com (Saju M) Date: Fri, 10 Feb 2012 18:30:43 +0530 Subject: [BangPypers] log and figure out what bits are slow and optimize them. In-Reply-To: <877gzu3l9o.fsf@sanitarium.localdomain> References: <877gzu3l9o.fsf@sanitarium.localdomain> Message-ID: Hi, Yes i saw profile module, I think, i have to do function call via cProfile.run('foo()') I know, we can debug this way. But, I need a fixed logging system and want to use it in production. I think, we can't permanently include profile's debugging code in source code, will cause any performance issue ?? On Fri, Feb 10, 2012 at 6:20 PM, Noufal Ibrahim wrote: > Saju M writes: > > > Hi, > > > > I want to log time taken to complete database requests inside a > > method/function using decorator . is it possible ???? > > I think, i have to inject log code inside the method/fuctions or modify > it. > > I wrote a decorator to log taken by a method/function to complete it > > execution and its working well. > > > > My requirement : log everything and figure out what bits are slow and > > optimize them. > > > > What are your suggestions ?? > > Use a profiler. http://docs.python.org/library/profile.html > > [...] > > > -- > ~noufal > http://nibrahim.net.in > > We're overpaying him, but he's worth it. -Samuel Goldwyn > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Regards Saju Madhavan +91 09535134654 Anyone who has never made a mistake has never tried anything new -- Albert Einstein From noufal at nibrahim.net.in Fri Feb 10 14:54:31 2012 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Fri, 10 Feb 2012 19:24:31 +0530 Subject: [BangPypers] log and figure out what bits are slow and optimize them. In-Reply-To: (Saju M.'s message of "Fri, 10 Feb 2012 18:30:43 +0530") References: <877gzu3l9o.fsf@sanitarium.localdomain> Message-ID: <87zkcq23qg.fsf@sanitarium.localdomain> Saju M writes: > Hi, > > Yes i saw profile module, I think, i have to do function call via > cProfile.run('foo()') I know, we can debug this way. You should do this in development to identify pain points. The results might be interesting. > But, I need a fixed logging system and want to use it in production. > I think, we can't permanently include profile's debugging code in > source code, > will cause any performance issue ?? Yes. You can't do that. One option is to use something like graphite to capture statistics that your app emits. It should be able to give you a graph of various parameters at various times. [...] -- ~noufal http://nibrahim.net.in If Roosevelt were alive, he'd turn over in his grave. -Samuel Goldwyn From sajuptpm at gmail.com Sun Feb 12 08:38:19 2012 From: sajuptpm at gmail.com (Saju M) Date: Sun, 12 Feb 2012 13:08:19 +0530 Subject: [BangPypers] log and figure out what bits are slow and optimize them. In-Reply-To: <87zkcq23qg.fsf@sanitarium.localdomain> References: <877gzu3l9o.fsf@sanitarium.localdomain> <87zkcq23qg.fsf@sanitarium.localdomain> Message-ID: Hi, I wrote a decorator using cProfile. Issue is log-file getting messed up with logs of unwanted method calls(library calls). I tried with prof.getstats() and prof.print_stats(), prof.getstats() force to code extra loops to get infos. I am also planning to enable/disable this logging using DEBUG flag. Have any suggestions to improve this code ??? or any other-way ?? import cProfile def debug_time(method): def timed(*args, **kw): if DEBUG: prof = cProfile.Profile() prof.enable(subcalls=False, builtins=False) result = prof.runcall(method, *args, **kw) #prof.print_stats() msg = "\n\n\n\n#######################################" msg += "\n\nURL : %s" %(tg.request.url) msg += "\nMethod: %r" %(method.__name__) print "--ddd--------", type(prof.getstats()) msg += "\n\nStatus : %s" %(prof.print_stats()) msg += "\n\n#######################################" print msg LOGGER.debug(msg) else: result = method(*args, **kw) return result return timed ref : http://stackoverflow.com/questions/5375624/a-decorator-that-profiles-a-method-call-and-logs-the-profiling-result On Fri, Feb 10, 2012 at 7:24 PM, Noufal Ibrahim wrote: > Saju M writes: > > > Hi, > > > > Yes i saw profile module, I think, i have to do function call via > > cProfile.run('foo()') I know, we can debug this way. > > You should do this in development to identify pain points. The results > might be interesting. > > > > But, I need a fixed logging system and want to use it in production. > > I think, we can't permanently include profile's debugging code in > > source code, > > will cause any performance issue ?? > > Yes. You can't do that. > > One option is to use something like graphite to capture statistics that > your app emits. It should be able to give you a graph of various > parameters at various times. > > > [...] > > > -- > ~noufal > http://nibrahim.net.in > > If Roosevelt were alive, he'd turn over in his grave. -Samuel Goldwyn > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Regards Saju Madhavan +91 09535134654 From anandology at gmail.com Sun Feb 12 15:39:08 2012 From: anandology at gmail.com (Anand Chitipothu) Date: Sun, 12 Feb 2012 20:09:08 +0530 Subject: [BangPypers] log and figure out what bits are slow and optimize them. In-Reply-To: References: <877gzu3l9o.fsf@sanitarium.localdomain> <87zkcq23qg.fsf@sanitarium.localdomain> Message-ID: 2012/2/12 Saju M : > Hi, > I wrote a decorator using cProfile. > Issue is log-file getting messed up with logs of unwanted method > calls(library calls). > I tried with prof.getstats() and prof.print_stats(), prof.getstats() force > to code extra loops to get infos. > I am also planning to enable/disable this logging using DEBUG flag. > > Have any suggestions to improve this code ??? ?or ?any other-way ?? Since you are doing this in a webapp, you should be able to write a WSGI middleware that enables the profiler if profile=true is passed as query parameter. I found this technique very useful to optimize webapps. Here is an example: http://openlibrary.org/books/OL1M/Kabit%C4%81.?_profile=true web.py has a nice profile middleware, it shouldn't be too hard to reuse it. https://github.com/webpy/webpy/blob/master/web/http.py#L140 https://github.com/webpy/webpy/blob/master/web/utils.py#L1070 Anand From asldevi at gmail.com Mon Feb 13 07:00:21 2012 From: asldevi at gmail.com (Devi) Date: Mon, 13 Feb 2012 11:30:21 +0530 Subject: [BangPypers] log and figure out what bits are slow and optimize them. In-Reply-To: References: Message-ID: On Fri, Feb 10, 2012 at 5:59 PM, Saju M wrote: > Hi, > > I want to log time taken to complete database requests inside a > method/function using decorator . ?is it possible ???? > I think, i have to inject log code inside the method/fuctions or modify it. > I wrote a decorator to log taken by a method/function to complete it > execution and its working well. > > My requirement : log everything and figure out what bits are slow and > optimize them. > > What are your suggestions ?? If your webapp(?) is built using django or flask - django debug toolbar [1] or flask-debug toolbar[2] could be of immense help. They provide a wonderful web interface to show logs, database requests etc.. [1]: https://github.com/django-debug-toolbar/django-debug-toolbar [2]: https://github.com/mvantellingen/flask-debugtoolbar -- ~Devi From sajuptpm at gmail.com Mon Feb 13 07:02:05 2012 From: sajuptpm at gmail.com (Saju M) Date: Mon, 13 Feb 2012 11:32:05 +0530 Subject: [BangPypers] log and figure out what bits are slow and optimize them. In-Reply-To: References: Message-ID: Hi, I am using Turbogears On Mon, Feb 13, 2012 at 11:30 AM, Devi wrote: > On Fri, Feb 10, 2012 at 5:59 PM, Saju M wrote: > > Hi, > > > > I want to log time taken to complete database requests inside a > > method/function using decorator . is it possible ???? > > I think, i have to inject log code inside the method/fuctions or modify > it. > > I wrote a decorator to log taken by a method/function to complete it > > execution and its working well. > > > > My requirement : log everything and figure out what bits are slow and > > optimize them. > > > > What are your suggestions ?? > > If your webapp(?) is built using django or flask - django debug > toolbar [1] or flask-debug toolbar[2] could be of immense help. They > provide a wonderful web interface to show logs, database requests > etc.. > > [1]: https://github.com/django-debug-toolbar/django-debug-toolbar > [2]: https://github.com/mvantellingen/flask-debugtoolbar > > -- > ~Devi > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Regards Saju Madhavan +91 09535134654 From anandology at gmail.com Mon Feb 13 09:48:01 2012 From: anandology at gmail.com (Anand Chitipothu) Date: Mon, 13 Feb 2012 14:18:01 +0530 Subject: [BangPypers] Feb Meeting Message-ID: Hi, In the last bangpypers meeting, we've decided that we'll have regular meetings on third saturday of every month. Lets meet on 18th, the third saturaday of February. In the last meeting, some students from Jain University suggested that we can have the next meeting in their Jayanagar/JP Nagar center. Can someone from Jain univ. please confirm if that venue is still possible? If not, what are the other options? Any speakers? Any suggestions for topics? Date: Saturday, Feb 18 - 3:00 PM Venue: Not yet decided Anand From vsapre80 at gmail.com Mon Feb 13 12:41:57 2012 From: vsapre80 at gmail.com (Vishal) Date: Mon, 13 Feb 2012 17:11:57 +0530 Subject: [BangPypers] log and figure out what bits are slow and optimize them. In-Reply-To: References: <877gzu3l9o.fsf@sanitarium.localdomain> <87zkcq23qg.fsf@sanitarium.localdomain> Message-ID: Hi, Since you want to profile a single method (or a bunch of methods), it makes sense to line_profile them. you can add that capability as well. See:http://packages.python.org/line_profiler/ getit: http://pypi.python.org/pypi/line_profiler Enjoy, Vishal Sapre On Sun, Feb 12, 2012 at 1:08 PM, Saju M wrote: > Hi, > I wrote a decorator using cProfile. > Issue is log-file getting messed up with logs of unwanted method > calls(library calls). > I tried with prof.getstats() and prof.print_stats(), prof.getstats() force > to code extra loops to get infos. > I am also planning to enable/disable this logging using DEBUG flag. > > Have any suggestions to improve this code ??? or any other-way ?? > > > import cProfile > def debug_time(method): > def timed(*args, **kw): > if DEBUG: > prof = cProfile.Profile() > prof.enable(subcalls=False, builtins=False) > result = prof.runcall(method, *args, **kw) > #prof.print_stats() > msg = "\n\n\n\n#######################################" > msg += "\n\nURL : %s" %(tg.request.url) > msg += "\nMethod: %r" %(method.__name__) > print "--ddd--------", type(prof.getstats()) > msg += "\n\nStatus : %s" %(prof.print_stats()) > msg += "\n\n#######################################" > print msg > LOGGER.debug(msg) > else: > result = method(*args, **kw) > return result > return timed > > ref : > > http://stackoverflow.com/questions/5375624/a-decorator-that-profiles-a-method-call-and-logs-the-profiling-result > > > On Fri, Feb 10, 2012 at 7:24 PM, Noufal Ibrahim >wrote: > > > Saju M writes: > > > > > Hi, > > > > > > Yes i saw profile module, I think, i have to do function call via > > > cProfile.run('foo()') I know, we can debug this way. > > > > You should do this in development to identify pain points. The results > > might be interesting. > > > > > > > But, I need a fixed logging system and want to use it in production. > > > I think, we can't permanently include profile's debugging code in > > > source code, > > > will cause any performance issue ?? > > > > Yes. You can't do that. > > > > One option is to use something like graphite to capture statistics that > > your app emits. It should be able to give you a graph of various > > parameters at various times. > > > > > > [...] > > > > > > -- > > ~noufal > > http://nibrahim.net.in > > > > If Roosevelt were alive, he'd turn over in his grave. -Samuel Goldwyn > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > Regards > Saju Madhavan > +91 09535134654 > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Thanks and best regards, Vishal Sapre --- "Life is 10% how you make it, and 90% how you take it" "????? ?????, ????? ????? (Benefit for most people, Happiness for most people.)" --- Please DONT print this email, unless you really need to. Save Energy & Paper. Save the Earth. From vsapre80 at gmail.com Mon Feb 13 12:37:46 2012 From: vsapre80 at gmail.com (Vishal) Date: Mon, 13 Feb 2012 17:07:46 +0530 Subject: [BangPypers] [OT] Any Pythonistas in Central India (MP, CH) Message-ID: Dear All, I have moved to, Bhopal (MP), and wanted to get a check on people who might be staying here and listening on this list. Thanks and best regards, Vishal Sapre --- "Life is 10% how you make it, and 90% how you take it" "????? ?????, ????? ????? (Benefit for most people, Happiness for most people.)" --- Please DONT print this email, unless you really need to. Save Energy & Paper. Save the Earth. From steve at lonetwin.net Tue Feb 14 10:00:16 2012 From: steve at lonetwin.net (steve) Date: Tue, 14 Feb 2012 14:30:16 +0530 Subject: [BangPypers] log and figure out what bits are slow and optimize them. In-Reply-To: References: <877gzu3l9o.fsf@sanitarium.localdomain> <87zkcq23qg.fsf@sanitarium.localdomain> Message-ID: <4F3A22A0.7040409@lonetwin.net> Hi, If it's a production website you might want to look at NewRelic. We started using it a while back and it has been mighty helpful: http://newrelic.com http://newrelic.com/docs/python/new-relic-for-python cheers, - steve On 02/12/2012 08:09 PM, Anand Chitipothu wrote: > 2012/2/12 Saju M : >> Hi, >> I wrote a decorator using cProfile. >> Issue is log-file getting messed up with logs of unwanted method >> calls(library calls). >> I tried with prof.getstats() and prof.print_stats(), prof.getstats() force >> to code extra loops to get infos. >> I am also planning to enable/disable this logging using DEBUG flag. >> >> Have any suggestions to improve this code ??? or any other-way ?? > > Since you are doing this in a webapp, you should be able to write a > WSGI middleware that enables the profiler if profile=true is passed as > query parameter. > > I found this technique very useful to optimize webapps. Here is an example: > > http://openlibrary.org/books/OL1M/Kabit%C4%81.?_profile=true > > web.py has a nice profile middleware, it shouldn't be too hard to reuse it. > > https://github.com/webpy/webpy/blob/master/web/http.py#L140 > https://github.com/webpy/webpy/blob/master/web/utils.py#L1070 > > Anand > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers -- random spiel: http://lonetwin.net/ what i'm stumbling into: http://lonetwin.stumbleupon.com/ From asldevi at gmail.com Wed Feb 15 07:29:05 2012 From: asldevi at gmail.com (Devi) Date: Wed, 15 Feb 2012 11:59:05 +0530 Subject: [BangPypers] Feb Meeting In-Reply-To: References: Message-ID: On Mon, Feb 13, 2012 at 2:18 PM, Anand Chitipothu wrote: > Hi, > > In the last bangpypers meeting, we've decided that we'll have regular > meetings on third saturday of every month. > > Lets meet on 18th, the third saturaday of February. > > In the last meeting, some students from Jain University suggested that > we can have the next meeting in their Jayanagar/JP Nagar center. Can > someone from Jain univ. please confirm if that venue is still > possible? If not, what are the other options? > > Any speakers? Any suggestions for topics? > > Date: Saturday, Feb 18 - 3:00 PM > Venue: Not yet decided > I can share my experiences with Heroku [1] and would be happy to hear on it too. [1]: http://www.heroku.com/ ~Devi From anandology at gmail.com Wed Feb 15 08:09:01 2012 From: anandology at gmail.com (Anand Chitipothu) Date: Wed, 15 Feb 2012 12:39:01 +0530 Subject: [BangPypers] Feb Meeting In-Reply-To: References: Message-ID: > In the last meeting, some students from Jain University suggested that > we can have the next meeting in their Jayanagar/JP Nagar center. Can > someone from Jain univ. please confirm if that venue is still > possible? If not, what are the other options? Since I haven't heard from anyone, I'm assuming that Jain Univ. is not possible. Baiju, can we meet at Zeomega? Anand From benignbala at gmail.com Wed Feb 15 08:29:21 2012 From: benignbala at gmail.com (Balachandran Sivakumar) Date: Wed, 15 Feb 2012 12:59:21 +0530 Subject: [BangPypers] Feb Meeting In-Reply-To: References: Message-ID: Hi, On Wed, Feb 15, 2012 at 12:39 PM, Anand Chitipothu wrote: > Since I haven't heard from anyone, I'm assuming that Jain Univ. is not > possible. > > Baiju, can we meet at Zeomega? > If ThoughtWorks is available, it would be easier for people on the eastern parts of the city. Just a bit of laziness to travel :) Thanks -- Thank you Balachandran Sivakumar Arise Awake and stop not till the goal is reached. ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?- Swami Vivekananda Mail: benignbala at gmail.com Blog: http://benignbala.wordpress.com/ From shashidhar85 at gmail.com Wed Feb 15 11:52:14 2012 From: shashidhar85 at gmail.com (Shashidhar Paragonda) Date: Wed, 15 Feb 2012 16:22:14 +0530 Subject: [BangPypers] Zope : uninstallation error in windows Message-ID: Hello Python hackers, >>> I am facing typical uninstaller error on windows machine. >>> I have created our application setup installer through Innosetupcompiler in windows. >>> I have installed Zope, Python, and all the addons for python and zope at source installer folder and used same to create setup installer. >>> I am installed complete application on other machine, everything is fine with installation all the services were started automatically and application starts and works fine. >>> But when I try to uninstall from Add/remove lists it throughs exception: *InternalError: cannot find utCompiledCode record for this uninstaller * >>>* *and I do see there is uninst000.exe file inside application source path. Even if i try uninstalling by clicking same I get same error >>> can anyone have any idea or suggestions for this exception!. >>> thanks in advance for help. -- ----------------------------------- Regards, Shashidhar N.Paragonda shashidhar85 at gmail.com +919449073835 From kunal.t2 at gmail.com Wed Feb 15 15:02:25 2012 From: kunal.t2 at gmail.com (kunal ghosh) Date: Wed, 15 Feb 2012 19:32:25 +0530 Subject: [BangPypers] Feb Meeting In-Reply-To: References: Message-ID: +1 thoughtworks On Wed, Feb 15, 2012 at 12:59 PM, Balachandran Sivakumar wrote: > Hi, > > On Wed, Feb 15, 2012 at 12:39 PM, Anand Chitipothu wrote: >> Since I haven't heard from anyone, I'm assuming that Jain Univ. is not >> possible. >> >> Baiju, can we meet at Zeomega? >> > > ? ? ? ? ? If ThoughtWorks is available, it would be easier for people > on the eastern parts of the city. Just a bit of laziness to travel :) > Thanks > > > -- > Thank you > Balachandran Sivakumar > > Arise Awake and stop not till the goal is reached. > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?- Swami Vivekananda > > Mail: benignbala at gmail.com > Blog: http://benignbala.wordpress.com/ > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers -- regards, Kunal Ghosh From phil.nabble at hanjinet.org Wed Feb 15 14:49:22 2012 From: phil.nabble at hanjinet.org (Phil for Banpypers) Date: Wed, 15 Feb 2012 19:19:22 +0530 Subject: [BangPypers] Feb Meeting In-Reply-To: References: Message-ID: <6d2457c711c91283a3ebacfafe7027d6@mail.hanji.info> Hi, If you want to try a new location, we could also have the meeting in Altran Technologies' office. It is on Lavelle Road so it is very central. Regards, Philippe From srinivasachari2000 at gmail.com Wed Feb 15 16:24:48 2012 From: srinivasachari2000 at gmail.com (Srinivasachari) Date: Wed, 15 Feb 2012 20:54:48 +0530 Subject: [BangPypers] Feb Meeting In-Reply-To: <6d2457c711c91283a3ebacfafe7027d6@mail.hanji.info> References: <6d2457c711c91283a3ebacfafe7027d6@mail.hanji.info> Message-ID: +1 *Regards, Srinivasachari.* 2012/2/15 Phil for Banpypers > Hi, > > If you want to try a new location, we could also have the meeting in > Altran Technologies' office. > It is on Lavelle Road so it is very central. > > Regards, > Philippe > > ______________________________**_________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/**mailman/listinfo/bangpypers > From kunal.t2 at gmail.com Wed Feb 15 16:39:39 2012 From: kunal.t2 at gmail.com (kunal ghosh) Date: Wed, 15 Feb 2012 21:09:39 +0530 Subject: [BangPypers] Feb Meeting In-Reply-To: References: <6d2457c711c91283a3ebacfafe7027d6@mail.hanji.info> Message-ID: Lavelle road also works for me +1 On Wed, Feb 15, 2012 at 8:54 PM, Srinivasachari wrote: > +1 > > *Regards, > Srinivasachari.* > > > 2012/2/15 Phil for Banpypers > >> Hi, >> >> If you want to try a new location, we could also have the meeting in >> Altran Technologies' office. >> It is on Lavelle Road so it is very central. >> >> Regards, >> Philippe >> >> ______________________________**_________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/**mailman/listinfo/bangpypers >> > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers -- regards, Kunal Ghosh From anandology at gmail.com Wed Feb 15 17:29:27 2012 From: anandology at gmail.com (Anand Chitipothu) Date: Wed, 15 Feb 2012 21:59:27 +0530 Subject: [BangPypers] Feb Meeting In-Reply-To: <6d2457c711c91283a3ebacfafe7027d6@mail.hanji.info> References: <6d2457c711c91283a3ebacfafe7027d6@mail.hanji.info> Message-ID: 2012/2/15 Phil for Banpypers : > Hi, > > If you want to try a new location, we could also have the meeting in Altran > Technologies' office. > It is on Lavelle Road so it is very central. > > Regards, > Philippe +1. Lets finalize this venue. Philippe, can you please send directions to reach the venue and a contact number? Anand From anandology at gmail.com Thu Feb 16 13:02:53 2012 From: anandology at gmail.com (Anand Chitipothu) Date: Thu, 16 Feb 2012 17:32:53 +0530 Subject: [BangPypers] Feb Meeting In-Reply-To: References: <6d2457c711c91283a3ebacfafe7027d6@mail.hanji.info> Message-ID: 2012/2/15 Anand Chitipothu : > 2012/2/15 Phil for Banpypers : >> Hi, >> >> If you want to try a new location, we could also have the meeting in Altran >> Technologies' office. >> It is on Lavelle Road so it is very central. >> >> Regards, >> Philippe > > +1. > > Lets finalize this venue. > > Philippe, can you please send directions to reach the venue and a > contact number? Hi Philippe, Please respond to this email. We need to finalize the venue by end of today. Anand From abidali45 at gmail.com Thu Feb 16 17:37:05 2012 From: abidali45 at gmail.com (abid ali) Date: Thu, 16 Feb 2012 22:07:05 +0530 Subject: [BangPypers] Feb Meeting In-Reply-To: References: <6d2457c711c91283a3ebacfafe7027d6@mail.hanji.info> Message-ID: > > Hello all, > I am new here. I want to attend next discussion. please send me the venue. From abidali45 at gmail.com Thu Feb 16 17:37:58 2012 From: abidali45 at gmail.com (abid ali) Date: Thu, 16 Feb 2012 22:07:58 +0530 Subject: [BangPypers] Feb Meeting In-Reply-To: References: <6d2457c711c91283a3ebacfafe7027d6@mail.hanji.info> Message-ID: On Thu, Feb 16, 2012 at 10:07 PM, abid ali wrote: > Hello all, >> > I am new here. I want to attend next discussion. please send me > the venue. > From phil.nabble at hanjinet.org Thu Feb 16 17:51:27 2012 From: phil.nabble at hanjinet.org (Phil for Banpypers) Date: Thu, 16 Feb 2012 22:21:27 +0530 Subject: [BangPypers] BangPypers Digest, Vol 54, Issue 13 In-Reply-To: References: Message-ID: <78efe614f33ee073e1770ed16cb91551@mail.hanji.info> Here we go: Altran Technologies India 1st floor east wing Prestige Sterling Square Madras Bank Road, off. Lavelle Road http://g.co/maps/4fn4q Contact: +91 97 31425162 What time? Philippe > 2012/2/15 Phil for Banpypers : >> Hi, >> >> If you want to try a new location, we could also have the meeting in >> Altran >> Technologies' office. >> It is on Lavelle Road so it is very central. >> >> Regards, >> Philippe > > +1. > > Lets finalize this venue. > > Philippe, can you please send directions to reach the venue and a > contact number? > > Anand From nikunjbadjatya at gmail.com Thu Feb 16 20:49:17 2012 From: nikunjbadjatya at gmail.com (Nikunj Badjatya) Date: Fri, 17 Feb 2012 01:19:17 +0530 Subject: [BangPypers] Question on GUI Message-ID: Howdy All, I have never worked on developing GUIs before. Need some suggestions on how to proceed with one. I have a program which takes bunch of inputs from the user. ( 15 ). Currently I use an well structured xml file where user puts his necessary details, then this xml file is passed to the program where it is parsed, validated and then actual things proceed. ( Ex. $ program.py -f input.xml ) I am looking to have basic GUI for taking inputs from the user. Much like form filling where 1. There will be different input boxes for different input field. User can type his choice of inputs in there. 2. All previous inputs should also come in a drop down of respective input field. 3. User should also be able to save all 15 inputs given by him by some 'name' so that next time by just clicking/selecting that 'name' all 15 field should get populated. 4. The GUI can then take these inputs and start the program.py. 5. I would also want to have a progressbar. Any ideas.? Thanks, Nikunj -- *7*Switch off as you go |*q*Recycle always | P Save Paper - Save Trees | Go Green From anandology at gmail.com Fri Feb 17 03:31:08 2012 From: anandology at gmail.com (Anand Chitipothu) Date: Fri, 17 Feb 2012 08:01:08 +0530 Subject: [BangPypers] Feb Meeting (was Re: BangPypers Digest, Vol 54, Issue 13) Message-ID: 2012/2/16 Phil for Banpypers : > Here we go: > > Altran Technologies India > 1st floor east wing > Prestige Sterling Square > Madras Bank Road, off. Lavelle Road > > http://g.co/maps/4fn4q > > Contact: +91 97 31425162 Thanks. > What time? The meeting starts at 3:00PM. Anand From lawgon at gmail.com Fri Feb 17 03:48:33 2012 From: lawgon at gmail.com (Kenneth Gonsalves) Date: Fri, 17 Feb 2012 08:18:33 +0530 Subject: [BangPypers] Question on GUI In-Reply-To: References: Message-ID: <1329446913.1953.0.camel@xlquest.web> On Fri, 2012-02-17 at 01:19 +0530, Nikunj Badjatya wrote: > I have never worked on developing GUIs before. Need some suggestions > on how > to proceed with one. basic - tkinter, advanced - wxPython, sexy - kivy -- regards Kenneth Gonsalves From smrutilekha at gmail.com Fri Feb 17 04:56:37 2012 From: smrutilekha at gmail.com (Smrutilekha Swain) Date: Fri, 17 Feb 2012 09:26:37 +0530 Subject: [BangPypers] Question on GUI In-Reply-To: <1329446913.1953.0.camel@xlquest.web> References: <1329446913.1953.0.camel@xlquest.web> Message-ID: refer 2 dis book "Rapid GUI Programming with Python and Qt" From guru.eceng at gmail.com Fri Feb 17 05:28:29 2012 From: guru.eceng at gmail.com (Guru) Date: Fri, 17 Feb 2012 09:58:29 +0530 Subject: [BangPypers] Question on GUI In-Reply-To: References: <1329446913.1953.0.camel@xlquest.web> Message-ID: Design outside design using PyQT, you can draw any type of GUI. Convert that UI code in to python code using PyUIC then refer below document and link the widgets with entries. Rapid.GUI.Programming.with.Python.and.Qt.Oct.2007.pdf document is available in the net. On Fri, Feb 17, 2012 at 9:26 AM, Smrutilekha Swain wrote: > refer 2 dis book "Rapid GUI Programming with Python and Qt" > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- -REGARDS Guruprasad K S From anandology at gmail.com Fri Feb 17 05:46:14 2012 From: anandology at gmail.com (Anand Chitipothu) Date: Fri, 17 Feb 2012 10:16:14 +0530 Subject: [BangPypers] Feb Meeting In-Reply-To: References: <6d2457c711c91283a3ebacfafe7027d6@mail.hanji.info> Message-ID: February meeting of BangPypers, the Bangalore Python User Group, is happening this Saturday. Venue: Altran Technologies India Date: Saturday - February 18, 2011 at 03:00 PM Altran Technologies India 1st floor east wing Prestige Sterling Square Madras Bank Road, off. Lavelle Road Map: http://maps.google.com/maps?q=altran+bangalore Contact Person: Philippe / +91 97 31425162 I've written a blog post: http://pybangalore.blogspot.in/2012/02/feb-2012-meetup.html Please spread the word. Anand From confessin at gmail.com Fri Feb 17 11:46:18 2012 From: confessin at gmail.com (Mohammad Rafi) Date: Fri, 17 Feb 2012 10:46:18 +0000 (UTC) Subject: [BangPypers] [OT] Any Pythonistas in Central India (MP, CH) References: Message-ID: Vishal writes: > > Dear All, > > I have moved to, Bhopal (MP), and wanted to get a check on people who might > be staying here and listening on this list. > > Thanks and best regards, > Vishal Sapre > > --- > "Life is 10% how you make it, and 90% how you take it" > "????? ?????, ????? ????? (Benefit for most people, > Happiness for most > people.)" > --- > Please DONT print this email, unless you really need to. > Save Energy & Paper. Save the Earth. > _______________________________________________ > BangPypers mailing list > BangPypers python.org > http://mail.python.org/mailman/listinfo/bangpypers > Hey Vishal, Well my hometown is bhopal. And I am here till Monday. If you want we could meet up this saturday...I would love to hear if there are companies working on python in Bhopal. :) Regards Rafi. From richa.sinha at globallogic.com Fri Feb 17 12:04:12 2012 From: richa.sinha at globallogic.com (Richa Sinha) Date: Fri, 17 Feb 2012 16:34:12 +0530 Subject: [BangPypers] [OT] Any Pythonistas in Central India (MP, CH) In-Reply-To: References: Message-ID: Hi Everyone, I am looking for Python Developers urgently. exp- 1.6- 8 yrs location- Gurgaon company- GlobalLogic india Pvt. ltd (visit www.globallogic.com) Please send updated CV/references to richa.sinha at globallogic.com Need your help friends there are multiple position need to be filled urgently.And its a great opportunity to share with friends.please spread the message. Regards, Richa Office: +91-120-406-2378 On Fri, Feb 17, 2012 at 4:16 PM, Mohammad Rafi wrote: > Vishal writes: > > > > > Dear All, > > > > I have moved to, Bhopal (MP), and wanted to get a check on people who > might > > be staying here and listening on this list. > > > > Thanks and best regards, > > Vishal Sapre > > > > --- > > "Life is 10% how you make it, and 90% how you take it" > > "????? ?????, ????? ????? (Benefit for most people, > > Happiness for most > > people.)" > > --- > > Please DONT print this email, unless you really need to. > > Save Energy & Paper. Save the Earth. > > _______________________________________________ > > BangPypers mailing list > > BangPypers python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > Hey Vishal, > > Well my hometown is bhopal. And I am here till Monday. If you want we > could meet > up this saturday...I would love to hear if there are companies working on > python > in Bhopal. :) > > Regards > Rafi. > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Regards, Richa Sinha | Talent Acquisition *Leaders in Software R&D Services* *www.globallogic.com* ARGENTINA |CHINA | INDIA | ISRAEL | UKRAINE | UK | USA Office: +91-120-406-2378 http://www.youtube.com/watch?v=V4pwY800TII From noufal at nibrahim.net.in Fri Feb 17 12:57:50 2012 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Fri, 17 Feb 2012 17:27:50 +0530 Subject: [BangPypers] [OT] Any Pythonistas in Central India (MP, CH) In-Reply-To: (Richa Sinha's message of "Fri, 17 Feb 2012 16:34:12 +0530") References: Message-ID: <87vcn51xkx.fsf@sanitarium.localdomain> Richa Sinha writes: > Hi Everyone, > > I am looking for Python Developers urgently. [...] Please start a different thread if you have a different topic. It's hard to follow conversations otherwise. -- ~noufal http://nibrahim.net.in Assume a virtue, if you have it not. -William Shakespeare From vsapre80 at gmail.com Sat Feb 18 12:03:59 2012 From: vsapre80 at gmail.com (Vishal) Date: Sat, 18 Feb 2012 16:33:59 +0530 Subject: [BangPypers] Zope : uninstallation error in windows In-Reply-To: References: Message-ID: Hi, This "seems" not connected with python...since this error looks like cropping up because InnoSetup could not pickup all the items that would be needed during uninstall. First thing would be to check if the InnoSetup conf script mentions that this setup needs to be uninstalled. If you can distribute your app as executable (the user does not need it to be in script forms), the 'safe and sound' way is to first freeze it using, bb-freeze or cx_freeze or py2exe, then test the frozen app and then create an installer for the executable so created. I found bb-freeze to be good since it could do the same for Linux, Mac and Windows, without any changes to driver script. take care, Vishal On Wed, Feb 15, 2012 at 4:22 PM, Shashidhar Paragonda < shashidhar85 at gmail.com> wrote: > Hello Python hackers, > > >>> I am facing typical uninstaller error on windows machine. > >>> I have created our application setup installer through > Innosetupcompiler in windows. > >>> I have installed Zope, Python, and all the addons for python > and zope at source installer folder and used same to create setup > installer. > >>> I am installed complete application on other machine, > everything is fine with installation all the services were started > automatically and application starts and works fine. > >>> But when I try to uninstall from Add/remove lists it throughs > exception: > *InternalError: cannot find utCompiledCode record for this > uninstaller > * >>>* *and I do see there is uninst000.exe file inside > application source path. Even if i try uninstalling by clicking same I get > same error > >>> can anyone have any idea or suggestions for this exception!. > >>> thanks in advance for help. > > ----------------------------------- > Regards, > Shashidhar N.Paragonda > shashidhar85 at gmail.com > +919449073835 > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Thanks and best regards, Vishal Sapre --- "Life is 10% how you make it, and 90% how you take it" "????? ?????, ????? ????? (Benefit for most people, Happiness for most people.)" --- Please DONT print this email, unless you really need to. Save Energy & Paper. Save the Earth. From abidali45 at gmail.com Sun Feb 19 17:24:38 2012 From: abidali45 at gmail.com (abid ali) Date: Sun, 19 Feb 2012 21:54:38 +0530 Subject: [BangPypers] [OT] Any Pythonistas in Central India (MP, CH) In-Reply-To: <87vcn51xkx.fsf@sanitarium.localdomain> References: <87vcn51xkx.fsf@sanitarium.localdomain> Message-ID: Hi all, I am abid . I am fresher in Python. if you have any requirement in python please send me mail. or give me idea about openings of python From shashidhar85 at gmail.com Mon Feb 20 12:55:31 2012 From: shashidhar85 at gmail.com (Shashidhar Paragonda) Date: Mon, 20 Feb 2012 17:25:31 +0530 Subject: [BangPypers] Zope : uninstallation error in windows In-Reply-To: References: Message-ID: Hello Vishal, >>> Thanks for your advice. >>> I found solution, there was override of uninstaller due to that it was throughing that exception. >>> We have to remove the zope uninstaller file while creating setup installer file. InnoSetup compiler will generate uninstaller during installation. On Sat, Feb 18, 2012 at 4:33 PM, Vishal wrote: > Hi, > > This "seems" not connected with python...since this error looks like > cropping up because InnoSetup could not pickup all the items that would be > needed during uninstall. First thing would be to check if the InnoSetup > conf script mentions that this setup needs to be uninstalled. > > If you can distribute your app as executable (the user does not need it to > be in script forms), the 'safe and sound' way is to first freeze it > using, bb-freeze or cx_freeze or py2exe, then test the frozen app and then > create an installer for the executable so created. I found bb-freeze to be > good since it could do the same for Linux, Mac and Windows, without any > changes to driver script. > > take care, > Vishal > > On Wed, Feb 15, 2012 at 4:22 PM, Shashidhar Paragonda < > shashidhar85 at gmail.com> wrote: > > > Hello Python hackers, > > > > >>> I am facing typical uninstaller error on windows machine. > > >>> I have created our application setup installer through > > Innosetupcompiler in windows. > > >>> I have installed Zope, Python, and all the addons for python > > and zope at source installer folder and used same to create setup > > installer. > > >>> I am installed complete application on other machine, > > everything is fine with installation all the services were started > > automatically and application starts and works fine. > > >>> But when I try to uninstall from Add/remove lists it throughs > > exception: > > *InternalError: cannot find utCompiledCode record for this > > uninstaller > > * >>>* *and I do see there is uninst000.exe file inside > > application source path. Even if i try uninstalling by clicking same I > get > > same error > > >>> can anyone have any idea or suggestions for this exception!. > > >>> thanks in advance for help. > > > > ----------------------------------- > > Regards, > > Shashidhar N.Paragonda > > shashidhar85 at gmail.com > > +919449073835 > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > -- > Thanks and best regards, > Vishal Sapre > > --- > "Life is 10% how you make it, and 90% how you take it" > "????? ?????, ????? ????? (Benefit for most people, Happiness for most > people.)" > --- > Please DONT print this email, unless you really need to. > Save Energy & Paper. Save the Earth. > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- ----------------------------------- Regards, Shashidhar N.Paragonda shashidhar85 at gmail.com +919449073835 From Nikunj.Badjatya at emc.com Tue Feb 21 10:02:44 2012 From: Nikunj.Badjatya at emc.com (Nikunj.Badjatya at emc.com) Date: Tue, 21 Feb 2012 04:02:44 -0500 Subject: [BangPypers] Using subprocess - Extra '0' on the console Message-ID: <599CEBACD49B4144A61212D837EE3C0F16F5985BB0@MX34A.corp.emc.com> Hi, I am using subprocess module to run a powershell script with necessary arguments. I also want to wait for this process to be over. The following statements works fine functionality wise. Program.py:- {{{ Ret = Popen([powershellpath, argslist]) Status = Ret.communicate() }}} Previously I was using threading.Thread() and subprocess.call() togethar to carry out this task. But after using only Popen, I am noticing a extra '0' coming on the console in the new line. Console:- {{{ This is intended msg1 0 This is intended msg2 }}} As you see, 1 new line and 1 extra '0' is coming on the console. I checked thoroughly and I think its coming only after I used Popen(). Any ideas how to avoid this .? Thanks, Nikunj 7 Switch off as you go | qRecycle always | P Save Paper - Save Trees | Go Green From Nikunj.Badjatya at emc.com Tue Feb 21 10:29:34 2012 From: Nikunj.Badjatya at emc.com (Nikunj.Badjatya at emc.com) Date: Tue, 21 Feb 2012 04:29:34 -0500 Subject: [BangPypers] Using subprocess - Extra '0' on the console In-Reply-To: References: <599CEBACD49B4144A61212D837EE3C0F16F5985BB0@MX34A.corp.emc.com> Message-ID: <599CEBACD49B4144A61212D837EE3C0F16F5985BC6@MX34A.corp.emc.com> No I am not printing anything. From: Mandar Vaze / ????? ??? [mailto:mandarvaze at gmail.com] Sent: Tuesday, February 21, 2012 2:55 PM To: Badjatya, Nikunj Subject: Re: [BangPypers] Using subprocess - Extra '0' on the console It is possible that this "zero" is return value i.e. success indicator Are you printing "Status" -Mandar On Tue, Feb 21, 2012 at 2:32 PM, > wrote: Hi, I am using subprocess module to run a powershell script with necessary arguments. I also want to wait for this process to be over. The following statements works fine functionality wise. Program.py:- {{{ Ret = Popen([powershellpath, argslist]) Status = Ret.communicate() }}} Previously I was using threading.Thread() and subprocess.call() togethar to carry out this task. But after using only Popen, I am noticing a extra '0' coming on the console in the new line. Console:- {{{ This is intended msg1 0 This is intended msg2 }}} As you see, 1 new line and 1 extra '0' is coming on the console. I checked thoroughly and I think its coming only after I used Popen(). Any ideas how to avoid this .? Thanks, Nikunj 7 Switch off as you go | qRecycle always | P Save Paper - Save Trees | Go Green _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers From Shilpa_Chowdri at Dell.com Tue Feb 21 11:42:34 2012 From: Shilpa_Chowdri at Dell.com (Shilpa_Chowdri at Dell.com) Date: Tue, 21 Feb 2012 16:12:34 +0530 Subject: [BangPypers] JOB-Opening in Dell R & D Bangalore Message-ID: <78F3780F7EB12B478856946622A8867C0764A0785C@BLRX7MCDC204.AMER.DELL.COM> Hi All, Greetings from the Talent Acquisition team In Dell R&D , Bangalore! Dell R & D Bangalore has an opening for Automation Engineer. Below given is the Job Description for the required opening: - Strong programming skills for Python - Expert in using Python libraries like OS, SYS, XML - Expert in RE (Regular expression) - Automation experience is desirable - Basic understanding of HW/STORAGE, NW and Testing - C programming knowledge is good to have - Minimum Experience required is 6 yrs In case you are interested would request you to forward your resume to: Vinitha_oommen at dell.com Regards Shilpa Chowdri Dell | Talent Acquisition Mobile +91 9900722822 Shilpa_chowdri at dell.com Visit us: http://content.dell.com/in/en/corp/careers.aspx http://www.linkedin.com/company/dell/careers From vsapre80 at gmail.com Wed Feb 22 07:13:02 2012 From: vsapre80 at gmail.com (Vishal) Date: Wed, 22 Feb 2012 11:43:02 +0530 Subject: [BangPypers] Zope : uninstallation error in windows In-Reply-To: References: Message-ID: Great find. This is general enough to be used in other full fledged programs as well. Thanks, Vishal On Mon, Feb 20, 2012 at 5:25 PM, Shashidhar Paragonda < shashidhar85 at gmail.com> wrote: > Hello Vishal, > > >>> Thanks for your advice. > >>> I found solution, there was override of uninstaller due > to that it was throughing that exception. > >>> We have to remove the zope uninstaller file while > creating setup installer file. InnoSetup compiler will generate > uninstaller during installation. > > > On Sat, Feb 18, 2012 at 4:33 PM, Vishal wrote: > > > Hi, > > > > This "seems" not connected with python...since this error looks like > > cropping up because InnoSetup could not pickup all the items that would > be > > needed during uninstall. First thing would be to check if the InnoSetup > > conf script mentions that this setup needs to be uninstalled. > > > > If you can distribute your app as executable (the user does not need it > to > > be in script forms), the 'safe and sound' way is to first freeze it > > using, bb-freeze or cx_freeze or py2exe, then test the frozen app and > then > > create an installer for the executable so created. I found bb-freeze to > be > > good since it could do the same for Linux, Mac and Windows, without any > > changes to driver script. > > > > take care, > > Vishal > > > > On Wed, Feb 15, 2012 at 4:22 PM, Shashidhar Paragonda < > > shashidhar85 at gmail.com> wrote: > > > > > Hello Python hackers, > > > > > > >>> I am facing typical uninstaller error on windows machine. > > > >>> I have created our application setup installer through > > > Innosetupcompiler in windows. > > > >>> I have installed Zope, Python, and all the addons for > python > > > and zope at source installer folder and used same to create setup > > > installer. > > > >>> I am installed complete application on other machine, > > > everything is fine with installation all the services were started > > > automatically and application starts and works fine. > > > >>> But when I try to uninstall from Add/remove lists it > throughs > > > exception: > > > *InternalError: cannot find utCompiledCode record for > this > > > uninstaller > > > * >>>* *and I do see there is uninst000.exe file inside > > > application source path. Even if i try uninstalling by clicking same I > > get > > > same error > > > >>> can anyone have any idea or suggestions for this > exception!. > > > >>> thanks in advance for help. > > > > > > ----------------------------------- > > > Regards, > > > Shashidhar N.Paragonda > > > shashidhar85 at gmail.com > > > +919449073835 > > > _______________________________________________ > > > BangPypers mailing list > > > BangPypers at python.org > > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > -- > > Thanks and best regards, > > Vishal Sapre > > > > --- > > "Life is 10% how you make it, and 90% how you take it" > > "????? ?????, ????? ????? (Benefit for most people, Happiness for most > > people.)" > > --- > > Please DONT print this email, unless you really need to. > > Save Energy & Paper. Save the Earth. > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > ----------------------------------- > Regards, > > Shashidhar N.Paragonda > shashidhar85 at gmail.com > +919449073835 > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From Nikunj.Badjatya at emc.com Wed Feb 22 07:20:44 2012 From: Nikunj.Badjatya at emc.com (Nikunj.Badjatya at emc.com) Date: Wed, 22 Feb 2012 01:20:44 -0500 Subject: [BangPypers] Using subprocess - Extra '0' on the console In-Reply-To: <599CEBACD49B4144A61212D837EE3C0F16F5985BC6@MX34A.corp.emc.com> References: <599CEBACD49B4144A61212D837EE3C0F16F5985BB0@MX34A.corp.emc.com> <599CEBACD49B4144A61212D837EE3C0F16F5985BC6@MX34A.corp.emc.com> Message-ID: <599CEBACD49B4144A61212D837EE3C0F16F5985D9F@MX34A.corp.emc.com> Any ideas anyone ? -----Original Message----- From: bangpypers-bounces+nikunj.badjatya=emc.com at python.org [mailto:bangpypers-bounces+nikunj.badjatya=emc.com at python.org] On Behalf Of Nikunj.Badjatya at emc.com Sent: Tuesday, February 21, 2012 3:00 PM To: mandarvaze at gmail.com; bangpypers at python.org Subject: Re: [BangPypers] Using subprocess - Extra '0' on the console No I am not printing anything. From: Mandar Vaze / ????? ??? [mailto:mandarvaze at gmail.com] Sent: Tuesday, February 21, 2012 2:55 PM To: Badjatya, Nikunj Subject: Re: [BangPypers] Using subprocess - Extra '0' on the console It is possible that this "zero" is return value i.e. success indicator Are you printing "Status" -Mandar On Tue, Feb 21, 2012 at 2:32 PM, > wrote: Hi, I am using subprocess module to run a powershell script with necessary arguments. I also want to wait for this process to be over. The following statements works fine functionality wise. Program.py:- {{{ Ret = Popen([powershellpath, argslist]) Status = Ret.communicate() }}} Previously I was using threading.Thread() and subprocess.call() togethar to carry out this task. But after using only Popen, I am noticing a extra '0' coming on the console in the new line. Console:- {{{ This is intended msg1 0 This is intended msg2 }}} As you see, 1 new line and 1 extra '0' is coming on the console. I checked thoroughly and I think its coming only after I used Popen(). Any ideas how to avoid this .? Thanks, Nikunj 7 Switch off as you go | qRecycle always | P Save Paper - Save Trees | Go Green _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers From guru.eceng at gmail.com Wed Feb 22 07:56:13 2012 From: guru.eceng at gmail.com (Guru) Date: Wed, 22 Feb 2012 12:26:13 +0530 Subject: [BangPypers] RTP Library in python Message-ID: *Hi All,* * I wanted to write one small tool to generate different types of RTP with different parameters, can anybody suggest me from where i have to start, is there any modules available for this. * -- -REGARDS Guruprasad K S From amit.pureenergy at gmail.com Wed Feb 22 11:04:09 2012 From: amit.pureenergy at gmail.com (Amit Sethi) Date: Wed, 22 Feb 2012 15:34:09 +0530 Subject: [BangPypers] Https and http difference in behaviour urllib2 Message-ID: Hi all , Can someone explain to me why things are implemented the following in urllib2. When I pass encoded url using http it again encodes the parameters whereas in case of https it does not urlencode again so lets say the (http) call is http//:example.com?email=amit%40sethi.comthe request is http://example.com?email=amit%2540sethi.com where as in case of https it is https://example.com?email=amit%40sethi.com Thanks Amit -- A-M-I-T S|S From gora at mimirtech.com Wed Feb 22 11:05:04 2012 From: gora at mimirtech.com (Gora Mohanty) Date: Wed, 22 Feb 2012 15:35:04 +0530 Subject: [BangPypers] RTP Library in python In-Reply-To: References: Message-ID: On 22 February 2012 12:26, Guru wrote: > *Hi All,* > * ? ? ? ? I wanted to write one small tool to generate different types of > RTP with different parameters, can anybody suggest me from where i have to > start, is there any modules available for this. > * You might wish to explain what RTP stands for. Regards, Gora From pythonic at gmail.com Wed Feb 22 11:09:06 2012 From: pythonic at gmail.com (Shekhar Tiwatne) Date: Wed, 22 Feb 2012 15:39:06 +0530 Subject: [BangPypers] Https and http difference in behaviour urllib2 In-Reply-To: References: Message-ID: <4F44BEC2.1000407@gmail.com> On Wednesday 22 February 2012 03:34 PM, Amit Sethi wrote: > Hi all , Can someone explain to me why things are implemented the following > in urllib2. Show your code. It's then easier for people who are willing to help. > When I pass encoded url using http it again encodes the parameters > whereas in case of https it does not urlencode again > > so lets say the (http) call is > http//:example.com?email=amit%40sethi.comthe request is > > http://example.com?email=amit%2540sethi.com > > where as in case of https it is > > https://example.com?email=amit%40sethi.com > > > Thanks > Amit > > > From godson.g at gmail.com Wed Feb 22 11:16:50 2012 From: godson.g at gmail.com (Godson Gera) Date: Wed, 22 Feb 2012 15:46:50 +0530 Subject: [BangPypers] RTP Library in python In-Reply-To: References: Message-ID: On Wed, Feb 22, 2012 at 12:26 PM, Guru wrote: > *Hi All,* > * I wanted to write one small tool to generate different types of > RTP with different parameters, can anybody suggest me from where i have to > start, is there any modules available for this. > * > There is some work done by Anthony Baxter long back for building SIP phone called shtoom. That project include python modules that can generate RTP. You can download source code from this page http://sourceforge.net/projects/shtoom/ Also there are python bindings available for JRTP library for generating and parsing RTP http://pyjrtplib.sourceforge.net/ -- Thanks & Regards, Godson Gera IVR India From guru.eceng at gmail.com Wed Feb 22 11:20:33 2012 From: guru.eceng at gmail.com (Guru) Date: Wed, 22 Feb 2012 15:50:33 +0530 Subject: [BangPypers] RTP Library in python In-Reply-To: References: Message-ID: RTP = Real time protocol, i want to generate RTP packets. On Wed, Feb 22, 2012 at 3:35 PM, Gora Mohanty wrote: > On 22 February 2012 12:26, Guru wrote: > > *Hi All,* > > * I wanted to write one small tool to generate different types of > > RTP with different parameters, can anybody suggest me from where i have > to > > start, is there any modules available for this. > > * > > You might wish to explain what RTP stands for. > > Regards, > Gora > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- -REGARDS Guruprasad K S From senthil at uthcode.com Wed Feb 22 11:22:49 2012 From: senthil at uthcode.com (Senthil Kumaran) Date: Wed, 22 Feb 2012 18:22:49 +0800 Subject: [BangPypers] Https and http difference in behaviour urllib2 In-Reply-To: References: Message-ID: On Wed, Feb 22, 2012 at 6:04 PM, Amit Sethi wrote: > When I pass encoded url using http it again encodes the parameters > whereas in case of https it does not urlencode again It should not happen this way. Both should behave the same for the url that you send. From guru.eceng at gmail.com Wed Feb 22 11:36:47 2012 From: guru.eceng at gmail.com (Guru) Date: Wed, 22 Feb 2012 16:06:47 +0530 Subject: [BangPypers] RTP Library in python In-Reply-To: References: Message-ID: Thank you Godson, is there any other simple libraries for this. On Wed, Feb 22, 2012 at 3:50 PM, Guru wrote: > RTP = Real time protocol, i want to generate RTP packets. > > > On Wed, Feb 22, 2012 at 3:35 PM, Gora Mohanty wrote: > >> On 22 February 2012 12:26, Guru wrote: >> > *Hi All,* >> > * I wanted to write one small tool to generate different types >> of >> > RTP with different parameters, can anybody suggest me from where i have >> to >> > start, is there any modules available for this. >> > * >> >> You might wish to explain what RTP stands for. >> >> Regards, >> Gora >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> > > > > -- > -REGARDS > > Guruprasad K S > -- -REGARDS Guruprasad K S From godson.g at gmail.com Wed Feb 22 16:06:01 2012 From: godson.g at gmail.com (Godson Gera) Date: Wed, 22 Feb 2012 20:36:01 +0530 Subject: [BangPypers] RTP Library in python In-Reply-To: References: Message-ID: To my knowledge shtoom implementation of RTP is straightforward and is in plain python. Also, I forgot mention this http://code.google.com/p/p2p-sip/ this is also plain python implementation of SIP and RTP. Are you making any softphone ? -- Thanks & Regards, Godson Gera IVR India On Wed, Feb 22, 2012 at 4:06 PM, Guru wrote: > Thank you Godson, > is there any other simple libraries for this. > > > On Wed, Feb 22, 2012 at 3:50 PM, Guru wrote: > > > RTP = Real time protocol, i want to generate RTP packets. > > > > > > On Wed, Feb 22, 2012 at 3:35 PM, Gora Mohanty > wrote: > > > >> On 22 February 2012 12:26, Guru wrote: > >> > *Hi All,* > >> > * I wanted to write one small tool to generate different types > >> of > >> > RTP with different parameters, can anybody suggest me from where i > have > >> to > >> > start, is there any modules available for this. > >> > * > >> > >> You might wish to explain what RTP stands for. > >> > >> Regards, > >> Gora > >> _______________________________________________ > >> BangPypers mailing list > >> BangPypers at python.org > >> http://mail.python.org/mailman/listinfo/bangpypers > >> > > > > > > > > -- > > -REGARDS > > > > Guruprasad K S > > > > > > -- > -REGARDS > > Guruprasad K S > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From phil.nabble at hanjinet.org Wed Feb 22 19:09:57 2012 From: phil.nabble at hanjinet.org (Philippe May) Date: Wed, 22 Feb 2012 23:39:57 +0530 Subject: [BangPypers] Using subprocess - Extra '0' on the console In-Reply-To: References: Message-ID: I'm not sure what powershell is, but this might help identifying is that zero or whatever comes from the subprocess and handling it as you wish: {{{ Ret = subprocess.Popen([powershellpath, argslist], stdout=subprocess.PIPE, stderr=subprocess.PIPE) Status = Ret.communicate() stdout = Ret.stdout.read() stderr = Ret.stderr.read() print("stdout:\n%s" % stdout) print("std err:\n%s" % stderr) }}} > Any ideas anyone ? > From phil.nabble at hanjinet.org Wed Feb 22 20:27:46 2012 From: phil.nabble at hanjinet.org (Philippe May) Date: Thu, 23 Feb 2012 00:57:46 +0530 Subject: [BangPypers] RTP Library in python In-Reply-To: References: Message-ID: I don't think there's a simple library for RTP. Maybe this can help, but it's not a library and they use raw sockets: http://blog.sipvicious.org/ . Twisted (used by shtoom) is good for protocol hacking, has eventually a SIP module which might help, and streaming facilities. See http://twistedmatrix.com/pipermail/twisted-python/2010-January/021366.html or http://stackoverflow.com/questions/1286875/python-sip-library > From: Guru > is there any other simple libraries for this. From globalteam at rebelmouse.com Wed Feb 22 21:31:21 2012 From: globalteam at rebelmouse.com (Rebelmouse) Date: Wed, 22 Feb 2012 15:31:21 -0500 Subject: [BangPypers] JOB - Senior Web Developer - Talented Team! Message-ID: SENIOR WEB DEVELOPER We're a NYC-based incubator working in the social space and are looking for developers who have experience with Python and jQuery to work as part of a global team. The founders and board were part of the critical team that created the HuffingtonPost, We're focused on building apps and sites that are fun, social, and scale well. The ideal candidate will go through a 1 to 4 week paid trial but end up as a permanent part of the team working with us on a monthly retainer, where you're not counting your hours, you have sick days and vacation days and you still get paid the same every month regardless of the days off. Strong communication skills are required - it's essential with the global team that each developer/designer/team member feels comfortable emailing all their thoughts and isn't shy about communicating. We don't require excellent grammar skills in English - however you communicate, through whichever style works for you is fine. What matters is that we can transcend the physical distance between us to understand each other's ideas and code. Every developer is encouraged to think about the business, the ideas, and contribute to the product as you learn, not just be given specific tasks. We have a very clear direction and feature set in mind, but there is always room for new ideas and discussion, as well as diverse engineering challenges to solve. A couple recent articles on what we're doing: http://www.businessinsider.com/8-cool-new-startups-that-have-launched-this-year-2012-2#paul-berry-left-his-long-time-job-as-cto-of-the-huffington-post-to-create-a-new-stealth-startup-rebel-mouse-3 http://adage.com/article/digital/meet-soho-tech-lab-huffpost-tech-chief-s-startup-incubator/232077/ We're building everything in Python/Django/jQuery and the team is really amazingly talented guys with a really strong sense of team work. We have great direct connections with key people at Google, Facebook, and Twitter and there's a lot of excitement about what we're doing. Your work will be seen by key people in the industry. Please feel free to pass this along to others who you think might be interested or let us know any ideas for where you think its best to reach the best talent in your part of the world. Required skills are: - very good level at python - very good level at javascript/jquery - interest in working on an application using up-to-date technologies and practices (in this case, one-page app with a lot of frontend templating and CSS3, incorporating data from social networks like Facebook, and using NoSQL on backend where appropriate) - strong communication skills and willingness to ask a question - we are looking for someone to treat as a member of the team, not someone to just assign 100% specced-out tasks that always must be implemented an exact way. Questions will occur and it is important that we be in contact via email or chat multiple times a day to discuss how projects are going and resolve any decisions to be made. - it's also expected that you'll offer feedback, ideas, and polite criticism on anything you think might be going wrong with the project. - strong experience in Javascript, CSS, and valid HTML. - know how to write efficient CSS and JS. Familiar with Yahoo's "Best Practices for Speeding Up Your Website" and Google Page Speed, and techniques such as image spriting Ideally also familiar with: - HTML5 - Backbone.js or other client-side frameworks (beyond jQuery) - LESS/SASS - JSLint / JSHint - Working on "fat client" apps Big plus to required skills if you - experienced mysql/mongodb/redis/django - love optimizations - prefer to cover your code with tests - Past work with Twitter API - Past work with Facebook API - Design skills and a sense of what makes a product appealing to users Email any questions, code samples, applications to GlobalTeam at RebelMouse.com From guru.eceng at gmail.com Fri Feb 24 06:07:13 2012 From: guru.eceng at gmail.com (Guru) Date: Fri, 24 Feb 2012 10:37:13 +0530 Subject: [BangPypers] RTP Library in python In-Reply-To: References: Message-ID: Thank you Godson and Philippe, i went through Shtoom its really simple however i have to install it on windows7 machine there i faced some problems now it is working fine, i want to write one tool to generate RTP packets with my own sequence numbers and other parameters, Shtoom supports few audio codec's do we have anything else which has most of the codec support, On Thu, Feb 23, 2012 at 12:57 AM, Philippe May wrote: > I don't think there's a simple library for RTP. > Maybe this can help, but it's not a library and they use raw sockets: > http://blog.sipvicious.org/ . > > Twisted (used by shtoom) is good for protocol hacking, has eventually a > SIP module which might help, and streaming facilities. > See > http://twistedmatrix.com/pipermail/twisted-python/2010-January/021366.htmlor > http://stackoverflow.com/questions/1286875/python-sip-library > > > From: Guru > > > is there any other simple libraries for this. > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- -REGARDS Guruprasad K S From godson.g at gmail.com Fri Feb 24 07:47:52 2012 From: godson.g at gmail.com (Godson Gera) Date: Fri, 24 Feb 2012 12:17:52 +0530 Subject: [BangPypers] RTP Library in python In-Reply-To: References: Message-ID: There are scores of codecs out there (like silk, bv, h264 video etc etc ) and fortunately most of them have python bindings (like speex, ilbc, gsm except G.729). It should be easy to add the extra codec support to shtoom by following the provided interface. -- Thanks & Regards, Godson Gera IVR India On Fri, Feb 24, 2012 at 10:37 AM, Guru wrote: > Thank you Godson and Philippe, i went through Shtoom its really simple > however i have to install it on windows7 machine there i faced some > problems now it is working fine, i want to write one tool to generate RTP > packets with my own sequence numbers and other parameters, Shtoom supports > few audio codec's do we have anything else which has most of > the codec support, > > On Thu, Feb 23, 2012 at 12:57 AM, Philippe May >wrote: > > > I don't think there's a simple library for RTP. > > Maybe this can help, but it's not a library and they use raw sockets: > > http://blog.sipvicious.org/ . > > > > Twisted (used by shtoom) is good for protocol hacking, has eventually a > > SIP module which might help, and streaming facilities. > > See > > > http://twistedmatrix.com/pipermail/twisted-python/2010-January/021366.htmlor > > http://stackoverflow.com/questions/1286875/python-sip-library > > > > > From: Guru > > > > > is there any other simple libraries for this. > > > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > -REGARDS > > Guruprasad K S > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From guru.eceng at gmail.com Fri Feb 24 08:15:17 2012 From: guru.eceng at gmail.com (Guru) Date: Fri, 24 Feb 2012 12:45:17 +0530 Subject: [BangPypers] RTP Library in python In-Reply-To: References: Message-ID: I need support for G711A/U, G723, G722, G729, G726, ILBC and AMR-WB. On Fri, Feb 24, 2012 at 12:17 PM, Godson Gera wrote: > There are scores of codecs out there (like silk, bv, h264 video etc etc ) > and fortunately most of them have python bindings (like speex, ilbc, > gsm except G.729). It should be easy to add the extra codec support to > shtoom by following the provided interface. > > > -- > Thanks & Regards, > Godson Gera > IVR India > > On Fri, Feb 24, 2012 at 10:37 AM, Guru wrote: > > > Thank you Godson and Philippe, i went through Shtoom its really simple > > however i have to install it on windows7 machine there i faced some > > problems now it is working fine, i want to write one tool to generate RTP > > packets with my own sequence numbers and other parameters, Shtoom > supports > > few audio codec's do we have anything else which has most of > > the codec support, > > > > On Thu, Feb 23, 2012 at 12:57 AM, Philippe May > >wrote: > > > > > I don't think there's a simple library for RTP. > > > Maybe this can help, but it's not a library and they use raw sockets: > > > http://blog.sipvicious.org/ . > > > > > > Twisted (used by shtoom) is good for protocol hacking, has eventually a > > > SIP module which might help, and streaming facilities. > > > See > > > > > > http://twistedmatrix.com/pipermail/twisted-python/2010-January/021366.htmlor > > > http://stackoverflow.com/questions/1286875/python-sip-library > > > > > > > From: Guru > > > > > > > is there any other simple libraries for this. > > > > > > _______________________________________________ > > > BangPypers mailing list > > > BangPypers at python.org > > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > > > > -- > > -REGARDS > > > > Guruprasad K S > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- -REGARDS Guruprasad K S From arjun_r at live.com Mon Feb 27 07:50:12 2012 From: arjun_r at live.com (Arjun R) Date: Mon, 27 Feb 2012 12:20:12 +0530 Subject: [BangPypers] March Meetup 2012 Message-ID: Hello Pypers,We have received permission from our college, Amrita School of Engineering Bangalore, to provide us with a venue for the next meeting. However the college requires details regarding the number of attendees, discussion topics, the date and other amenities required. This meeting will be supported by the college's technical group FACE(Forum for Aspiring Computer Engineers) so we can expect some student participation. Already there are a few requests on topics to be discussed:>> Introduction to Python Programming>> Python interface to OpenCV>> Y Combinator in Python College Address: no-36&37 kasavanahalli carmalram po off sarjapura road karnataka 560035Hosa Rd, Bengaluru, Karnataka080 28440092 http://maps.google.co.in/maps?safe=on&um=1&ie=UTF-8&q=amrita+school+of+engineering+bangalore&fb=1&gl=in&hq=amrita+school+of+engineering&hnear=0x3bae1670c9b44e6d:0xf8dfc3e8517e4fe0,Bengaluru,+Karnataka&cid=0,0,15471443159193988574&ei=7iVLT4TPI8_JrAfo47y3Dw&sa=X&oi=local_result&ct=image&ved=0CBUQ_BI From Nikunj.Badjatya at emc.com Tue Feb 28 08:18:04 2012 From: Nikunj.Badjatya at emc.com (Nikunj.Badjatya at emc.com) Date: Tue, 28 Feb 2012 02:18:04 -0500 Subject: [BangPypers] Popen.terminate() - WindowsError: [Error 5] Access is denied Message-ID: <599CEBACD49B4144A61212D837EE3C0F16F5AC657F@MX34A.corp.emc.com> Howdy, Py ver - 3.2, Windows-XP . Logged in as user with admin privileges. >From my main python program, I am running powershell program using subprocess.Popen(....). Now I have created a signal_handler() function in main python script which will handle CTRL-C ( This works fine ). Now when I put "proc.terminate()" in my signal_handler() function to terminate the subprocess created as well, It is giving me "WindowsError: [Error 5] Access is denied" error. I have tried with os.kill() also, same error. Tried with Popen.kill() also same error. Have googled a bit but couldn't understand them. In general, How to kill a subprocesses created from a python program.? If that subprocess also creates a new process from itself, how can I kill all child processes from my main python script.? Any ideas.?? Thanks, Nikunj 7 Switch off as you go | qRecycle always | P Save Paper - Save Trees | Go Green From abpillai at gmail.com Tue Feb 28 10:47:53 2012 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Tue, 28 Feb 2012 15:17:53 +0530 Subject: [BangPypers] Https and http difference in behaviour urllib2 In-Reply-To: References: Message-ID: On Wed, Feb 22, 2012 at 3:34 PM, Amit Sethi wrote: > Hi all , Can someone explain to me why things are implemented the following > in urllib2. > > When I pass encoded url using http it again encodes the parameters > whereas in case of https it does not urlencode again > > so lets say the (http) call is > http//:example.com?email=amit%40sethi.comthe request is > > http://example.com?email=amit%2540sethi.com > > where as in case of https it is > > https://example.com?email=amit%40sethi.com > Been a while since I posted here! For any kind of client side HTTP coding, I suggest the new requests library. I myself have been a heavy user of urllib2/urllib but these libraries are developer unfriendly and doesnt look like their problems are going to get fixed soon. Read this excellent blog post by Danny on comparing urllib2 vs requests. http://pydanny.blogspot.in/2011/05/python-http-requests-for-humans.html > > > Thanks > Amit > > > > -- > A-M-I-T S|S > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From amit.pureenergy at gmail.com Tue Feb 28 18:49:52 2012 From: amit.pureenergy at gmail.com (Amit Sethi) Date: Tue, 28 Feb 2012 23:19:52 +0530 Subject: [BangPypers] something similar to file command for python Message-ID: Hi All , I am trying to read some file attachments being sent from blackberrys . However blackberry compresses the document into base64 . Now I am able to get the document by converting it back. However I wish to know the file extension of the original document. Now I know file command reads the document's header to find the file type . Is there some way of applying the same concept with python . I do not wish to use subprocess. Thanks Amit -- A-M-I-T S|S From nikunjbadjatya at gmail.com Tue Feb 28 19:19:25 2012 From: nikunjbadjatya at gmail.com (Nikunj Badjatya) Date: Tue, 28 Feb 2012 23:49:25 +0530 Subject: [BangPypers] Popen.terminate() - WindowsError: [Error 5] Access is denied In-Reply-To: <599CEBACD49B4144A61212D837EE3C0F16F5AC657F@MX34A.corp.emc.com> References: <599CEBACD49B4144A61212D837EE3C0F16F5AC657F@MX34A.corp.emc.com> Message-ID: Any clues guys? On Tue, Feb 28, 2012 at 12:48 PM, wrote: > Howdy, > > Py ver - 3.2, Windows-XP . Logged in as user with admin privileges. > >From my main python program, I am running powershell program using > subprocess.Popen(....). > Now I have created a signal_handler() function in main python script which > will handle CTRL-C ( This works fine ). > Now when I put "proc.terminate()" in my signal_handler() function to > terminate the subprocess created as well, > It is giving me "WindowsError: [Error 5] Access is denied" error. > I have tried with os.kill() also, same error. Tried with Popen.kill() > also same error. Have googled a bit but couldn't understand them. > > In general, How to kill a subprocesses created from a python program.? If > that subprocess also creates a new process from itself, how can I kill all > child processes from my main python script.? > > Any ideas.?? > > > Thanks, > Nikunj > > 7 Switch off as you go | qRecycle always | P Save Paper - Save Trees | > Go Green > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From gora at mimirtech.com Wed Feb 29 04:23:14 2012 From: gora at mimirtech.com (Gora Mohanty) Date: Wed, 29 Feb 2012 08:53:14 +0530 Subject: [BangPypers] something similar to file command for python In-Reply-To: References: Message-ID: On 28 February 2012 23:19, Amit Sethi wrote: > Hi All , I am trying to read some file attachments being sent from > blackberrys . However blackberry compresses the document into base64 . Now > I am able to get the document by converting it back. However I wish to know > the file extension of the original document. Now I know file command reads > the document's header to find the file type . Is there some way of applying > the same concept with python . I do not wish to use subprocess. If you are on a Linux/Unix system you can use python-magic. Regards, Gora From nitin.nitp at gmail.com Wed Feb 29 08:08:00 2012 From: nitin.nitp at gmail.com (Nitin Kumar) Date: Wed, 29 Feb 2012 12:38:00 +0530 Subject: [BangPypers] class inheritance query Message-ID: Hi All, Let say I have some classes X,Y and Z with some static values class X: a=1 class Y: b=2 class Z: c=3 Now I want to have class A such that it can have variables from class Y or Z (any one only) depending on runtime so that while using i can use X.a and X.b or X.a and X.c how can i implement this using property or metaclass or any other idea is welcomed? -- Nitin K From alind_sap at yahoo.com Wed Feb 29 12:23:06 2012 From: alind_sap at yahoo.com (alind sharma) Date: Wed, 29 Feb 2012 19:23:06 +0800 (SGT) Subject: [BangPypers] class inheritance query In-Reply-To: References: Message-ID: <1330514586.45644.YahooMailNeo@web193201.mail.sg3.yahoo.com> I think that X, Y, Z all inheriting from A will solve your problem. Alind Sharma ________________________________ From: Nitin Kumar To: Bangalore Python Users Group - India Sent: Wednesday, 29 February 2012 12:38 PM Subject: [BangPypers] class inheritance query Hi All, Let say I have some classes X,Y and Z with some static values class X: ? ? a=1 class Y: ? ? b=2 class Z: ? ? c=3 Now I want to have class A such that it can have variables from class Y or Z (any one only) depending on runtime so that while using i can use X.a and X.b? ? or? ? ? X.a and X.c how can i implement this using property or metaclass or any other idea is welcomed? -- Nitin K _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers From amit.pureenergy at gmail.com Wed Feb 29 12:50:52 2012 From: amit.pureenergy at gmail.com (Amit Sethi) Date: Wed, 29 Feb 2012 17:20:52 +0530 Subject: [BangPypers] something similar to file command for python In-Reply-To: References: Message-ID: python-magic works like a charm ... However I am still curious as to how other mail servers and clients deducing the name of the original file. Thanks Amit -- A-M-I-T S|S From supr.e.etsethi at gmail.com Wed Feb 29 13:02:07 2012 From: supr.e.etsethi at gmail.com (s|s) Date: Wed, 29 Feb 2012 17:32:07 +0530 Subject: [BangPypers] something similar to file command for python In-Reply-To: References: Message-ID: The filename is included in the header. On Wed, Feb 29, 2012 at 5:20 PM, Amit Sethi wrote: > python-magic works like a charm ... > > However I am still curious as to how other mail servers and clients > deducing the name of the original file. > > Thanks > Amit > > -- > A-M-I-T S|S > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Supreet Sethi Ph UK: +447859172473 Ph IN: +919811143517 Ph Skype: d_j_i_n_n Profile: http://www.google.com/profiles/supreet.sethi Twt: http://twitter.com/djinn From benignbala at gmail.com Wed Feb 29 13:10:48 2012 From: benignbala at gmail.com (Balachandran Sivakumar) Date: Wed, 29 Feb 2012 17:40:48 +0530 Subject: [BangPypers] something similar to file command for python In-Reply-To: References: Message-ID: Hi, On Wed, Feb 29, 2012 at 5:20 PM, Amit Sethi wrote: > > However I am still curious as to how other mail servers and clients > deducing the name of the original file. > There is a standard SMTP header named Content-Disposition, that has a filename attribute. That contains the original name of the attached file. It looks something like this: Content-Disposition: attachment; filename=test.zip; This is set by the mail client when you attach the file and send it. The mail servers normally do not have to deduce this. Thanks -- Thank you Balachandran Sivakumar Arise Awake and stop not till the goal is reached. ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?- Swami Vivekananda Mail: benignbala at gmail.com Blog: http://benignbala.wordpress.com/ From senthil at uthcode.com Wed Feb 29 14:04:51 2012 From: senthil at uthcode.com (Senthil Kumaran) Date: Wed, 29 Feb 2012 21:04:51 +0800 Subject: [BangPypers] Https and http difference in behaviour urllib2 In-Reply-To: References: Message-ID: <20120229130451.GA1980@mathmagic> On Tue, Feb 28, 2012 at 03:17:53PM +0530, Anand Balachandran Pillai wrote: > For any kind of client side HTTP coding, I suggest the new requests library. > I myself have been a heavy user of urllib2/urllib but these libraries are > developer unfriendly and doesnt look like their problems are going to get > fixed soon. :-) It should be fixed soon. What I have realized is, people look for comforts than features. requests provides comfortable interfaces, building on top of urllib2. I think, those interfaces could find a way within the lib. Thanks, Senthil From amit.pureenergy at gmail.com Wed Feb 29 17:40:24 2012 From: amit.pureenergy at gmail.com (Amit Sethi) Date: Wed, 29 Feb 2012 22:10:24 +0530 Subject: [BangPypers] something similar to file command for python In-Reply-To: References: Message-ID: Well interestingly in case of blackberry devices the header is Content-Type: application/octet-stream; name="=?utf-8?B?UFVSQ0hBU0UgT1JERVJfUmVsaWFuY2UuZG9j?=" Content-Disposition: attachment so obviously thats not how it is happening From benignbala at gmail.com Wed Feb 29 18:05:10 2012 From: benignbala at gmail.com (Balachandran Sivakumar) Date: Wed, 29 Feb 2012 22:35:10 +0530 Subject: [BangPypers] something similar to file command for python In-Reply-To: References: Message-ID: Hi, On Wed, Feb 29, 2012 at 10:10 PM, Amit Sethi wrote: > Well interestingly in case of blackberry devices the header is > name="=?utf-8?B?UFVSQ0hBU0UgT1JERVJfUmVsaWFuY2UuZG9j?=" > Content-Disposition: attachment > Ok, strange, but the name came as part of Content-Type. But it is base64 encoded and says PURCHASE ORDER_Reliance.doc. So, probably that's how your client reads it and interprets it. May be it uses the Content-Transfer-Encoding header. Thanks -- Thank you Balachandran Sivakumar Arise Awake and stop not till the goal is reached. ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?- Swami Vivekananda Mail: benignbala at gmail.com Blog: http://benignbala.wordpress.com/ From gora at mimirtech.com Wed Feb 29 18:24:00 2012 From: gora at mimirtech.com (Gora Mohanty) Date: Wed, 29 Feb 2012 22:54:00 +0530 Subject: [BangPypers] something similar to file command for python In-Reply-To: References: Message-ID: On 29 February 2012 22:35, Balachandran Sivakumar wrote: > Hi, > > On Wed, Feb 29, 2012 at 10:10 PM, Amit Sethi wrote: >> Well interestingly in case of blackberry devices the header is >> name="=?utf-8?B?UFVSQ0hBU0UgT1JERVJfUmVsaWFuY2UuZG9j?=" >> Content-Disposition: attachment >> > > ? ? ?Ok, strange, but the name came as part of Content-Type. But it > is base64 encoded and says PURCHASE ORDER_Reliance.doc. So, probably > that's how your client reads it and interprets it. May be it uses the > Content-Transfer-Encoding header. Thanks Must be part of the L33T Blackberry encryption :-) Regards, Gora From benignbala at gmail.com Wed Feb 29 18:36:44 2012 From: benignbala at gmail.com (Balachandran Sivakumar) Date: Wed, 29 Feb 2012 23:06:44 +0530 Subject: [BangPypers] something similar to file command for python In-Reply-To: References: Message-ID: Hi, On Wed, Feb 29, 2012 at 10:54 PM, Gora Mohanty wrote: >> is base64 encoded and says PURCHASE ORDER_Reliance.doc. So, probably >> that's how your client reads it and interprets it. May be it uses the >> Content-Transfer-Encoding header. Thanks > > Must be part of the L33T Blackberry encryption :-) > This is from Wikipedia: Many mail user agents also send messages with the file name in the name parameter of the content-type header instead of the filename parameter of the content-disposition header. This practice is discouraged. So, you are right. Blackberry is definitely doing something bad. But I didn't even know that 'name' field existed and I have been playing around with SMTP for a while. :( Thanks -- Thank you Balachandran Sivakumar Arise Awake and stop not till the goal is reached. ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?- Swami Vivekananda Mail: benignbala at gmail.com Blog: http://benignbala.wordpress.com/ From amit.pureenergy at gmail.com Wed Feb 29 19:49:36 2012 From: amit.pureenergy at gmail.com (Amit Sethi) Date: Thu, 1 Mar 2012 00:19:36 +0530 Subject: [BangPypers] something similar to file command for python In-Reply-To: References: Message-ID: @ Balachandran Sivakumar The name parameter itself is base64 encoded , I did not notice that . I think that solves so many of my problems. Thanks -- A-M-I-T S|S From anandology at gmail.com Wed Feb 29 21:21:31 2012 From: anandology at gmail.com (Anand Chitipothu) Date: Wed, 29 Feb 2012 20:21:31 +0000 Subject: [BangPypers] Https and http difference in behaviour urllib2 In-Reply-To: <20120229130451.GA1980@mathmagic> References: <20120229130451.GA1980@mathmagic> Message-ID: 2012/2/29 Senthil Kumaran : > On Tue, Feb 28, 2012 at 03:17:53PM +0530, Anand Balachandran Pillai wrote: >> For any kind of client side HTTP coding, I suggest the new requests library. >> I myself have been a heavy user of urllib2/urllib but these libraries are >> developer unfriendly and doesnt look like their problems are going to get >> fixed soon. > > :-) It should be fixed soon. What I have realized is, people look for > comforts than features. requests provides comfortable interfaces, > building on top of urllib2. I think, those interfaces could find a way > within the lib. I disagree. People look for simplicity. Anand