From brian at python.org Mon Feb 3 17:08:07 2014 From: brian at python.org (Brian Curtin) Date: Mon, 03 Feb 2014 16:08:07 -0000 Subject: [BangPypers] PyCon 2014 - 400 tickets remain! Message-ID: Hi BangPyPers! PyCon 2014, taking place April 9-17 in Montreal, has just passed 1600 tickets sold, and we're seeing sales ramp up very quickly. Late last week we were announcing the 1500 mark, and with a cap of 2000 tickets, we expect these last four hundred to move quickly. Head to https://us.pycon.org/2014/registration/ to buy yours today! This year's talk schedule is available at https://us.pycon.org/2014/schedule/talks/, along with a keynote series including EFF co-founder John Perry Barlow; IPython creator, Fernando Perez; PSF director, Jessica McKellar; PSF chairman, Van Lindberg; and Python's creator, Guido van Rossum. The tutorial schedule is available at https://us.pycon.org/2014/schedule/tutorials/, and spaces are limited! You'd be hard pressed to find a better value than our tutorials. We've long thought PyCon to be family friendly, and last year's "Young Coder" tutorials were a hugely successful step towards showing it. The tutorials are back again this year, with registration opening shortly for children 12 and over: https://us.pycon.org/2014/events/letslearnpython/. For kids under 12, we're pleased to be offering childcare! See https://us.pycon.org/2014/childcare/ for details. The 5K Charity Fun Run is on its third year, with proceeds benefiting the EFF. It's a fun time and supports a good cause. For the 5K and many other events, check out the Events section on https://us.pycon.org/2014/ If you require an invitation letter in order acquire a travel visa, please email pycon-organizers at python.org! For the latest updates, follow us on Twitter at https://twitter.com/pycon, and on our blog at http://pycon.blogspot.com/ Hope to see you in Montreal! Diana Clarke, Chair diana.joan.clarke at gmail.com Brian Curtin, Publicity Coordinator brian at python.org From bhatt.suyash at gmail.com Mon Feb 3 20:10:16 2014 From: bhatt.suyash at gmail.com (Suyash Bhatt) Date: Tue, 4 Feb 2014 00:40:16 +0530 Subject: [BangPypers] Establishing remote connection In-Reply-To: References: Message-ID: Hi all, I am a beginner python programmer and am writing a piece of code to execute an application which provides an API, on a remote desktop. I need help to figure out a way to establish socket connection to a pc with known TCP/IP address. I believe if I am able to operate command line, say opening a notepad application, on a remote desktop, it would become easy for me to proceed further. Can anyone help me with that? Perhaps guide me on what to exlore in order to proceed? Regards, Suyash From shashidhar85 at gmail.com Tue Feb 11 07:26:21 2014 From: shashidhar85 at gmail.com (Shashidhar Paragonda) Date: Tue, 11 Feb 2014 11:56:21 +0530 Subject: [BangPypers] { Parsing } Message-ID: Hello Python hackers >>> I wanted to write parser for below GHERKIN format, can anyone suggest best pythonic approach to parse and extract the details from below eg: >>> My need is to discard the common english words and extract rest of the text and write entries to XML ( i thought of using XML, please suggest any other format storage ). Feature: Password management Scenario: Forgot password Given a user with email "cukes at cukes.info" exists When I ask for a password reset Then an email with a password reset link should be sent >>> NOTE: Feature, Scenario, Given, When , Then are like keywords in above text ----------------------------------- Regards, Shashidhar N.Paragonda shashidhar85 at gmail.com +919900093835 From vjagannath09 at gmail.com Tue Feb 11 08:59:53 2014 From: vjagannath09 at gmail.com (Vaikuntham Jagannath) Date: Tue, 11 Feb 2014 15:59:53 +0800 Subject: [BangPypers] { Parsing } In-Reply-To: References: Message-ID: Hi, Why do you want to write a parser for the Gherkin format ? If we can know the underlying need, then may be We can suggest you more effectively. Regards, Jagan On Tue, Feb 11, 2014 at 2:26 PM, Shashidhar Paragonda < shashidhar85 at gmail.com> wrote: > Hello Python hackers > > >>> I wanted to write parser for below GHERKIN format, can anyone suggest > best pythonic approach to parse and extract the details from below eg: > > >>> My need is to discard the common english words and extract rest of the > text and write entries to XML ( i thought of using XML, please suggest any > other format storage ). > > Feature: Password management Scenario: Forgot password Given a > user with email "cukes at cukes.info" exists When I ask for a password > reset Then an email with a password reset link should be sent > > >>> NOTE: Feature, Scenario, Given, When , Then are like keywords in above > text > > > ----------------------------------- > Regards, > > Shashidhar N.Paragonda > shashidhar85 at gmail.com > +919900093835 > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From shashidhar85 at gmail.com Tue Feb 11 10:17:51 2014 From: shashidhar85 at gmail.com (Shashidhar Paragonda) Date: Tue, 11 Feb 2014 14:47:51 +0530 Subject: [BangPypers] { Parsing } In-Reply-To: References: Message-ID: Hi >>> The main requirement is to build autamation script parsing the Gherkin format. >>> We planned to use Gherkin format to basically convert the test use-cases. >>> Everyone who does manual / automation test, will use Gherkin format to generate the test use-cases, so that Gherkin becomes a common format platform to build test cases. ----------------------------------- Regards, Shashidhar N.Paragonda shashidhar85 at gmail.com +919900093835 On Tue, Feb 11, 2014 at 1:29 PM, Vaikuntham Jagannath < vjagannath09 at gmail.com> wrote: > Hi, > > Why do you want to write a parser for the Gherkin format ? If we can know > the underlying need, then may be We can suggest you more effectively. > > Regards, > Jagan > > On Tue, Feb 11, 2014 at 2:26 PM, Shashidhar Paragonda < > shashidhar85 at gmail.com> wrote: > > > Hello Python hackers > > > > >>> I wanted to write parser for below GHERKIN format, can anyone suggest > > best pythonic approach to parse and extract the details from below eg: > > > > >>> My need is to discard the common english words and extract rest of > the > > text and write entries to XML ( i thought of using XML, please suggest > any > > other format storage ). > > > > Feature: Password management Scenario: Forgot password Given a > > user with email "cukes at cukes.info" exists When I ask for a password > > reset Then an email with a password reset link should be sent > > > > >>> NOTE: Feature, Scenario, Given, When , Then are like keywords in > above > > text > > > > > > ----------------------------------- > > Regards, > > > > Shashidhar N.Paragonda > > shashidhar85 at gmail.com > > +919900093835 > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > https://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From sahil2422 at gmail.com Tue Feb 11 12:12:28 2014 From: sahil2422 at gmail.com (sahil chug) Date: Tue, 11 Feb 2014 16:42:28 +0530 Subject: [BangPypers] BangPypers Digest, Vol 78, Issue 2 In-Reply-To: References: Message-ID: Sub SumProduct(RowCount1 As Long, RowStart As Long, ColumnCount As Long) Dim ColumnStart As Long, ResultColumn Dim x As Long, y As Long Dim SumProduct As Double, TempTotalSum As Double 'Initialize ColumnStart equal to M' ColumnStart = 13 'Initialize ResultColumn to column C' ResultColumn = 3 For x = ColumnStart To ColumnCount Step 2 'Initialize SumProduct and TempTotalSum to 0.00' SumProduct = 0.00 TemTotalSum = 0.00 For y = RowStart To RowCount1 If Cells(y, ResultColumn).Value = "Result" Then 'Write to Result Row' If TempTotalSum = 0.00 Then 'Checks for Divisor = 0' Cells(y, x).Value = 0.00 Else: Cells(y, x).Value = SumProduct / TempTotalSum 'fix for the total sum' Cells(y, x+1).value = TempTotalSum End If 'Reset SumProduct and tempTotalSum' SumProduct = 0.00 TempTotalSum = 0.00 Else SumProduct = SumProduct + Cells(y, x).Value * Cells(y, x + 1).Value TempTotalSum = TempTotalSum + Cells(y, x + 1).Value End If Next y Next x End Sub On Tue, Feb 11, 2014 at 4:30 PM, wrote: > Send BangPypers mailing list submissions to > bangpypers at python.org > > To subscribe or unsubscribe via the World Wide Web, visit > https://mail.python.org/mailman/listinfo/bangpypers > or, via email, send a message with subject or body 'help' to > bangpypers-request at python.org > > You can reach the person managing the list at > bangpypers-owner at python.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of BangPypers digest..." > > > Today's Topics: > > 1. { Parsing } (Shashidhar Paragonda) > 2. Re: { Parsing } (Vaikuntham Jagannath) > 3. Re: { Parsing } (Shashidhar Paragonda) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 11 Feb 2014 11:56:21 +0530 > From: Shashidhar Paragonda > To: Bangalore Python Users Group - India > Subject: [BangPypers] { Parsing } > Message-ID: > TZmLVVKeud9RJX8wVw at mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > Hello Python hackers > > >>> I wanted to write parser for below GHERKIN format, can anyone suggest > best pythonic approach to parse and extract the details from below eg: > > >>> My need is to discard the common english words and extract rest of the > text and write entries to XML ( i thought of using XML, please suggest any > other format storage ). > > Feature: Password management Scenario: Forgot password Given a > user with email "cukes at cukes.info" exists When I ask for a password > reset Then an email with a password reset link should be sent > > >>> NOTE: Feature, Scenario, Given, When , Then are like keywords in above > text > > > ----------------------------------- > Regards, > > Shashidhar N.Paragonda > shashidhar85 at gmail.com > +919900093835 > > > ------------------------------ > > Message: 2 > Date: Tue, 11 Feb 2014 15:59:53 +0800 > From: Vaikuntham Jagannath > To: Bangalore Python Users Group - India > Subject: Re: [BangPypers] { Parsing } > Message-ID: > < > CAJ6C5wgE_8qG+FkoLvpCCwAqRm2bGbjQCORnf12vzLvZMkyQAw at mail.gmail.com> > Content-Type: text/plain; charset=UTF-8 > > Hi, > > Why do you want to write a parser for the Gherkin format ? If we can know > the underlying need, then may be We can suggest you more effectively. > > Regards, > Jagan > > On Tue, Feb 11, 2014 at 2:26 PM, Shashidhar Paragonda < > shashidhar85 at gmail.com> wrote: > > > Hello Python hackers > > > > >>> I wanted to write parser for below GHERKIN format, can anyone suggest > > best pythonic approach to parse and extract the details from below eg: > > > > >>> My need is to discard the common english words and extract rest of > the > > text and write entries to XML ( i thought of using XML, please suggest > any > > other format storage ). > > > > Feature: Password management Scenario: Forgot password Given a > > user with email "cukes at cukes.info" exists When I ask for a password > > reset Then an email with a password reset link should be sent > > > > >>> NOTE: Feature, Scenario, Given, When , Then are like keywords in > above > > text > > > > > > ----------------------------------- > > Regards, > > > > Shashidhar N.Paragonda > > shashidhar85 at gmail.com > > +919900093835 > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > https://mail.python.org/mailman/listinfo/bangpypers > > > > > ------------------------------ > > Message: 3 > Date: Tue, 11 Feb 2014 14:47:51 +0530 > From: Shashidhar Paragonda > To: Bangalore Python Users Group - India > Subject: Re: [BangPypers] { Parsing } > Message-ID: > < > CAL2NvRx7wdzq6+MaX1WDUCf27Z0zJzUpOdN7AA_8cPRc-7v0-A at mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > Hi > >>> The main requirement is to build autamation script parsing the Gherkin > format. > >>> We planned to use Gherkin format to basically convert the test > use-cases. > >>> Everyone who does manual / automation test, will use Gherkin format to > generate the test use-cases, so that Gherkin becomes a common format > platform to build test cases. > > > > ----------------------------------- > Regards, > > Shashidhar N.Paragonda > shashidhar85 at gmail.com > +919900093835 > > > On Tue, Feb 11, 2014 at 1:29 PM, Vaikuntham Jagannath < > vjagannath09 at gmail.com> wrote: > > > Hi, > > > > Why do you want to write a parser for the Gherkin format ? If we can know > > the underlying need, then may be We can suggest you more effectively. > > > > Regards, > > Jagan > > > > On Tue, Feb 11, 2014 at 2:26 PM, Shashidhar Paragonda < > > shashidhar85 at gmail.com> wrote: > > > > > Hello Python hackers > > > > > > >>> I wanted to write parser for below GHERKIN format, can anyone > suggest > > > best pythonic approach to parse and extract the details from below eg: > > > > > > >>> My need is to discard the common english words and extract rest of > > the > > > text and write entries to XML ( i thought of using XML, please suggest > > any > > > other format storage ). > > > > > > Feature: Password management Scenario: Forgot password Given a > > > user with email "cukes at cukes.info" exists When I ask for a password > > > reset Then an email with a password reset link should be sent > > > > > > >>> NOTE: Feature, Scenario, Given, When , Then are like keywords in > > above > > > text > > > > > > > > > ----------------------------------- > > > Regards, > > > > > > Shashidhar N.Paragonda > > > shashidhar85 at gmail.com > > > +919900093835 > > > _______________________________________________ > > > BangPypers mailing list > > > BangPypers at python.org > > > https://mail.python.org/mailman/listinfo/bangpypers > > > > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > https://mail.python.org/mailman/listinfo/bangpypers > > > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > > > ------------------------------ > > End of BangPypers Digest, Vol 78, Issue 2 > ***************************************** > -- *sahil* chug From sahil2422 at gmail.com Tue Feb 11 14:12:09 2014 From: sahil2422 at gmail.com (sahil chug) Date: Tue, 11 Feb 2014 18:42:09 +0530 Subject: [BangPypers] BangPypers Digest, Vol 78, Issue 2 In-Reply-To: References: Message-ID: Sorry please ignoe my previous mail ..that was sent to this address by accident On Tue, Feb 11, 2014 at 4:42 PM, sahil chug wrote: > > Sub SumProduct(RowCount1 As Long, RowStart As Long, ColumnCount As Long) > Dim ColumnStart As Long, ResultColumn > Dim x As Long, y As Long > Dim SumProduct As Double, TempTotalSum As Double > > 'Initialize ColumnStart equal to M' > ColumnStart = 13 > > 'Initialize ResultColumn to column C' > ResultColumn = 3 > > For x = ColumnStart To ColumnCount Step 2 > 'Initialize SumProduct and TempTotalSum to 0.00' > SumProduct = 0.00 > TemTotalSum = 0.00 > For y = RowStart To RowCount1 > If Cells(y, ResultColumn).Value = "Result" Then > > 'Write to Result Row' > > If TempTotalSum = 0.00 Then > 'Checks for Divisor = 0' > Cells(y, x).Value = 0.00 > Else: > Cells(y, x).Value = SumProduct / TempTotalSum > 'fix for the total sum' > Cells(y, x+1).value = TempTotalSum > End If > > 'Reset SumProduct and tempTotalSum' > SumProduct = 0.00 > TempTotalSum = 0.00 > Else > SumProduct = SumProduct + Cells(y, x).Value * Cells(y, x + 1).Value > TempTotalSum = TempTotalSum + Cells(y, x + 1).Value > End If > > Next y > Next x > > End Sub > > > On Tue, Feb 11, 2014 at 4:30 PM, wrote: > >> Send BangPypers mailing list submissions to >> bangpypers at python.org >> >> To subscribe or unsubscribe via the World Wide Web, visit >> https://mail.python.org/mailman/listinfo/bangpypers >> or, via email, send a message with subject or body 'help' to >> bangpypers-request at python.org >> >> You can reach the person managing the list at >> bangpypers-owner at python.org >> >> When replying, please edit your Subject line so it is more specific >> than "Re: Contents of BangPypers digest..." >> >> >> Today's Topics: >> >> 1. { Parsing } (Shashidhar Paragonda) >> 2. Re: { Parsing } (Vaikuntham Jagannath) >> 3. Re: { Parsing } (Shashidhar Paragonda) >> >> >> ---------------------------------------------------------------------- >> >> Message: 1 >> Date: Tue, 11 Feb 2014 11:56:21 +0530 >> From: Shashidhar Paragonda >> To: Bangalore Python Users Group - India >> Subject: [BangPypers] { Parsing } >> Message-ID: >> > TZmLVVKeud9RJX8wVw at mail.gmail.com> >> Content-Type: text/plain; charset=ISO-8859-1 >> >> Hello Python hackers >> >> >>> I wanted to write parser for below GHERKIN format, can anyone suggest >> best pythonic approach to parse and extract the details from below eg: >> >> >>> My need is to discard the common english words and extract rest of >> the >> text and write entries to XML ( i thought of using XML, please suggest any >> other format storage ). >> >> Feature: Password management Scenario: Forgot password Given a >> user with email "cukes at cukes.info" exists When I ask for a password >> reset Then an email with a password reset link should be sent >> >> >>> NOTE: Feature, Scenario, Given, When , Then are like keywords in >> above text >> >> >> ----------------------------------- >> Regards, >> >> Shashidhar N.Paragonda >> shashidhar85 at gmail.com >> +919900093835 >> >> >> ------------------------------ >> >> Message: 2 >> Date: Tue, 11 Feb 2014 15:59:53 +0800 >> From: Vaikuntham Jagannath >> To: Bangalore Python Users Group - India >> Subject: Re: [BangPypers] { Parsing } >> Message-ID: >> < >> CAJ6C5wgE_8qG+FkoLvpCCwAqRm2bGbjQCORnf12vzLvZMkyQAw at mail.gmail.com> >> Content-Type: text/plain; charset=UTF-8 >> >> Hi, >> >> Why do you want to write a parser for the Gherkin format ? If we can know >> the underlying need, then may be We can suggest you more effectively. >> >> Regards, >> Jagan >> >> On Tue, Feb 11, 2014 at 2:26 PM, Shashidhar Paragonda < >> shashidhar85 at gmail.com> wrote: >> >> > Hello Python hackers >> > >> > >>> I wanted to write parser for below GHERKIN format, can anyone >> suggest >> > best pythonic approach to parse and extract the details from below eg: >> > >> > >>> My need is to discard the common english words and extract rest of >> the >> > text and write entries to XML ( i thought of using XML, please suggest >> any >> > other format storage ). >> > >> > Feature: Password management Scenario: Forgot password Given a >> > user with email "cukes at cukes.info" exists When I ask for a password >> > reset Then an email with a password reset link should be sent >> > >> > >>> NOTE: Feature, Scenario, Given, When , Then are like keywords in >> above >> > text >> > >> > >> > ----------------------------------- >> > Regards, >> > >> > Shashidhar N.Paragonda >> > shashidhar85 at gmail.com >> > +919900093835 >> > _______________________________________________ >> > BangPypers mailing list >> > BangPypers at python.org >> > https://mail.python.org/mailman/listinfo/bangpypers >> > >> >> >> ------------------------------ >> >> Message: 3 >> Date: Tue, 11 Feb 2014 14:47:51 +0530 >> From: Shashidhar Paragonda >> To: Bangalore Python Users Group - India >> Subject: Re: [BangPypers] { Parsing } >> Message-ID: >> < >> CAL2NvRx7wdzq6+MaX1WDUCf27Z0zJzUpOdN7AA_8cPRc-7v0-A at mail.gmail.com> >> Content-Type: text/plain; charset=ISO-8859-1 >> >> Hi >> >>> The main requirement is to build autamation script parsing the Gherkin >> format. >> >>> We planned to use Gherkin format to basically convert the test >> use-cases. >> >>> Everyone who does manual / automation test, will use Gherkin format to >> generate the test use-cases, so that Gherkin becomes a common format >> platform to build test cases. >> >> >> >> ----------------------------------- >> Regards, >> >> Shashidhar N.Paragonda >> shashidhar85 at gmail.com >> +919900093835 >> >> >> On Tue, Feb 11, 2014 at 1:29 PM, Vaikuntham Jagannath < >> vjagannath09 at gmail.com> wrote: >> >> > Hi, >> > >> > Why do you want to write a parser for the Gherkin format ? If we can >> know >> > the underlying need, then may be We can suggest you more effectively. >> > >> > Regards, >> > Jagan >> > >> > On Tue, Feb 11, 2014 at 2:26 PM, Shashidhar Paragonda < >> > shashidhar85 at gmail.com> wrote: >> > >> > > Hello Python hackers >> > > >> > > >>> I wanted to write parser for below GHERKIN format, can anyone >> suggest >> > > best pythonic approach to parse and extract the details from below eg: >> > > >> > > >>> My need is to discard the common english words and extract rest >> of >> > the >> > > text and write entries to XML ( i thought of using XML, please suggest >> > any >> > > other format storage ). >> > > >> > > Feature: Password management Scenario: Forgot password Given a >> > > user with email "cukes at cukes.info" exists When I ask for a >> password >> > > reset Then an email with a password reset link should be sent >> > > >> > > >>> NOTE: Feature, Scenario, Given, When , Then are like keywords in >> > above >> > > text >> > > >> > > >> > > ----------------------------------- >> > > Regards, >> > > >> > > Shashidhar N.Paragonda >> > > shashidhar85 at gmail.com >> > > +919900093835 >> > > _______________________________________________ >> > > BangPypers mailing list >> > > BangPypers at python.org >> > > https://mail.python.org/mailman/listinfo/bangpypers >> > > >> > _______________________________________________ >> > BangPypers mailing list >> > BangPypers at python.org >> > https://mail.python.org/mailman/listinfo/bangpypers >> > >> >> >> ------------------------------ >> >> Subject: Digest Footer >> >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> https://mail.python.org/mailman/listinfo/bangpypers >> >> >> ------------------------------ >> >> End of BangPypers Digest, Vol 78, Issue 2 >> ***************************************** >> > > > > -- > *sahil* chug > -- *sahil* chug From baiju.m.mail at gmail.com Wed Feb 12 05:59:39 2014 From: baiju.m.mail at gmail.com (Baiju Muthukadan) Date: Tue, 11 Feb 2014 20:59:39 -0800 (PST) Subject: [BangPypers] PyCon India 2014 Call for Proposals Message-ID: <52faffbb.6a14450a.7bea.ffffc8ea@mx.google.com> Hi, It's that time of year again! PyCon India 2014 will be taking place from September 26-28 in Bangalore and we're ready to accept proposals. Registration will open soon, so mark your calendars and get ready to visit Bangalore for another great PyCon India. The PyCon India website has received a beautiful refresh, Check out our new site at: http://in.pycon.org/2014 We've received good numbers of proposals over each of the last several years, and we expect this year to be no different. For 2013 we received nearly 100 proposals for talks and workshops. If you're interested in submitting a proposal, take a look at our Call for Proposals at http://in.pycon.org/funnel/2014/ and poke around the site for advice and resources to help you create a great proposal. If your company is interested in sponsorship, we need you. Sponsors are what make PyCon India a possibility, and sponsorship offers some great values to the generous organizations who support the conference. Check out prospectus at http://in.pycon.org/2014/sponsorship-prospectus.pdf Contact Vijay Kumar at vnbang2003 at gmail.com with any sponsorship inquiries. Keep an eye out for news on our blog at http://in.pycon.org/blog/ and follow us on twitter at https://twitter.com/pyconindia and Facebook at https://www.facebook.com/PyConIndia Vijay Kumar, Coordinator vnbang2003 at gmail.com Baiju Muthukadan, Publicity Coordinator baiju.m.mail at gmail.com From vjagannath09 at gmail.com Wed Feb 12 08:43:03 2014 From: vjagannath09 at gmail.com (Vaikuntham Jagannath) Date: Wed, 12 Feb 2014 15:43:03 +0800 Subject: [BangPypers] { Parsing } In-Reply-To: References: Message-ID: You could consider using Lettuce [http://lettuce.it/] . It is a BDD framework in python. This could help you to build & maintain the automation scripts efficiently in the long run. Hope this helps.. Regards, jagan On Tue, Feb 11, 2014 at 5:17 PM, Shashidhar Paragonda < shashidhar85 at gmail.com> wrote: > Hi > >>> The main requirement is to build autamation script parsing the Gherkin > format. > >>> We planned to use Gherkin format to basically convert the test > use-cases. > >>> Everyone who does manual / automation test, will use Gherkin format to > generate the test use-cases, so that Gherkin becomes a common format > platform to build test cases. > > > > ----------------------------------- > Regards, > > Shashidhar N.Paragonda > shashidhar85 at gmail.com > +919900093835 > > > On Tue, Feb 11, 2014 at 1:29 PM, Vaikuntham Jagannath < > vjagannath09 at gmail.com> wrote: > > > Hi, > > > > Why do you want to write a parser for the Gherkin format ? If we can know > > the underlying need, then may be We can suggest you more effectively. > > > > Regards, > > Jagan > > > > On Tue, Feb 11, 2014 at 2:26 PM, Shashidhar Paragonda < > > shashidhar85 at gmail.com> wrote: > > > > > Hello Python hackers > > > > > > >>> I wanted to write parser for below GHERKIN format, can anyone > suggest > > > best pythonic approach to parse and extract the details from below eg: > > > > > > >>> My need is to discard the common english words and extract rest of > > the > > > text and write entries to XML ( i thought of using XML, please suggest > > any > > > other format storage ). > > > > > > Feature: Password management Scenario: Forgot password Given a > > > user with email "cukes at cukes.info" exists When I ask for a password > > > reset Then an email with a password reset link should be sent > > > > > > >>> NOTE: Feature, Scenario, Given, When , Then are like keywords in > > above > > > text > > > > > > > > > ----------------------------------- > > > Regards, > > > > > > Shashidhar N.Paragonda > > > shashidhar85 at gmail.com > > > +919900093835 > > > _______________________________________________ > > > BangPypers mailing list > > > BangPypers at python.org > > > https://mail.python.org/mailman/listinfo/bangpypers > > > > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > https://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From sayan at hackerearth.com Wed Feb 12 08:48:59 2014 From: sayan at hackerearth.com (Sayan Chowdhury) Date: Wed, 12 Feb 2014 13:18:59 +0530 Subject: [BangPypers] [JOBS] Join HackerEarth for an exciting opportunity Message-ID: Hi, I am Sayan, Software Developer at HackerEarth. We are looking for smart people to join us and build HackerEarth. We are here to change the way developers get hired, and we have grown pretty well in just over an year. 2013 was an amazing year for us, and we were able to achieve what we had only dreamt of. It laid out the foundation for our future plans, and 2014 will see that all. Simultaneously, we are building our team of passionate people who have the vision and passion to take it to the next level. And I invite you to be a part of it. Currently, we are a team of 6 full-time young people and that will more than double within next 6 months. We have released exciting products that have done very well, and are working on new features and scaling them to the hundreds of thousands of users. These are amazing times where we are quite stable, have the luxury to experiment on almost anything, and build products which will affect at least thousands of users on the first day. We launched the revamped Recruit application a few months ago, and companies like Symantec, Citrix, InMobi, Hindustan Times, Capillary, WebEngage, etc and many start-ups are some of our customers. Our most of the stack is in Python/Django and we write ton of code in Python. We use a lot of other stuffs like RabbitMQ, Celery, Tornado, Thrift, Memcached, etc. There are very interesting work going on in many diverse areas too, e.g. automated-deployment, infrastructure, scaling, optimization, and we are always experimenting with new technologies. You can checkout our engineering details at http://engineering.hackerearth.com/. You can also have a look at the blog - http://blog.hackerearth.com/ to get some insights into what we do. That said, I would love to explore full-time opportunity with you. For more information, you can refer to a bit old post here: http://blog.hackerearth.com/2013/09/join-as-a-python-developer-at-hackerearth.html . Reach out to vivek at hackerearth.com directly if you are interested in exploring this opportunity. Also let me know if you have any question or anything else. -- Sayan Chowdhury Software Developer, HackerEarth From shashidhar85 at gmail.com Thu Feb 13 11:29:36 2014 From: shashidhar85 at gmail.com (Shashidhar Paragonda) Date: Thu, 13 Feb 2014 15:59:36 +0530 Subject: [BangPypers] { Parsing } In-Reply-To: References: Message-ID: Hi, lettuce solved the requirement of doing automation testing. I have other requirement i.e I am using Python as scripting tool to perform the automation script for C#. Is there any other library which best supports to perform the C# automation. ----------------------------------- Regards, Shashidhar N.Paragonda shashidhar85 at gmail.com +919900093835 On Wed, Feb 12, 2014 at 1:13 PM, Vaikuntham Jagannath < vjagannath09 at gmail.com> wrote: > You could consider using Lettuce [http://lettuce.it/] . It is a BDD > framework in python. This could help you to build & maintain the automation > scripts efficiently in the long run. Hope this helps.. > > Regards, > jagan > > > On Tue, Feb 11, 2014 at 5:17 PM, Shashidhar Paragonda < > shashidhar85 at gmail.com> wrote: > > > Hi > > >>> The main requirement is to build autamation script parsing the > Gherkin > > format. > > >>> We planned to use Gherkin format to basically convert the test > > use-cases. > > >>> Everyone who does manual / automation test, will use Gherkin format > to > > generate the test use-cases, so that Gherkin becomes a common format > > platform to build test cases. > > > > > > > > ----------------------------------- > > Regards, > > > > Shashidhar N.Paragonda > > shashidhar85 at gmail.com > > +919900093835 > > > > > > On Tue, Feb 11, 2014 at 1:29 PM, Vaikuntham Jagannath < > > vjagannath09 at gmail.com> wrote: > > > > > Hi, > > > > > > Why do you want to write a parser for the Gherkin format ? If we can > know > > > the underlying need, then may be We can suggest you more effectively. > > > > > > Regards, > > > Jagan > > > > > > On Tue, Feb 11, 2014 at 2:26 PM, Shashidhar Paragonda < > > > shashidhar85 at gmail.com> wrote: > > > > > > > Hello Python hackers > > > > > > > > >>> I wanted to write parser for below GHERKIN format, can anyone > > suggest > > > > best pythonic approach to parse and extract the details from below > eg: > > > > > > > > >>> My need is to discard the common english words and extract rest > of > > > the > > > > text and write entries to XML ( i thought of using XML, please > suggest > > > any > > > > other format storage ). > > > > > > > > Feature: Password management Scenario: Forgot password Given a > > > > user with email "cukes at cukes.info" exists When I ask for a > password > > > > reset Then an email with a password reset link should be sent > > > > > > > > >>> NOTE: Feature, Scenario, Given, When , Then are like keywords in > > > above > > > > text > > > > > > > > > > > > ----------------------------------- > > > > Regards, > > > > > > > > Shashidhar N.Paragonda > > > > shashidhar85 at gmail.com > > > > +919900093835 > > > > _______________________________________________ > > > > BangPypers mailing list > > > > BangPypers at python.org > > > > https://mail.python.org/mailman/listinfo/bangpypers > > > > > > > _______________________________________________ > > > BangPypers mailing list > > > BangPypers at python.org > > > https://mail.python.org/mailman/listinfo/bangpypers > > > > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > https://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From vjagannath09 at gmail.com Thu Feb 13 11:33:50 2014 From: vjagannath09 at gmail.com (Vaikuntham Jagannath) Date: Thu, 13 Feb 2014 18:33:50 +0800 Subject: [BangPypers] { Parsing } In-Reply-To: References: Message-ID: For what purpose are you trying to use C# Automation scripts? On Thu, Feb 13, 2014 at 6:29 PM, Shashidhar Paragonda < shashidhar85 at gmail.com> wrote: > Hi, lettuce solved the requirement of doing automation testing. > I have other requirement i.e I am using Python as scripting tool to perform > the automation script for C#. > Is there any other library which best supports to perform the C# > automation. > > > ----------------------------------- > Regards, > > Shashidhar N.Paragonda > shashidhar85 at gmail.com > +919900093835 > > > On Wed, Feb 12, 2014 at 1:13 PM, Vaikuntham Jagannath < > vjagannath09 at gmail.com> wrote: > > > You could consider using Lettuce [http://lettuce.it/] . It is a BDD > > framework in python. This could help you to build & maintain the > automation > > scripts efficiently in the long run. Hope this helps.. > > > > Regards, > > jagan > > > > > > On Tue, Feb 11, 2014 at 5:17 PM, Shashidhar Paragonda < > > shashidhar85 at gmail.com> wrote: > > > > > Hi > > > >>> The main requirement is to build autamation script parsing the > > Gherkin > > > format. > > > >>> We planned to use Gherkin format to basically convert the test > > > use-cases. > > > >>> Everyone who does manual / automation test, will use Gherkin format > > to > > > generate the test use-cases, so that Gherkin becomes a common format > > > platform to build test cases. > > > > > > > > > > > > ----------------------------------- > > > Regards, > > > > > > Shashidhar N.Paragonda > > > shashidhar85 at gmail.com > > > +919900093835 > > > > > > > > > On Tue, Feb 11, 2014 at 1:29 PM, Vaikuntham Jagannath < > > > vjagannath09 at gmail.com> wrote: > > > > > > > Hi, > > > > > > > > Why do you want to write a parser for the Gherkin format ? If we can > > know > > > > the underlying need, then may be We can suggest you more effectively. > > > > > > > > Regards, > > > > Jagan > > > > > > > > On Tue, Feb 11, 2014 at 2:26 PM, Shashidhar Paragonda < > > > > shashidhar85 at gmail.com> wrote: > > > > > > > > > Hello Python hackers > > > > > > > > > > >>> I wanted to write parser for below GHERKIN format, can anyone > > > suggest > > > > > best pythonic approach to parse and extract the details from below > > eg: > > > > > > > > > > >>> My need is to discard the common english words and extract > rest > > of > > > > the > > > > > text and write entries to XML ( i thought of using XML, please > > suggest > > > > any > > > > > other format storage ). > > > > > > > > > > Feature: Password management Scenario: Forgot password Given a > > > > > user with email "cukes at cukes.info" exists When I ask for a > > password > > > > > reset Then an email with a password reset link should be sent > > > > > > > > > > >>> NOTE: Feature, Scenario, Given, When , Then are like keywords > in > > > > above > > > > > text > > > > > > > > > > > > > > > ----------------------------------- > > > > > Regards, > > > > > > > > > > Shashidhar N.Paragonda > > > > > shashidhar85 at gmail.com > > > > > +919900093835 > > > > > _______________________________________________ > > > > > BangPypers mailing list > > > > > BangPypers at python.org > > > > > https://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > > _______________________________________________ > > > > BangPypers mailing list > > > > BangPypers at python.org > > > > https://mail.python.org/mailman/listinfo/bangpypers > > > > > > > _______________________________________________ > > > BangPypers mailing list > > > BangPypers at python.org > > > https://mail.python.org/mailman/listinfo/bangpypers > > > > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > https://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From shashidhar85 at gmail.com Thu Feb 13 12:20:37 2014 From: shashidhar85 at gmail.com (Shashidhar Paragonda) Date: Thu, 13 Feb 2014 16:50:37 +0530 Subject: [BangPypers] { Parsing } In-Reply-To: References: Message-ID: We are using TestComplete tool to do automation testing. Automation testing script is generated using C#, Main concern is we are trying to generate C# automation test script using the manual test scripts. For manual test scripts we wanted to follow common script format i.e we thought of Gherkin format, and convert / parse the gherkin format manual script and generate C# automation script for each. There are already a set subroutines exists in the C# to perform the each actions. We preferred Python to do above task. ----------------------------------- Regards, Shashidhar N.Paragonda shashidhar85 at gmail.com +919900093835 On Thu, Feb 13, 2014 at 4:03 PM, Vaikuntham Jagannath < vjagannath09 at gmail.com> wrote: > For what purpose are you trying to use C# Automation scripts? > > > On Thu, Feb 13, 2014 at 6:29 PM, Shashidhar Paragonda < > shashidhar85 at gmail.com> wrote: > > > Hi, lettuce solved the requirement of doing automation testing. > > I have other requirement i.e I am using Python as scripting tool to > perform > > the automation script for C#. > > Is there any other library which best supports to perform the C# > > automation. > > > > > > ----------------------------------- > > Regards, > > > > Shashidhar N.Paragonda > > shashidhar85 at gmail.com > > +919900093835 > > > > > > On Wed, Feb 12, 2014 at 1:13 PM, Vaikuntham Jagannath < > > vjagannath09 at gmail.com> wrote: > > > > > You could consider using Lettuce [http://lettuce.it/] . It is a BDD > > > framework in python. This could help you to build & maintain the > > automation > > > scripts efficiently in the long run. Hope this helps.. > > > > > > Regards, > > > jagan > > > > > > > > > On Tue, Feb 11, 2014 at 5:17 PM, Shashidhar Paragonda < > > > shashidhar85 at gmail.com> wrote: > > > > > > > Hi > > > > >>> The main requirement is to build autamation script parsing the > > > Gherkin > > > > format. > > > > >>> We planned to use Gherkin format to basically convert the test > > > > use-cases. > > > > >>> Everyone who does manual / automation test, will use Gherkin > format > > > to > > > > generate the test use-cases, so that Gherkin becomes a common format > > > > platform to build test cases. > > > > > > > > > > > > > > > > ----------------------------------- > > > > Regards, > > > > > > > > Shashidhar N.Paragonda > > > > shashidhar85 at gmail.com > > > > +919900093835 > > > > > > > > > > > > On Tue, Feb 11, 2014 at 1:29 PM, Vaikuntham Jagannath < > > > > vjagannath09 at gmail.com> wrote: > > > > > > > > > Hi, > > > > > > > > > > Why do you want to write a parser for the Gherkin format ? If we > can > > > know > > > > > the underlying need, then may be We can suggest you more > effectively. > > > > > > > > > > Regards, > > > > > Jagan > > > > > > > > > > On Tue, Feb 11, 2014 at 2:26 PM, Shashidhar Paragonda < > > > > > shashidhar85 at gmail.com> wrote: > > > > > > > > > > > Hello Python hackers > > > > > > > > > > > > >>> I wanted to write parser for below GHERKIN format, can anyone > > > > suggest > > > > > > best pythonic approach to parse and extract the details from > below > > > eg: > > > > > > > > > > > > >>> My need is to discard the common english words and extract > > rest > > > of > > > > > the > > > > > > text and write entries to XML ( i thought of using XML, please > > > suggest > > > > > any > > > > > > other format storage ). > > > > > > > > > > > > Feature: Password management Scenario: Forgot password Given > a > > > > > > user with email "cukes at cukes.info" exists When I ask for a > > > password > > > > > > reset Then an email with a password reset link should be sent > > > > > > > > > > > > >>> NOTE: Feature, Scenario, Given, When , Then are like keywords > > in > > > > > above > > > > > > text > > > > > > > > > > > > > > > > > > ----------------------------------- > > > > > > Regards, > > > > > > > > > > > > Shashidhar N.Paragonda > > > > > > shashidhar85 at gmail.com > > > > > > +919900093835 > > > > > > _______________________________________________ > > > > > > BangPypers mailing list > > > > > > BangPypers at python.org > > > > > > https://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > > > > _______________________________________________ > > > > > BangPypers mailing list > > > > > BangPypers at python.org > > > > > https://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > > _______________________________________________ > > > > BangPypers mailing list > > > > BangPypers at python.org > > > > https://mail.python.org/mailman/listinfo/bangpypers > > > > > > > _______________________________________________ > > > BangPypers mailing list > > > BangPypers at python.org > > > https://mail.python.org/mailman/listinfo/bangpypers > > > > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > https://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From venkateshk at colitsys.com Fri Feb 14 06:36:29 2014 From: venkateshk at colitsys.com (Venkatesh K) Date: Fri, 14 Feb 2014 11:06:29 +0530 Subject: [BangPypers] Need experienced Python developers and QA Message-ID: Hi, My co. has a short term requirement for experienced developers and QA, in Python, Django, MongoDB, Rest, Celery and Selenium, in Bangalore. Please send your CV to careers at colitsys.com mentioning your Python experience if you are independent and are interested. Best regards, *************************************************************************** Venkatesh K Director, Product Management and Business Development COLLABORATIVE INFOTECH SYSTEMS Private Limited Author: Marketing of Information Technology(on Amazon, flipkartand Landmark ) Web: www.colitsys.com Phone: +91-984-485-2874 *************************************************************************** From devin at nextdrop.org Mon Feb 17 09:43:28 2014 From: devin at nextdrop.org (Devin Miller) Date: Mon, 17 Feb 2014 14:13:28 +0530 Subject: [BangPypers] [JOB] Hacker (Backend/Frontend/Mobile) for Water Startup Message-ID: Position: Hacker (Backend/Frontend/Mobile) for Water Startup Background: NextDrop is expanding and looking for passionate individuals to join our growing tech team. You will specifically be working closely with our beloved Data Loving Hacker to create a seamless user experience for the customers who receive our SMS water alerts, while also creating custom web based technology for the water utility- to enable them to make data driven decisions. Your job will also entail being the guardian and keeper of all our data- which means looking after our custom built SMS/IVR system. Finally, you'll be making custom internal analytics to track all of the important pieces of information - so we can all figure out how to improve and grow our company. You Should Apply For This Job If: You are itching to make your ideas come to life, and create amazing products that have the ability to impact millions of lives. You can take a real world problem, and create a technical solution for it- the prospect of doing things nobody has ever done before excites you. You love data, and truly believe that making data driven decisions will help any organization succeed. You also love the details and have been criticized as being too much of a perfectionist- you won't let something pass if there's even an extra space between a comma and the next word. You love to travel, and you don't like to sit in the same place all the time. Similarly, you enjoy challenges, and love the prospect of doing different things every day. You also love the details: you record everything that goes right, AND everything that goes wrong so you can fix it next time. You believe in the hacker mentality: Fail fast, fail often, but learn every time. But most of all, you are simply passionate about making a real difference in the world, and will do whatever it takes to make that happen. You're a match if: ? You are a web development whiz, but more particularly, you love to use Python (Django web framework), HTML5, SCSS, JavaScript. ? You and interactive maps (Leaflet, Google Maps API, etc.) are best friends (but you are also friends with the nginx web server). ? REST APIs: No Problem. ? Sysadmin and server management- piece of cake ? Android or mobile is a plus but not required. Email your resume and mobile/contact number to team at nextdrop.org http://nextdrop.org/ -- Devin Miller Co-founder & Software Engineer at NextDrop Website: www.nextdrop.org Blog: blog.nextdrop.org Twitter: @nextdrop 98 45 69 5423 (India Mobile) (909) 452-2651 (U.S. Mobile) From careers at doublespring.com Tue Feb 18 10:31:37 2014 From: careers at doublespring.com (Shuhaib Shariff) Date: Tue, 18 Feb 2014 15:01:37 +0530 Subject: [BangPypers] [JOBS] Django Developers Message-ID: DoubleSpring seeks passionate PYTHON / DJANGO developers with experience in building or contributing to Open Source projects. We are constantly rolling out new products so the right individual would be able to write clean code and work in a fast pace environment. We highly value native ability, passion and the right attitude. Requirements - Technical proficiency with Python and Django. - Technical proficiency in JavaScript. - Experience with MySQL / PgSQL. - Experience with MVC design patterns and solid algorithm skills. - 1+ years of industry experience Location: Bangalore How to apply Send your resume to: careers [at] doublespring.com From baiju.m.mail at gmail.com Wed Feb 19 07:47:10 2014 From: baiju.m.mail at gmail.com (Baiju Muthukadan) Date: Tue, 18 Feb 2014 22:47:10 -0800 (PST) Subject: [BangPypers] PyCon India 2014 Call for Sponsors Message-ID: <5304536e.a3b2440a.2b32.ffffacdd@mx.google.com> Hi, I hope you've received the mail regarding call for proposals for PyCon India 2014. This time, I want your help to get more sponsors for the event! If your company is interested in sponsorship, we need you. Sponsors are what make PyCon India a possibility, and sponsorship offers some great values to the generous organizations who support the conference. Check out prospectus at http://in.pycon.org/2014/sponsorship-prospectus.pdf Contact Vijay Kumar at vnbang2003 at gmail.com with any sponsorship inquiries. By sponsoring the conference, your organization will be better connected to the Indian Python community. Your sponsorship helps keep PyCon India affordable and accessible to the widest possible audience. This year, PyCon India 2014 will be taking place from September 26-28 in Bangalore. Check out our site at: http://in.pycon.org/2014 Keep an eye out for news on our blog at http://in.pycon.org/blog/ and follow us on twitter at https://twitter.com/pyconindia and Facebook at https://www.facebook.com/PyConIndia Please forward this mail to other related groups, organizations, companies and individuals who can help us to get some sponsorship. Help us make the event more awesome! Vijay Kumar, Coordinator vnbang2003 at gmail.com Baiju Muthukadan, Publicity Coordinator baiju.m.mail at gmail.com From mak.gnu at gmail.com Wed Feb 19 11:07:00 2014 From: mak.gnu at gmail.com (Mukesh Yadav) Date: Wed, 19 Feb 2014 15:37:00 +0530 Subject: [BangPypers] Managing variable in small scripts. Message-ID: Hi, I normally create small scripts for crons, Sometime I do create multiple modules. My question is how to pass same variable to modules which is being used. e.g. script.py file contans following code *import module * *bucket* = 'some_bucket' object = module.*Class_name*('value'); object.*some_awesome_function*() I want bucket variable should be available in *some_awesome_function. * How to achieve above? -- Regards Mukesh Yadav mukeshyadav.com From gora at mimirtech.com Wed Feb 19 11:18:50 2014 From: gora at mimirtech.com (Gora Mohanty) Date: Wed, 19 Feb 2014 15:48:50 +0530 Subject: [BangPypers] Managing variable in small scripts. In-Reply-To: References: Message-ID: On 19 February 2014 15:37, Mukesh Yadav wrote: > Hi, > I normally create small scripts for crons, Sometime I do create multiple > modules. > My question is how to pass same variable to modules which is being used. > > e.g. > > script.py file contans following code > > *import module * > > *bucket* = 'some_bucket' > > object = module.*Class_name*('value'); > > object.*some_awesome_function*() > > I want bucket variable should be available in *some_awesome_function. * > > How to achieve above? Unless I am missing something, why can't you use: object.some_awesome_function( bucket ) It makes little sense to me to have a class import a variable from a script just to use it in a function. Also, as you are presumably writing these scripts after the class code has already been created, how would the class know where to import from? Regards, Gora From mak.gnu at gmail.com Wed Feb 19 11:51:41 2014 From: mak.gnu at gmail.com (Mukesh Yadav) Date: Wed, 19 Feb 2014 16:21:41 +0530 Subject: [BangPypers] Managing variable in small scripts. In-Reply-To: References: Message-ID: > Unless I am missing something, why can't you use: > object.some_awesome_function( bucket ) > > I can but in my case I have 5+ setting variables, which is not feasible to pass it for each method which it is using. Also, > as you are presumably writing these scripts after the > class code has already been created, how would the > class know where to import from? > I can change the class code and parameter as it is small script. > > Regards, > Gora > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > -- Regards Mukesh Yadav mukeshyadav.com From rohitk at myparichay.in Wed Feb 19 12:06:53 2014 From: rohitk at myparichay.in (Rohit K) Date: Wed, 19 Feb 2014 16:36:53 +0530 Subject: [BangPypers] Managing variable in small scripts. In-Reply-To: References: Message-ID: How about creating a class object *Class Params():* * def __init__(self, **kwargs):* * self.bucket = kwargs['bucket'] * * self.value = kwargs["value"]*..... and while you create instance for module class: # object = module.*Class_name*('value'); instead of this use below *p = Params("value"=value, "bucket"=bucket)object = module.*Class_name*(p); * Inside your function you can use *def some_awesome_function(self):* * print self.bucket* * print self.value* And you are good to go with : *object.*some_awesome_function*() * Thanks, Rohit Kumar On Wed, Feb 19, 2014 at 4:21 PM, Mukesh Yadav wrote: > > Unless I am missing something, why can't you use: > > object.some_awesome_function( bucket ) > > > > I can but in my case I have 5+ setting variables, which is not feasible > to > pass it for each method which it is using. > > Also, > > as you are presumably writing these scripts after the > > class code has already been created, how would the > > class know where to import from? > > > > I can change the class code and parameter as it is small script. > > > > > > Regards, > > Gora > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > https://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > Regards > Mukesh Yadav > mukeshyadav.com > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From hr at ekadantainfotech.com Wed Feb 19 12:03:56 2014 From: hr at ekadantainfotech.com (hr at ekadantainfotech.com) Date: Wed, 19 Feb 2014 16:33:56 +0530 Subject: [BangPypers] [MANPOWER] Python Developers Message-ID: <7b440928e76475e29f5359b4aa2298e9@ekadantainfotech.com> Hi, We are Manpower outsourcing and consulting company, HQ at Bangalore. We can support companies by providing Python Manpower of difference experience on Permanent or Contractual basis. Right from Freshers to 5+ years experienced Python developers we can provide. For any kind of Python related resources feel free to contact us. Thanks, Sruthi From gora at mimirtech.com Wed Feb 19 12:24:54 2014 From: gora at mimirtech.com (Gora Mohanty) Date: Wed, 19 Feb 2014 16:54:54 +0530 Subject: [BangPypers] Managing variable in small scripts. In-Reply-To: References: Message-ID: On 19 February 2014 16:21, Mukesh Yadav wrote: >> Unless I am missing something, why can't you use: >> object.some_awesome_function( bucket ) >> > I can but in my case I have 5+ setting variables, which is not feasible to > pass it for each method which it is using. Why not? If you really wanted, you could use a settings dict. > Also, >> as you are presumably writing these scripts after the >> class code has already been created, how would the >> class know where to import from? >> > > I can change the class code and parameter as it is small script. I would think that this is terrible practice. Regards, Gora From mak.gnu at gmail.com Wed Feb 19 12:27:48 2014 From: mak.gnu at gmail.com (Mukesh Yadav) Date: Wed, 19 Feb 2014 16:57:48 +0530 Subject: [BangPypers] Managing variable in small scripts. In-Reply-To: References: Message-ID: @Rohit thanks for **kwargs example. On Wed, Feb 19, 2014 at 4:36 PM, Rohit K wrote: > How about creating a class object > > *Class Params():* > > * def __init__(self, **kwargs):* > > * self.bucket = kwargs['bucket'] * > > > * self.value = kwargs["value"]*..... > > and while you create instance for module class: > > # object = module.*Class_name*('value'); instead of this use below > > > > *p = Params("value"=value, "bucket"=bucket)object = module.*Class_name*(p); > * > > Inside your function you can use > > *def some_awesome_function(self):* > > * print self.bucket* > > * print self.value* > > And you are good to go with : > > *object.*some_awesome_function*() * > > > Thanks, > Rohit Kumar > > > > > > > On Wed, Feb 19, 2014 at 4:21 PM, Mukesh Yadav wrote: > > > > Unless I am missing something, why can't you use: > > > object.some_awesome_function( bucket ) > > > > > > I can but in my case I have 5+ setting variables, which is not feasible > > to > > pass it for each method which it is using. > > > > Also, > > > as you are presumably writing these scripts after the > > > class code has already been created, how would the > > > class know where to import from? > > > > > > > I can change the class code and parameter as it is small script. > > > > > > > > > > Regards, > > > Gora > > > _______________________________________________ > > > BangPypers mailing list > > > BangPypers at python.org > > > https://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > > > > -- > > Regards > > Mukesh Yadav > > mukeshyadav.com > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > https://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > -- Regards Mukesh Yadav mukeshyadav.com From mak.gnu at gmail.com Wed Feb 19 12:31:27 2014 From: mak.gnu at gmail.com (Mukesh Yadav) Date: Wed, 19 Feb 2014 17:01:27 +0530 Subject: [BangPypers] Managing variable in small scripts. In-Reply-To: References: Message-ID: > > I can change the class code and parameter as it is small script. > > I would think that this is terrible practice. > Would love to more about it. > > Regards, > Gora > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > -- Regards Mukesh Yadav mukeshyadav.com From foxrun2005 at gmail.com Wed Feb 19 13:13:47 2014 From: foxrun2005 at gmail.com (kamalakar06 .) Date: Wed, 19 Feb 2014 17:43:47 +0530 Subject: [BangPypers] Need help Extracting data properly in python Message-ID: I have a file like this(Tabular data) : 0 1 CEN/4 1.0000e3 3.000e3 4.000e-3 1.000e-3 3.000e3 5.000e3 11 2.000e3 3.000e4 6.000e3 1.000e4 1.000e4 1.000e5 12 1.00e4 1.000e5 1.000e6 2.00e4 2.000e5 1.000e4 0 2 CEN/4 1.0000e3 3.000e3 4.000e-3 1.000e-3 3.000e3 5.000e3 41 2.000e3 3.000e4 6.000e3 1.000e4 1.000e4 1.000e5 50 1.00e4 1.000e5 1.000e6 2.00e4 2.000e5 1.000e4 I want to extract the data column wise. How do i do that My code is like this : import os f1=open('newdata1.txt','w') L = [] for index, line in enumerate(open('Trial_1.txt','r')): #print index if index < 0: #skip first 5 lines continue else: line =line.split() L.append('%s\t%s\t %s\t %s\t%s\n' %(line[0], line[1],line[2],line[3],line[4])) f1.writelines(L) f1.close() Output looks like this: 0 1 CEN/4 1.0000e3 3.000e3 1.000e-3 3.000e3 5.000e3 Now the code is not extracting the column data properly,since there is tab space after first line . How to give tab space in python wherever space is there to extract the data properly.Where to modify my code. From shyran at gmail.com Wed Feb 19 13:29:52 2014 From: shyran at gmail.com (Kulkarni, Shreyas) Date: Wed, 19 Feb 2014 17:59:52 +0530 Subject: [BangPypers] Need help Extracting data properly in python In-Reply-To: References: Message-ID: <48F4E0D2-127F-4FC8-81B9-54842A4A0310@gmail.com> if this is a valid tab-seperated file, you could try parsing it using csv module with dialect set to '\t' or 'excel-tab' maybe? shreyas On Feb 19, 2014, at 5:43 PM, "kamalakar06 ." wrote: > I have a file like this(Tabular data) : > > 0 1 CEN/4 1.0000e3 3.000e3 4.000e-3 > 1.000e-3 3.000e3 5.000e3 > > 11 2.000e3 3.000e4 6.000e3 > 1.000e4 1.000e4 1.000e5 > > 12 1.00e4 1.000e5 1.000e6 > 2.00e4 2.000e5 1.000e4 > > 0 2 CEN/4 1.0000e3 3.000e3 4.000e-3 > 1.000e-3 3.000e3 5.000e3 > > 41 2.000e3 3.000e4 6.000e3 > 1.000e4 1.000e4 1.000e5 > > 50 1.00e4 1.000e5 1.000e6 > 2.00e4 2.000e5 1.000e4 > > > > I want to extract the data column wise. How do i do that > > My code is like this : > > import os > > f1=open('newdata1.txt','w') > L = [] > for index, line in enumerate(open('Trial_1.txt','r')): > #print index > if index < 0: #skip first 5 lines > continue > else: > line =line.split() > L.append('%s\t%s\t %s\t %s\t%s\n' %(line[0], > line[1],line[2],line[3],line[4])) > > > f1.writelines(L) > > f1.close() > > > > Output looks like this: > > 0 1 CEN/4 1.0000e3 3.000e3 > 1.000e-3 3.000e3 5.000e3 > > > Now the code is not extracting the column data properly,since there is tab > space after first line . How to give tab space in python wherever space is > there to extract the data properly.Where to modify my code. > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers From gora at mimirtech.com Wed Feb 19 18:37:06 2014 From: gora at mimirtech.com (Gora Mohanty) Date: Wed, 19 Feb 2014 23:07:06 +0530 Subject: [BangPypers] Managing variable in small scripts. In-Reply-To: References: Message-ID: On 19 February 2014 17:01, Mukesh Yadav wrote: >> > I can change the class code and parameter as it is small script. >> >> I would think that this is terrible practice. >> > > Would love to more about it. Passing multiple arguments to the function seems to be the cleanest approach, as it separates out variables in the class from those in a specific usage of it. Not only is this pretty standard in Python, reworking the class every time for a new script makes no sense to me. Whether the multiple arguments are passed as such, or as keyword arguments is a matter of design, and a bit of preference. Regards, Gora From abdulmuneer at gmail.com Thu Feb 20 09:56:37 2014 From: abdulmuneer at gmail.com (Abdul Muneer) Date: Thu, 20 Feb 2014 14:26:37 +0530 Subject: [BangPypers] Need help Extracting data properly in python In-Reply-To: <48F4E0D2-127F-4FC8-81B9-54842A4A0310@gmail.com> References: <48F4E0D2-127F-4FC8-81B9-54842A4A0310@gmail.com> Message-ID: There is an old python package which does it neatly http://www.astro.rug.nl/~breddels/python/tableio.html Regards, Abdul Muneer -- Follow me on Twitter: @abdulmuneer On Wed, Feb 19, 2014 at 5:59 PM, Kulkarni, Shreyas wrote: > if this is a valid tab-seperated file, you could try parsing it using csv > module with dialect set to '\t' or 'excel-tab' maybe? > > shreyas > > On Feb 19, 2014, at 5:43 PM, "kamalakar06 ." wrote: > > > I have a file like this(Tabular data) : > > > > 0 1 CEN/4 1.0000e3 3.000e3 4.000e-3 > > 1.000e-3 3.000e3 5.000e3 > > > > 11 2.000e3 3.000e4 6.000e3 > > 1.000e4 1.000e4 1.000e5 > > > > 12 1.00e4 1.000e5 1.000e6 > > 2.00e4 2.000e5 1.000e4 > > > > 0 2 CEN/4 1.0000e3 3.000e3 4.000e-3 > > 1.000e-3 3.000e3 5.000e3 > > > > 41 2.000e3 3.000e4 6.000e3 > > 1.000e4 1.000e4 1.000e5 > > > > 50 1.00e4 1.000e5 1.000e6 > > 2.00e4 2.000e5 1.000e4 > > > > > > > > I want to extract the data column wise. How do i do that > > > > My code is like this : > > > > import os > > > > f1=open('newdata1.txt','w') > > L = [] > > for index, line in enumerate(open('Trial_1.txt','r')): > > #print index > > if index < 0: #skip first 5 lines > > continue > > else: > > line =line.split() > > L.append('%s\t%s\t %s\t %s\t%s\n' %(line[0], > > line[1],line[2],line[3],line[4])) > > > > > > f1.writelines(L) > > > > f1.close() > > > > > > > > Output looks like this: > > > > 0 1 CEN/4 1.0000e3 3.000e3 > > 1.000e-3 3.000e3 5.000e3 > > > > > > Now the code is not extracting the column data properly,since there is > tab > > space after first line . How to give tab space in python wherever space > is > > there to extract the data properly.Where to modify my code. > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > https://mail.python.org/mailman/listinfo/bangpypers > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From baiju.m.mail at gmail.com Thu Feb 20 10:09:07 2014 From: baiju.m.mail at gmail.com (Baiju M) Date: Thu, 20 Feb 2014 14:39:07 +0530 Subject: [BangPypers] Need help Extracting data properly in python In-Reply-To: References: <48F4E0D2-127F-4FC8-81B9-54842A4A0310@gmail.com> Message-ID: May be this one will be useful: https://pypi.python.org/pypi/texttable On Thu, Feb 20, 2014 at 2:26 PM, Abdul Muneer wrote: > There is an old python package which does it neatly > http://www.astro.rug.nl/~breddels/python/tableio.html > > Regards, > Abdul Muneer > > -- > Follow me on Twitter: @abdulmuneer > > > On Wed, Feb 19, 2014 at 5:59 PM, Kulkarni, Shreyas wrote: > >> if this is a valid tab-seperated file, you could try parsing it using csv >> module with dialect set to '\t' or 'excel-tab' maybe? >> >> shreyas >> >> On Feb 19, 2014, at 5:43 PM, "kamalakar06 ." wrote: >> >> > I have a file like this(Tabular data) : >> > >> > 0 1 CEN/4 1.0000e3 3.000e3 4.000e-3 >> > 1.000e-3 3.000e3 5.000e3 >> > >> > 11 2.000e3 3.000e4 6.000e3 >> > 1.000e4 1.000e4 1.000e5 >> > >> > 12 1.00e4 1.000e5 1.000e6 >> > 2.00e4 2.000e5 1.000e4 >> > >> > 0 2 CEN/4 1.0000e3 3.000e3 4.000e-3 >> > 1.000e-3 3.000e3 5.000e3 >> > >> > 41 2.000e3 3.000e4 6.000e3 >> > 1.000e4 1.000e4 1.000e5 >> > >> > 50 1.00e4 1.000e5 1.000e6 >> > 2.00e4 2.000e5 1.000e4 >> > >> > >> > >> > I want to extract the data column wise. How do i do that >> > >> > My code is like this : >> > >> > import os >> > >> > f1=open('newdata1.txt','w') >> > L = [] >> > for index, line in enumerate(open('Trial_1.txt','r')): >> > #print index >> > if index < 0: #skip first 5 lines >> > continue >> > else: >> > line =line.split() >> > L.append('%s\t%s\t %s\t %s\t%s\n' %(line[0], >> > line[1],line[2],line[3],line[4])) >> > >> > >> > f1.writelines(L) >> > >> > f1.close() >> > >> > >> > >> > Output looks like this: >> > >> > 0 1 CEN/4 1.0000e3 3.000e3 >> > 1.000e-3 3.000e3 5.000e3 >> > >> > >> > Now the code is not extracting the column data properly,since there is >> tab >> > space after first line . How to give tab space in python wherever space >> is >> > there to extract the data properly.Where to modify my code. >> > _______________________________________________ >> > BangPypers mailing list >> > BangPypers at python.org >> > https://mail.python.org/mailman/listinfo/bangpypers >> >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> https://mail.python.org/mailman/listinfo/bangpypers >> > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers From babmis at outlook.com Fri Feb 21 10:24:32 2014 From: babmis at outlook.com (bab mis) Date: Fri, 21 Feb 2014 14:54:32 +0530 Subject: [BangPypers] How can i use ExtendedInterpolation and BasicInterpolation at a time with configparser example ${COMMON:home}/%(tool_name)s Message-ID: From noufal at nibrahim.net.in Fri Feb 21 14:40:38 2014 From: noufal at nibrahim.net.in (Noufal Ibrahim KV) Date: Fri, 21 Feb 2014 19:10:38 +0530 Subject: [BangPypers] How can i use ExtendedInterpolation and BasicInterpolation at a time with configparser example ${COMMON:home}/%(tool_name)s In-Reply-To: (bab mis's message of "Fri, 21 Feb 2014 14:54:32 +0530") References: Message-ID: <87a9dkziqx.fsf@sanitarium.localdomain> Please use the body of the email to ask your question and subject header for a short summary. On Fri, Feb 21 2014, bab mis wrote: [...] -- Cordially, Noufal http://nibrahim.net.in From bnayak at icubecsi.com Mon Feb 24 10:55:50 2014 From: bnayak at icubecsi.com (Bidyut Prava Nayak) Date: Mon, 24 Feb 2014 09:55:50 +0000 Subject: [BangPypers] Welcome to the "BangPypers" mailing list In-Reply-To: References: Message-ID: Hi, ICUBE Consulting services Pvt Ltd. seeks passionate PYTHON / DJANGO developers with experience in product development projects. Individual would be required to write clean code and work in a fast pace environment. We highly value native ability, passion and the right attitude. Requirements - Technical proficiency with Python and Django. - Technical proficiency in jQuery. - Experience with MySQL. - Experience with OOPS and MVC architecture and solid algorithm skills. - 2+ years of industry experience Location: preferably Hyderabad but remote working also works. How to apply Send your resume to: bnayak at icubecsi.com Thanks. Best Regards, Bidyut Hr & Admin Executive |iCube CSI, Hyderabad Mobile# 7680876444|Ph# 040 40404328 bnayak at icubecsi.com |www.icubecsi.com Ranked # 6 in Business Journal 50 fastest growing companies in NE Florida *** This message and any attachments are confidential and may also be legally privileged. If you are not the intended recipient, please notify the sender immediately. You must not copy this message or use it for any purpose nor publish or disclose its contents to any other person. -----Original Message----- From: BangPypers [mailto:bangpypers-bounces+bnayak=icubecsi.com at python.org] On Behalf Of bangpypers-request at python.org Sent: Monday, February 24, 2014 3:24 PM To: Bidyut Prava Nayak Subject: Welcome to the "BangPypers" mailing list Welcome to the BangPypers at python.org mailing list! Please read the following guidelines from the list moderator(s) before posting to the group. ======================================== This is the mailing list for the Python Users Group - Bangalore, India. This group is for discussions related to the Python programming language. We welcome all kinds of discussions related to Python programming and software development. Please do not use the list for posting non-relevant messages. You can get the best out of this mailing list if you follow these guidelines. 1. Please try to follow general mailing list etiquette when posting to the group. 2. You will have a much more chance of getting good answers from the list if you word your question/post properly. 3. Do not cross post to other lists when posting to this list. 4. When replying to threads, try not to top-post. Instead find the section relevant to your post and bottom post below it. 5. The list removes all attachments, so please don't send attachments to the list - if you want to post some code, use a public code repository like pastebin and send the link to the group. 6. Please don't ask trivial questions whose answers can be found by a minute of Google search. If you want genuine help with your programming problem, send your post with sufficient context and comments. 7. Do not use this list for very generic discussions on the Python community.There are other mailing lists devoted to it. For example, 7.1. For discussions on PyCon India - use the inpycon mailing list. 7.2. For discussions related to community inclusion and diversity, use the diversity mailing list. 8. Do not take your personal agendas to the mailing list. If you want to prove a point with respect to anything related to Python or Python community, go somewhere else or take your issues out directly to the people whom you want to discuss it. 9. This group has a very strict anti-spamming policy. Members who send spam/advertisement emails to the list will be first given a warning and further removed and banned from the group. However if it is found that a member has no track record of sending genuine messages to group, he will be banned the first time he sends a spam email to the group, without a warning. 10. The group has a liberal policy towards job postings related to Python programming positions. Postings from employees, HR personnel/HR consultants for genuine opportunities in Python programming jobs is welcome. Similarly commercial postings regarding Python training opportunities are also allowed. However, please don't use the group to send non-relevant job emails or mass marketing spams in the disguise of job postings. Such messages will be considered as spam and strict action taken, including banning the poster's email address. If you are posting a job opening, please prefix the message subject with [JOB] or [JOBS]. If you are posting a training opportunity, please prefix the subject with [Training]. For any genuine commercial message apart from these, please prefix the subject with [Commercial]. Please follow the guidelines to make your stay at BangPypers enjoyable and fruitful to you and the community. Thank you, List Administrator(s) ======================================== To post to this list, send your message to: bangpypers at python.org General information about the mailing list is at: https://mail.python.org/mailman/listinfo/bangpypers If you ever want to unsubscribe or change your options (eg, switch to or from digest mode, change your password, etc.), visit your subscription page at: https://mail.python.org/mailman/options/bangpypers/bnayak%40icubecsi.com You can also make such adjustments via email by sending a message to: BangPypers-request at python.org with the word `help' in the subject or body (don't include the quotes), and you will get back a message with instructions. You must know your password to change your options (including changing the password, itself) or to unsubscribe without confirmation. It is: sonusimmi Normally, Mailman will remind you of your python.org mailing list passwords once every month, although you can disable this if you prefer. This reminder will also include instructions on how to unsubscribe or change your account options. There is also a button on your options page that will email your current password to you. From b.ghose at gmail.com Mon Feb 24 11:00:16 2014 From: b.ghose at gmail.com (Baishampayan Ghose) Date: Mon, 24 Feb 2014 15:30:16 +0530 Subject: [BangPypers] Welcome to the "BangPypers" mailing list In-Reply-To: References: Message-ID: Sorry Bidyut, it seems you don't understand how mailing lists & hiring online actually works. What you did just now is not only ineffective, but it's downright wrong. Please read the list rules before sending such emails again. Regards, BG On Mon, Feb 24, 2014 at 3:25 PM, Bidyut Prava Nayak wrote: > Hi, > > ICUBE Consulting services Pvt Ltd. seeks passionate PYTHON / DJANGO developers with experience in product development projects. > Individual would be required to write clean code and work in a fast pace environment. > > We highly value native ability, passion and the right attitude. > > Requirements > - Technical proficiency with Python and Django. > - Technical proficiency in jQuery. > - Experience with MySQL. > - Experience with OOPS and MVC architecture and solid algorithm skills. > - 2+ years of industry experience > > Location: preferably Hyderabad but remote working also works. > > How to apply > Send your resume to: bnayak at icubecsi.com > > > Thanks. > > Best Regards, > Bidyut > Hr & Admin Executive |iCube CSI, Hyderabad > Mobile# 7680876444|Ph# 040 40404328 > bnayak at icubecsi.com |www.icubecsi.com > > Ranked # 6 in Business Journal 50 fastest growing companies in NE Florida > *** > This message and any attachments are confidential and may also be legally privileged. If you are not the intended recipient, please notify the sender immediately. You must not copy this message or use it for any purpose nor publish or disclose its contents to any other person. > > -----Original Message----- > From: BangPypers [mailto:bangpypers-bounces+bnayak=icubecsi.com at python.org] On Behalf Of bangpypers-request at python.org > Sent: Monday, February 24, 2014 3:24 PM > To: Bidyut Prava Nayak > Subject: Welcome to the "BangPypers" mailing list > > Welcome to the BangPypers at python.org mailing list! Please read the following guidelines from the list moderator(s) before posting to the group. > > ======================================== > > This is the mailing list for the Python Users Group - Bangalore, India. > > This group is for discussions related to the Python programming language. We welcome all kinds of discussions related to Python programming and software development. Please do not use the list for posting non-relevant messages. > > You can get the best out of this mailing list if you follow these guidelines. > > 1. Please try to follow general mailing list etiquette when posting to the group. > > 2. You will have a much more chance of getting good answers from the list if you word your question/post properly. > > 3. Do not cross post to other lists when posting to this list. > > 4. When replying to threads, try not to top-post. Instead find the section relevant to your post and bottom post below it. > > 5. The list removes all attachments, so please don't send attachments to the list - if you want to post some code, use a public code repository like pastebin and send the link to the group. > > 6. Please don't ask trivial questions whose answers can be found by a minute of Google search. If you want genuine help with your programming problem, send your post with sufficient context and comments. > > 7. Do not use this list for very generic discussions on the Python community.There are other mailing lists devoted to it. For example, > > 7.1. For discussions on PyCon India - use the inpycon mailing list. > 7.2. For discussions related to community inclusion and diversity, use the diversity mailing list. > > 8. Do not take your personal agendas to the mailing list. If you want to prove a point with respect to anything related to Python or Python community, go somewhere else or take your issues out directly to the people whom you want to discuss it. > > 9. This group has a very strict anti-spamming policy. Members who send spam/advertisement emails to the list will be first given a warning and further removed and banned from the group. However if it is found that a member has no track record of sending genuine messages to group, he will be banned the first time he sends a spam email to the group, without a warning. > > 10. The group has a liberal policy towards job postings related to Python programming positions. Postings from employees, HR personnel/HR consultants for genuine opportunities in Python programming jobs is welcome. Similarly commercial postings regarding Python training opportunities are also allowed. However, please don't use the group to send non-relevant job emails or mass marketing spams in the disguise of job postings. Such messages will be considered as spam and strict action taken, including banning the poster's email address. > > If you are posting a job opening, please prefix the message subject with [JOB] or [JOBS]. If you are posting a training opportunity, please prefix the subject with [Training]. For any genuine commercial message apart from these, please prefix the subject with [Commercial]. > > > Please follow the guidelines to make your stay at BangPypers enjoyable and fruitful to you and the community. > > Thank you, > > List Administrator(s) > > ======================================== > > To post to this list, send your message to: > > bangpypers at python.org > > General information about the mailing list is at: > > https://mail.python.org/mailman/listinfo/bangpypers > > If you ever want to unsubscribe or change your options (eg, switch to or from digest mode, change your password, etc.), visit your subscription page at: > > https://mail.python.org/mailman/options/bangpypers/bnayak%40icubecsi.com > > > You can also make such adjustments via email by sending a message to: > > BangPypers-request at python.org > > with the word `help' in the subject or body (don't include the quotes), and you will get back a message with instructions. > > You must know your password to change your options (including changing the password, itself) or to unsubscribe without confirmation. It is: > > sonusimmi > > Normally, Mailman will remind you of your python.org mailing list passwords once every month, although you can disable this if you prefer. This reminder will also include instructions on how to unsubscribe or change your account options. There is also a button on your options page that will email your current password to you. > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers -- Baishampayan Ghose b.ghose at gmail.com From sangeeth.saravanaraj at gmail.com Tue Feb 25 01:49:51 2014 From: sangeeth.saravanaraj at gmail.com (Sangeeth Saravanaraj) Date: Tue, 25 Feb 2014 06:19:51 +0530 Subject: [BangPypers] Class decorator to capture the creation and deletion of objects Message-ID: This question was initially asked in tutor at python.org; Now I am widening the audience to gain attention. I want to create a decorator which should do the following things: => When an object of the decorated class is created, the objects name (say the value of the incoming "id" argument) should be stored as a record in a table in a database. => When an object of the decorated class is deleted, the record with this deleted objects name (i.e. object.id) should be removed from the table. Now, for example - consider the following snippet: @saveme class A(object): def __init__(self, id): self.id = id @saveme class B(object): def __init__(self, id): self.id = id "saveme" should do what I have explained earlier. a1 = A("A1") a2 = A("A2") a3 = A("A3") b1 = B("B1") b2 = B("B2") At this point if I query and print all the records in a table, I should get the following output: ["A1", "A2", "A3", "B1", "B2"] del a1 del a2 del a3 del b1 del b2 At this point, all entries in the table should be deleted; query should return an empty list! And, I want to highlight that the classes that are being decorated with "saveme" can de derived classes too [which initialises its base classes using super() method]! Now the following is what I have tried: class saveme(object): def __init__(self, klass): print "saveme::__init__()" self._klass = klass def __call__(self, *args, **kwargs): print "saveme::__call__()" obj = self._klass(*args, **kwargs) # creation of DB record will happen here! # i.e. something like add_to_db(kwargs.get("id")) return obj def __del__(self): # deletion of DB record will happen here! # i.e. something like remove_from_db(id) # TODO: how to retrieve the "id" here?! print "saveme::__del__()" class Parent1(object): def __init__(self): print "Parent1:: __init__()" super(Parent1, self).__init__() class Parent2(object): def __init__(self): print "Parent2:: __init__()" super(Parent2, self).__init__() @saveme class A(Parent1, Parent2): def __init__(self, id): print "A::__init__()" self.id = id #super(A, self).__init__() #@saveme #class B(object): # def __init__(self, id): # print "B::__init__()" # self.id = id def main(): a1 = A(id="A1") # b1 = B(id="B1") if __name__ == "__main__": main() When executed the above, I ran in to the following: saveme::__init__() saveme::__call__() A::__init__() Traceback (most recent call last): File "1.py", line 54, in main() File "1.py", line 50, in main a1 = A(id="A1") File "1.py", line 10, in __call__ obj = self._klass(*args, **kwargs) File "1.py", line 39, in __init__ super(A, self).__init__() TypeError: must be type, not saveme saveme::__del__() When I commented "super(A, self).__init__()" in the class A :: __init__() method, it returned an object of type A and I was able to see the prints in the __call__ and __del__ methods but the __init__() methods of the base classes (Parent1 & Parent2) were not called! >From the error message, what I could understand is - the object returned by saveme::__call__() is not of type A but of type saveme. But when I put a print in the saveme::__call__() I could see it returns an object of type A and not saveme. Now the question is - with this approach to capture the initiation and deletion events of an object, how do I initialise the base classes using super()? Or, is there any other better way to capture the __call__ and __del__ events for an object of a certain class - if so, how?! Thank you, Sangeeth PS: http://stackoverflow.com/questions/21826854/typeerror-when-using-super-method-with-class-decorator-for-a-derived-class From shabda at agiliq.com Tue Feb 25 13:54:07 2014 From: shabda at agiliq.com (Shabda Raaj) Date: Tue, 25 Feb 2014 18:24:07 +0530 Subject: [BangPypers] Code Review Request: Django-secure-login Message-ID: I just released a new version of django-secure-login and I would like to get some feedback. This app claims to add various checks around login and registration, and I would like to make sure I am not making any obvious mistakes, which actually degrade security. On github: https://github.com/agiliq/django-secure-login On pypi: https://pypi.python.org/pypi/django-secure-login/0.3.2 -- Thanks, Shabda Agiliq.com - Building Amazing Apps agiliq.com/blog/ | github.com/agiliq Skype: shabda.raaj From rafi at creyo.com Tue Feb 25 23:06:59 2014 From: rafi at creyo.com (Mohammed Rafi) Date: Wed, 26 Feb 2014 02:06:59 +0400 Subject: [BangPypers] Let's build Web Applications... Message-ID: Hi, If you are passionate django developer or front end developer, let's team together and start building world class web applications. We will setup a small team in Bangalore and start building web applications. I will take care of your salary, work space and other nitty-gritty. If you are really passionate about creating web applications, please reply. We will start slow and steady and build a world-class team in the days to come. I am an internet veteran having founded a Web Development company in Bangalore earlier. I will take all other responsibilities and need your focus and efforts on development. You will work full-time and this is a long term plan (we will work in stealth mode initially) and the idea is make a centre of excellence in web application development. Let's build the next BIG project from Bangalore. Ready guys? Kind Regards Mohammed Rafi Creyo Brand Solutions Level 41,Emirates Tower Sheikh Zayed Road Dubai, UAE T :+971 4 319 7709 M :+97155-3645003 email :rafi at creyo.com web:www.creyo.com From ppc.lists at gmail.com Wed Feb 26 10:40:15 2014 From: ppc.lists at gmail.com (Pradip Caulagi) Date: Wed, 26 Feb 2014 15:10:15 +0530 Subject: [BangPypers] Code Review Request: Django-secure-login In-Reply-To: References: Message-ID: <530DB67F.7090800@gmail.com> On Tuesday 25 February 2014 06:24 PM, Shabda Raaj wrote: > I just released a new version of django-secure-login and I would like > to get some feedback. This app claims to add various checks around > login and registration, and I would like to make sure I am not making > any obvious mistakes, which actually degrade security. > > On github: > > https://github.com/agiliq/django-secure-login I have a couple of thoughts - * Locking out users can be used for denial of service. I don't think it is recommended. * Can you use/expose signals so that we don't have to always use inheritance to customize behaviour? Also, it is not clear what license this is. Is it Apache or MIT/BSD? -- Pradip P Caulagi http://caulagi.com