From nitin.nitp at gmail.com Tue Jun 2 15:58:48 2015 From: nitin.nitp at gmail.com (Nitin Kumar) Date: Tue, 2 Jun 2015 19:28:48 +0530 Subject: [BangPypers] Fwd: [psf-members-ann] PSF Board of Directors Election Results In-Reply-To: <556DAA1E.802@python.org> References: <556DAA1E.802@python.org> Message-ID: Congrats kushal. ---------- Forwarded message ---------- From: "M.-A. Lemburg" Date: 02-Jun-2015 7:08 PM Subject: [psf-members-ann] PSF Board of Directors Election Results To: "PSF Members Announcements" Cc: [On behalf of Ian Cordasco, our election administrator...] Hey all, Yesterday I tallied the results of the PSF Board of Directors Election for the 2015-2016 term. I compiled the results here: https://gist.github.com/sigmavirus24/13c719f5047ed11ab649 In short we had 12 people win (by vote count): - Nick Coghlan - Diana Clarke - Van Lindberg - Lynn Root - Alex Gaynor - Marc-Andre Lemburg - Carol Willing - Naomi Ceder - Anna Ossowski - Carrie Anne Philbin - Kushal Das - Ashwini Oruganti I spoke with David and in the past, ties have been broken with code such as: if random.random() < 0.5: print('Candidate A') else: print('Candidate B') So in following with that, I ran that code and came up with the 11th director: Ashwini Oruganti. For some amount of verifiability, I recorded the run of that script: https://asciinema.org/a/cm2gck0j1w9k9fqdaq5ezsags Here, in case you didn't guess, AO is Ashwini Oruganti and KD is Kushal Das. The announcement will be on the PSF Blog shortly thanks to Mary Ann Sushinsky. Cheers, Ian _______________________________________________ psf-members-announce mailing list psf-members-announce at python.org https://mail.python.org/mailman/listinfo/psf-members-announce From anandpillai at letterboxes.org Wed Jun 3 08:13:25 2015 From: anandpillai at letterboxes.org (Anand B Pillai) Date: Wed, 03 Jun 2015 11:43:25 +0530 Subject: [BangPypers] Fwd: [psf-members-ann] PSF Board of Directors Election Results In-Reply-To: References: <556DAA1E.802@python.org> Message-ID: <556E9B05.8010807@letterboxes.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 02 June 2015 07:28 PM, Nitin Kumar wrote: > Congrats kushal. I think you didn't read the article all the way to the end. > ---------- Forwarded message ---------- From: "M.-A. Lemburg" > Date: 02-Jun-2015 7:08 PM Subject: > [psf-members-ann] PSF Board of Directors Election Results To: "PSF > Members Announcements" Cc: > > [On behalf of Ian Cordasco, our election administrator...] > > Hey all, > > Yesterday I tallied the results of the PSF Board of Directors > Election for the 2015-2016 term. I compiled the results here: > https://gist.github.com/sigmavirus24/13c719f5047ed11ab649 > > In short we had 12 people win (by vote count): > > - Nick Coghlan - Diana Clarke - Van Lindberg - Lynn Root - Alex > Gaynor - Marc-Andre Lemburg - Carol Willing - Naomi Ceder - Anna > Ossowski - Carrie Anne Philbin - Kushal Das - Ashwini Oruganti > > I spoke with David and in the past, ties have been broken with code > such as: > > if random.random() < 0.5: print('Candidate A') else: > print('Candidate B') > > So in following with that, I ran that code and came up with the > 11th director: Ashwini Oruganti. For some amount of verifiability, > I recorded the run of that script: > https://asciinema.org/a/cm2gck0j1w9k9fqdaq5ezsags > > Here, in case you didn't guess, AO is Ashwini Oruganti and KD is > Kushal Das. > > The announcement will be on the PSF Blog shortly thanks to Mary > Ann Sushinsky. > > Cheers, Ian _______________________________________________ > psf-members-announce mailing list psf-members-announce at python.org > https://mail.python.org/mailman/listinfo/psf-members-announce > _______________________________________________ BangPypers mailing > list BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > - -- Regards, - --Anand - ---------------------------- Software Architect/Consultant anandpillai at letterboxes.org Cell: +919880078014 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJVbpsFAAoJEHKU2n17CpvD84IH/1eOfsyayaeghOF8vzhthPU/ DLoqas9Jkt8Teq3Pnqbv9pF24xdO6ExuTVdm0XhLGvYGlzXGB1jZGQfys4sDSl2X /HbtT8bHcz5fLOnKiqA/A8xB0qS0JiH8z01O6tMEgX++Wn8N39liCt+eBFb6+lFz bzgAZNTOxuA86bTACaA/F3r6StsHBbGPqe9epIjPo3NL1sDT/qojuYFCf82++QYq vsd1N9Jz/iIBNNWigfCpccYIBUs7ryjAXegyOnieqsAq4ToT4mK+W5JuluSFoiKT aXU95FdAGQnhMrTe0oPsnEOd1e8UUyb8pfEGQhhrdDONICJfjv3e6LFlNBzqT+4= =uxOm -----END PGP SIGNATURE----- From nitin.nitp at gmail.com Wed Jun 3 08:21:05 2015 From: nitin.nitp at gmail.com (Nitin Kumar) Date: Wed, 3 Jun 2015 11:51:05 +0530 Subject: [BangPypers] Fwd: [psf-members-ann] PSF Board of Directors Election Results In-Reply-To: <556E9B05.8010807@letterboxes.org> References: <556DAA1E.802@python.org> <556E9B05.8010807@letterboxes.org> Message-ID: Ohh. My Bad Nitin Kr On Wed, Jun 3, 2015 at 11:43 AM, Anand B Pillai wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Tuesday 02 June 2015 07:28 PM, Nitin Kumar wrote: > > Congrats kushal. > > I think you didn't read the article all the way to the end. > > > ---------- Forwarded message ---------- From: "M.-A. Lemburg" > > Date: 02-Jun-2015 7:08 PM Subject: > > [psf-members-ann] PSF Board of Directors Election Results To: "PSF > > Members Announcements" Cc: > > > > [On behalf of Ian Cordasco, our election administrator...] > > > > Hey all, > > > > Yesterday I tallied the results of the PSF Board of Directors > > Election for the 2015-2016 term. I compiled the results here: > > https://gist.github.com/sigmavirus24/13c719f5047ed11ab649 > > > > In short we had 12 people win (by vote count): > > > > - Nick Coghlan - Diana Clarke - Van Lindberg - Lynn Root - Alex > > Gaynor - Marc-Andre Lemburg - Carol Willing - Naomi Ceder - Anna > > Ossowski - Carrie Anne Philbin - Kushal Das - Ashwini Oruganti > > > > I spoke with David and in the past, ties have been broken with code > > such as: > > > > if random.random() < 0.5: print('Candidate A') else: > > print('Candidate B') > > > > So in following with that, I ran that code and came up with the > > 11th director: Ashwini Oruganti. For some amount of verifiability, > > I recorded the run of that script: > > https://asciinema.org/a/cm2gck0j1w9k9fqdaq5ezsags > > > > Here, in case you didn't guess, AO is Ashwini Oruganti and KD is > > Kushal Das. > > > > The announcement will be on the PSF Blog shortly thanks to Mary > > Ann Sushinsky. > > > > Cheers, Ian _______________________________________________ > > psf-members-announce mailing list psf-members-announce at python.org > > https://mail.python.org/mailman/listinfo/psf-members-announce > > _______________________________________________ BangPypers mailing > > list BangPypers at python.org > > https://mail.python.org/mailman/listinfo/bangpypers > > > > > - -- > Regards, > > - --Anand > > - ---------------------------- > Software Architect/Consultant > anandpillai at letterboxes.org > > Cell: +919880078014 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1 > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iQEcBAEBAgAGBQJVbpsFAAoJEHKU2n17CpvD84IH/1eOfsyayaeghOF8vzhthPU/ > DLoqas9Jkt8Teq3Pnqbv9pF24xdO6ExuTVdm0XhLGvYGlzXGB1jZGQfys4sDSl2X > /HbtT8bHcz5fLOnKiqA/A8xB0qS0JiH8z01O6tMEgX++Wn8N39liCt+eBFb6+lFz > bzgAZNTOxuA86bTACaA/F3r6StsHBbGPqe9epIjPo3NL1sDT/qojuYFCf82++QYq > vsd1N9Jz/iIBNNWigfCpccYIBUs7ryjAXegyOnieqsAq4ToT4mK+W5JuluSFoiKT > aXU95FdAGQnhMrTe0oPsnEOd1e8UUyb8pfEGQhhrdDONICJfjv3e6LFlNBzqT+4= > =uxOm > -----END PGP SIGNATURE----- > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From sunil at planmytour.in Fri Jun 5 11:33:58 2015 From: sunil at planmytour.in (Sunil Gupta) Date: Fri, 5 Jun 2015 15:03:58 +0530 Subject: [BangPypers] Fwd: Help!!! Python/Django & WKHTMLTOPDF In-Reply-To: References: Message-ID: Hi All, We are facing the problem of creating the HTML to PDF in ubuntu.The package wkhtmltopdf is working fine on windows but when we integrated my code onto ubuntu its throwing errors. Any pointers would be a great help. Traceback (most recent call last): File "./apps/common/views.py", line 702, in get pdf_content = response.rendered_content File "/usr/local/lib/python2.7/dist-packages/wkhtmltopdf/views.py", line 148, in rendered_content footer_filename=footer_filename) File "/usr/local/lib/python2.7/dist-packages/wkhtmltopdf/views.py", line 107, in convert_to_pdf return wkhtmltopdf(pages=[filename], **cmd_options) File "/usr/local/lib/python2.7/dist-packages/wkhtmltopdf/utils.py", line 98, in wkhtmltopdf return check_output(ck_args, **ck_kwargs) File "/usr/lib/python2.7/subprocess.py", line 566, in check_output process = Popen(stdout=PIPE, *popenargs, **kwargs) File "/usr/lib/python2.7/subprocess.py", line 710, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child raise child_exception *OSError: [Errno 8] Exec format error* We installed django-wkhtmltopdf package, wkhtmltopdf executable >From the command prompt when we try creating the file it works fine but in django project its throwing error root$wkhtmltopdf www.google.com output.pdf ----> works fine Any idea what can be the issue with Thanks Sunil From gora at mimirtech.com Fri Jun 5 11:51:39 2015 From: gora at mimirtech.com (Gora Mohanty) Date: Fri, 5 Jun 2015 15:21:39 +0530 Subject: [BangPypers] Fwd: Help!!! Python/Django & WKHTMLTOPDF In-Reply-To: References: Message-ID: Hi, This is really not on-topic for this list, but the error is most likely because wkhtmltopdf is not in your path. Try using the WKHTMLTOPDF_CMD = '/path/to/my/wkhtmltopdf' setting for django-wkhtmltopdf package Regards, Gora On 5 June 2015 at 15:03, Sunil Gupta wrote: > Hi All, > > We are facing the problem of creating the HTML to PDF in ubuntu.The package > wkhtmltopdf is working fine on windows but when we integrated my code onto > ubuntu its throwing errors. Any pointers would be a great help. > > Traceback (most recent call last): > File "./apps/common/views.py", line 702, in get > pdf_content = response.rendered_content > File "/usr/local/lib/python2.7/dist-packages/wkhtmltopdf/views.py", line > 148, in rendered_content > footer_filename=footer_filename) > File "/usr/local/lib/python2.7/dist-packages/wkhtmltopdf/views.py", line > 107, in convert_to_pdf > return wkhtmltopdf(pages=[filename], **cmd_options) > File "/usr/local/lib/python2.7/dist-packages/wkhtmltopdf/utils.py", line > 98, in wkhtmltopdf > return check_output(ck_args, **ck_kwargs) > File "/usr/lib/python2.7/subprocess.py", line 566, in check_output > process = Popen(stdout=PIPE, *popenargs, **kwargs) > File "/usr/lib/python2.7/subprocess.py", line 710, in __init__ > errread, errwrite) > File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child > raise child_exception > *OSError: [Errno 8] Exec format error* > > We installed django-wkhtmltopdf package, wkhtmltopdf executable > > From the command prompt when we try creating the file it works fine but in > django project its throwing error > > root$wkhtmltopdf www.google.com output.pdf ----> works fine > > Any idea what can be the issue with > > Thanks > Sunil > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers From blake.merriam at gmail.com Fri Jun 5 12:22:10 2015 From: blake.merriam at gmail.com (Blake Merriam) Date: Fri, 5 Jun 2015 15:52:10 +0530 Subject: [BangPypers] [JOB] Positions open for Python, C++, Java Devs in San Fran, Vancouver Message-ID: US based startup looking for developers willing to relocate to our offices in either Vancouver or San Francisco. Our team is responsible for designing new platform integrations that drive our products. This includes integrations with payroll providers, health insurance providers, and other third party systems. You'll also get your hands dirty building accurate document parsing systems and whatever else gets thrown your way. We promise you'll never get bored. *Software Engineer - SF * *Responsibilities:* - Experience building and maintaining products with real-world usage - Ability to rapidly iterate and roll out new code. We ship everyday - Demonstrable track record building high-throughput applications that scale - Attention to detail ? this is very important, since most of the applications here are mission critical (payments, deductions, benefits automations) - Ability to own what you are building and see it through from end to end - Strong Python and JavaScript skills *About you:* - Experience working on, and an understanding of, both client-side and server-side code - Extensive familiarity with JavaScript / CSS - Experience with devops, continuous integration *Senior Software Engineer - Vancouver* *Responsibilities:* - Gather technical and functional requirements of product - Scope, design and own project delivery - Identify and manage appropriate level of communication with key stakeholders throughout the project - Ensure testing coverage, sufficient documentation, timely delivery and proper maintenance of final product - Perform support and maintenance activities of existing systems including but not limited to bug fixes, library upgrades, back-end tools to support the Product Operations team - Recruit, train and manage a small team of developers *A little more about you:* - Minimum of 5 years of work experience in Python, Java, or other major object-oriented languages, e.g. C++ - Familiarity with object-oriented and functional programming concepts and design patterns - Experience working on architectures involving one or more of the following concepts and their implementation: XML/JSON message processing, REST API, Object Relational Mapping, asynchronous web services and distributed message queues - Experience with Agile development practices (Scrum, continuous integration etc..) - Has experience working on scalable architecture which can handle high volumes of data required for build out of our cloud based platform - Strong analytical skills and algorithms knowledge - Experience writing tests for written code (unit tests, regression tests, integration tests etc.) - Experience with version control system (Git, Subversion, CVS etc.) - Ability to work both in a self-directed manner, and lead part of a team - Excellent command of written and spoken English - Quick learner and keen to learn new tools, languages and technologies - Previous experience with scaling a product, capacity planning or performance optimization is an advantage Salaries are unknown at the time but as you will be asked to relocate to Canada or the US, so salaries will be appropriate for the living expenses there. *Do not reach out to the employer directly. They will not reply to you.* Reply to this email with your CV and contact info. Thank You! -- Blake Merriam Recruiter From venkteshguttedar at gmail.com Mon Jun 8 12:47:46 2015 From: venkteshguttedar at gmail.com (VENKTESH GUTTEDAR) Date: Mon, 8 Jun 2015 16:17:46 +0530 Subject: [BangPypers] Help Message-ID: Hello, I am looking a proper tutorial for the basics of Asterisk AGI Scripting in Python to build the IVR, and also to create a basic Web Application in Django for the same. There was a tutorial session by Gaurav Luthra & Piyush Aggarwal in PyCon 2012. here is the link for the funnel : https://in.pycon.org/2012/funnel/pyconindia2012/40-build-your-own-ivr/ They have given a link to their slides, but that link isn't working. Please help.! -- Regards : Venktesh Guttedar. From ramdaz at gmail.com Fri Jun 19 15:35:27 2015 From: ramdaz at gmail.com (Ramdas S) Date: Fri, 19 Jun 2015 19:05:27 +0530 Subject: [BangPypers] Bottle Message-ID: Hey, Are there people working on Bottle? Or are there people with an interest in Bottle? I am kind of thinking of using Bottle for some of the smaller projects and work where we don't have the choice to reuse packages, and built stuff ourself. I am interested in hosting a meet to discuss some Bottle related stuff. Any day after 5 PM at our office in Jayanagar 4th T Block. Can host easily 15 people. Kind of tired of Django after playing around with for years.... Do let me know Ramdas From anand21nanda at gmail.com Fri Jun 19 15:44:33 2015 From: anand21nanda at gmail.com (Anand Reddy Pandikunta) Date: Fri, 19 Jun 2015 19:14:33 +0530 Subject: [BangPypers] Bottle In-Reply-To: References: Message-ID: what about flask? Regards, Anand Reddy Pandikunta www.avilpage.com On Fri, Jun 19, 2015 at 7:05 PM, Ramdas S wrote: > Hey, > > Are there people working on Bottle? Or are there people with an interest in > Bottle? > > I am kind of thinking of using Bottle for some of the smaller projects and > work where we don't have the choice to reuse packages, and built stuff > ourself. > > I am interested in hosting a meet to discuss some Bottle related stuff. Any > day after 5 PM at our office in Jayanagar 4th T Block. Can host easily 15 > people. > > Kind of tired of Django after playing around with for years.... > > Do let me know > > Ramdas > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From ramdaz at gmail.com Fri Jun 19 15:50:22 2015 From: ramdaz at gmail.com (Ramdas S) Date: Fri, 19 Jun 2015 19:20:22 +0530 Subject: [BangPypers] Bottle In-Reply-To: References: Message-ID: On Fri, Jun 19, 2015 at 7:14 PM, Anand Reddy Pandikunta < anand21nanda at gmail.com> wrote: > what about flask? > Nothing against Flask. But it's getting bigger. Let me say I want to explore stuff that's not very popular but is cool. We did a quick job with Bottle and it was quicker than what we thought it would take. And I personally learnt a lot more than years of Django. No magic is sometimes good. Let's say we ignore the big two Python web frameworks and dinosaurs of last century like Zope and Plone. I don't remember who, but I saw someone talking of Pulsar and aiohttp (?). Want to meet up with some folks. > > From deepsukhwani at gmail.com Fri Jun 19 16:13:25 2015 From: deepsukhwani at gmail.com (Deep Sukhwani) Date: Fri, 19 Jun 2015 19:43:25 +0530 Subject: [BangPypers] Bottle In-Reply-To: References: Message-ID: Wow, good to be a part of this discussion! I am a newb in the world of web frameworks. I tried learning Django a while ago, probably 3 months back from now, but gave up trying really hard.. It just lost me every now and then with the mere complexities. I then gave that up as I got into a new job and moved to Bangalore. Now I have recently started learning Flask at An Introduction to Flask by Miguel Grinberg . Don't know how long would I stick to that... Anyways, open to show up on weekends for any talks on similar discipline. ? -- Regards Deep L Sukhwani Mob: +91 9687 000 830 On 19 June 2015 at 19:20, Ramdas S wrote: > On Fri, Jun 19, 2015 at 7:14 PM, Anand Reddy Pandikunta < > anand21nanda at gmail.com> wrote: > > > what about flask? > > > Nothing against Flask. But it's getting bigger. Let me say I want to > explore stuff that's not very popular but is cool. > We did a quick job with Bottle and it was quicker than what we thought it > would take. And I personally learnt a lot more than years of Django. No > magic is sometimes good. > > Let's say we ignore the big two Python web frameworks and dinosaurs of last > century like Zope and Plone. > > I don't remember who, but I saw someone talking of Pulsar and aiohttp (?). > Want to meet up with some folks. > > > > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From kracethekingmaker at gmail.com Fri Jun 19 16:27:26 2015 From: kracethekingmaker at gmail.com (kracekumar ramaraju) Date: Fri, 19 Jun 2015 22:27:26 +0800 Subject: [BangPypers] Bottle In-Reply-To: References: Message-ID: On Fri, Jun 19, 2015 at 10:13 PM, Deep Sukhwani wrote: > Wow, good to be a part of this discussion! > > I am a newb in the world of web frameworks. > > I tried learning Django a while ago, probably 3 months back from now, but > gave up trying really hard.. It just lost me every now and then with the > mere complexities. > > If you're doing hello world in web framework, yes it is more complicated. If you're developing full blown application then Django has all the necessary components. I am not saying you can't do that with Flask. I then gave that up as I got into a new job and moved to Bangalore. Now I > have recently started learning Flask at An Introduction to Flask by Miguel > Grinberg > < > http://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world > >. > Don't know how long would I stick to that... > > Anyways, open to show up on weekends for any talks on similar discipline. > ? > > -- > Regards > Deep L Sukhwani > Mob: +91 9687 000 830 > > On 19 June 2015 at 19:20, Ramdas S wrote: > > > On Fri, Jun 19, 2015 at 7:14 PM, Anand Reddy Pandikunta < > > anand21nanda at gmail.com> wrote: > > > > > what about flask? > > > > > Nothing against Flask. But it's getting bigger. Let me say I want to > > explore stuff that's not very popular but is cool. > > We did a quick job with Bottle and it was quicker than what we thought it > > would take. And I personally learnt a lot more than years of Django. No > > magic is sometimes good. > > > > Let's say we ignore the big two Python web frameworks and dinosaurs of > last > > century like Zope and Plone. > > > > I don't remember who, but I saw someone talking of Pulsar and aiohttp > (?). > > Want to meet up with some folks. > > > > > > > > > > _______________________________________________ > > 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 > -- *Thanks & Regardskracekumar"Talk is cheap, show me the code" -- Linus Torvaldshttp://kracekumar.com * From ramdaz at gmail.com Fri Jun 19 16:53:36 2015 From: ramdaz at gmail.com (Ramdas S) Date: Fri, 19 Jun 2015 20:23:36 +0530 Subject: [BangPypers] Bottle In-Reply-To: References: Message-ID: I don't think anyone is debating the advantages of tedjango, and the huge community support. But this is more fun stuff. On Fri, Jun 19, 2015 at 7:57 PM, kracekumar ramaraju < kracethekingmaker at gmail.com> wrote: > > > On Fri, Jun 19, 2015 at 10:13 PM, Deep Sukhwani > wrote: > >> Wow, good to be a part of this discussion! >> >> I am a newb in the world of web frameworks. >> >> I tried learning Django a while ago, probably 3 months back from now, but >> gave up trying really hard.. It just lost me every now and then with the >> mere complexities. >> >> > If you're doing hello world in web framework, yes it is more complicated. > If you're developing full blown application then Django has all the > necessary components. > > I am not saying you can't do that with Flask. > > I then gave that up as I got into a new job and moved to Bangalore. Now I >> have recently started learning Flask at An Introduction to Flask by Miguel >> Grinberg >> < >> http://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world >> >. >> Don't know how long would I stick to that... >> >> Anyways, open to show up on weekends for any talks on similar discipline. >> ? >> >> -- >> Regards >> Deep L Sukhwani >> Mob: +91 9687 000 830 >> >> On 19 June 2015 at 19:20, Ramdas S wrote: >> >> > On Fri, Jun 19, 2015 at 7:14 PM, Anand Reddy Pandikunta < >> > anand21nanda at gmail.com> wrote: >> > >> > > what about flask? >> > > >> > Nothing against Flask. But it's getting bigger. Let me say I want to >> > explore stuff that's not very popular but is cool. >> > We did a quick job with Bottle and it was quicker than what we thought >> it >> > would take. And I personally learnt a lot more than years of Django. No >> > magic is sometimes good. >> > >> > Let's say we ignore the big two Python web frameworks and dinosaurs of >> last >> > century like Zope and Plone. >> > >> > I don't remember who, but I saw someone talking of Pulsar and aiohttp >> (?). >> > Want to meet up with some folks. >> > >> > > >> > > >> > _______________________________________________ >> > 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 >> > > > > -- > > *Thanks & Regardskracekumar"Talk is cheap, show me the code" -- Linus > Torvaldshttp://kracekumar.com * > -- Ramdas S +91 9342 583 065 My Personal Blog on http://ramdaz.wordpress.com From anusree.a04 at gmail.com Sat Jun 20 08:41:10 2015 From: anusree.a04 at gmail.com (anu sree) Date: Sat, 20 Jun 2015 12:11:10 +0530 Subject: [BangPypers] real use case of gevent context switch gevent.sleep(0) Message-ID: Hi, I have seen an example of gevent context switch http://sdiehl.github.io/gevent-tutorial/#synchronous-asynchronous-execution Could you please give some real use case with example. It would be fine If you can share link of github project which uses gevent context gevent.sleep(0). Thanks, From kracethekingmaker at gmail.com Sat Jun 20 15:40:06 2015 From: kracethekingmaker at gmail.com (kracekumar ramaraju) Date: Sat, 20 Jun 2015 21:40:06 +0800 Subject: [BangPypers] real use case of gevent context switch gevent.sleep(0) In-Reply-To: References: Message-ID: Citation from Taskmaster [1], [2]. [1]: https://github.com/dcramer/taskmaster/blob/79a312c5cb3c34d00829fe9cf4204aeb478a0166/src/taskmaster/client.py#L26 [2]: https://github.com/dcramer/taskmaster/blob/79a312c5cb3c34d00829fe9cf4204aeb478a0166/src/taskmaster/server.py#L199 The reason to put sleep(0) is to ensure other greenlets gets a chance to execute. On Sat, Jun 20, 2015 at 2:41 PM, anu sree wrote: > Hi, > > I have seen an example of gevent context switch > http://sdiehl.github.io/gevent-tutorial/#synchronous-asynchronous-execution > > Could you please give some real use case with example. > It would be fine If you can share link of github project which uses gevent > context gevent.sleep(0). > > Thanks, > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > -- *Thanks & Regardskracekumar"Talk is cheap, show me the code" -- Linus Torvaldshttp://kracekumar.com * From noufal at nibrahim.net.in Sat Jun 20 20:22:34 2015 From: noufal at nibrahim.net.in (Noufal Ibrahim KV) Date: Sat, 20 Jun 2015 23:52:34 +0530 Subject: [BangPypers] real use case of gevent context switch gevent.sleep(0) In-Reply-To: (anu sree's message of "Sat, 20 Jun 2015 12:11:10 +0530") References: Message-ID: <877fqy6xzp.fsf@nibrahim.net.in> On Sat, Jun 20 2015, anu sree wrote: > Hi, > > I have seen an example of gevent context switch > http://sdiehl.github.io/gevent-tutorial/#synchronous-asynchronous-execution > > Could you please give some real use case with example. > It would be fine If you can share link of github project which uses gevent > context gevent.sleep(0). [...] The difference between a regular sleep and a gevent sleep is that the gevent sleep will not make the whole interpreter process sleep. It will instead, only make the current greenlet sleep which essentially tells the internal scheduler to not execute it till the time is over. You can see this happen like this. Make a greenlet in your interpreter like so >>> from gevent import Greenlet >>> class Printer(Greenlet): ... def _run(self): ... n = 0 ... while True: ... n += 1 ... print n This simply prints numbers starting from 1. now you can create this greenlet and start it >>> p = Printer() >>> p.start() Nothing will happen. This is cooperative multitasking where the current Greenlet (your interpreter shell) has to "give up" its time slice and let p execute. You can do this by monkey patching sleep >>> from gevent import monkey >>> monkey.patch_time() >>> import time >>> time.sleep(1) Now, control is handed over to the Greenlet. However, it is not cooperative and runs a tight loop without ever giving up control. This means, that you'll never be able to execute your own interpreter again. So you see, the various greenlets have to "cooperate" to get things done. This is in counter distinction to how preemptive multitasking works where the OS can force the currently executing thread or process to stop and then grant execution to something else. They don't need to be nice. If your greenlet looked like this >>> class Printer(Greenlet): ... def _run(self): ... n = 0 ... while True: ... n += 1 ... time.sleep(0.1) ... print n the slot would be given up inside each iteration and other greenlets can execute. Try it. So people stick in a call to a monkey patched version of sleep inside tight loops to suspend the current interpreter for a short period of time thereby letting other greenlets execute. Krace's example is a good one. -- Cordially, Noufal http://nibrahim.net.in From anusree.a04 at gmail.com Sat Jun 20 23:55:31 2015 From: anusree.a04 at gmail.com (anu sree) Date: Sun, 21 Jun 2015 03:25:31 +0530 Subject: [BangPypers] real use case of gevent context switch gevent.sleep(0) Message-ID: Thanks naufal and Krace. I have tried following code. I have given gevent.sleep(0.1), that means each greenlet let others to execute 0.1 secoond. But here each greenlet waiting for others to complete, why? Is it because of greenlet.joinall ? Here I have created 3 greenlet threads (A, B, C). I think, A is the parent greenlet, right ? Once C get finished control should goes to B, right ? But here it going to A. Please check the ouput. import gevent def task(num): thread_id = id(gevent.getcurrent()) print "Start: ", num, thread_id for i in range(100000001): if i == 100000000: print num + str(i) gevent.sleep(0.1) for i in range(100000001): if i == 100000000: print num + str(i) print "End: ", num, thread_id threads = [gevent.spawn(task, x) for x in ['A', 'B', 'C']] gevent.joinall(threads) Output ======= Start: A 139984038735696 A100000000 Start: B 139984008421616 B100000000 Start: C 139984008421776 C100000000 A100000000 End: A 139984038735696 B100000000 End: B 139984008421616 C100000000 End: C 139984008421776 From kracethekingmaker at gmail.com Sun Jun 21 06:40:27 2015 From: kracethekingmaker at gmail.com (kracekumar ramaraju) Date: Sun, 21 Jun 2015 12:40:27 +0800 Subject: [BangPypers] real use case of gevent context switch gevent.sleep(0) In-Reply-To: References: Message-ID: On Sun, Jun 21, 2015 at 5:55 AM, anu sree wrote: > Thanks naufal and Krace. > > I have tried following code. I have given gevent.sleep(0.1), that means > each greenlet let others to execute 0.1 secoond. But here each greenlet > waiting for others to complete, why? Is it because of greenlet.joinall ? > Gevent has the hub/scheduler. The whole job is to schedule the tasks. AFAIK, the hub uses queue to schedule them. If the task has a sleep [1], task is enqueued for later execution [2]. By saying sleep, gevent puts task out of execution and doesn't guarantee execution once time is elapsed. > > Here I have created 3 greenlet threads (A, B, C). I think, A is the parent > greenlet, right ? Once C get finished control should goes to B, right ? > But here it going to A. > Please check the ouput. > > import gevent > > def task(num): > thread_id = id(gevent.getcurrent()) > print "Start: ", num, thread_id > > for i in range(100000001): > if i == 100000000: > print num + str(i) > > gevent.sleep(0.1) > > for i in range(100000001): > if i == 100000000: > print num + str(i) > > print "End: ", num, thread_id > > threads = [gevent.spawn(task, x) for x in ['A', 'B', 'C']] > gevent.joinall(threads) > > > Output > ======= > > Start: A 139984038735696 > A100000000 > Start: B 139984008421616 > B100000000 > Start: C 139984008421776 > C100000000 > A100000000 > End: A 139984038735696 > B100000000 > End: B 139984008421616 > C100000000 > End: C 139984008421776 > Parent in gevent context is Hub(run inside an event loop). Like unix process concept, gevent doesn't have parent process and child process. Let's say if a task is spawn inside gevent task, they are still individual tasks. In [24]: def task(langs): print "inside task", gevent.getcurrent(), gevent.getcurrent().parent def echo(msg): print msg, gevent.getcurrent(), gevent.getcurrent().parent tasks = [gevent.spawn(echo, lang) for lang in langs] gevent.joinall(tasks) ....: In [25]: gevent.joinall([gevent.spawn(task, langs) for langs in [('Python', 'Go'), ('Lisp', 'Clojure')]]) inside task inside task Python Go Lisp Clojure _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > [1]: https://github.com/gevent/gevent/blob/master/gevent/hub.py#L80 [2]: https://github.com/gevent/gevent/blob/1599210203836560698a5facac015c31735cac3d/gevent/corecffi.py#L402 -- *Thanks & Regardskracekumar"Talk is cheap, show me the code" -- Linus Torvaldshttp://kracekumar.com * From anusree.a04 at gmail.com Sun Jun 21 08:38:19 2015 From: anusree.a04 at gmail.com (anu sree) Date: Sun, 21 Jun 2015 12:08:19 +0530 Subject: [BangPypers] real use case of gevent context switch gevent.sleep(0) In-Reply-To: References: Message-ID: Hi Krace, I am still not understanding from code (practical example) where we are getting the benefit of PAUSE and let other greenlet to execute. I have created a simple worker program from your example https://github.com/dcramer/taskmaster/blob/79a312c5cb3c34d00829fe9cf4204aeb478a0166/src/taskmaster/client.py#L26 . This code has two pause (gevent.sleep(0)), in Consumer.start and Worker.run. Here control goes to Worker.run when Consumer.start pauses and Consumer.start gets control back when Worker.run pauses. There may be benefit from this switching, but I am still not understanding it. Please check the attached code and output. Is my example code valid ? CODE ====== import gevent class Worker(object): def __init__(self, consumer, target): self.consumer = consumer self.target = target def run(self): print "Worker.run, START" self.started = True while self.started: print "Greenlet thread (from Worker.run) Pauses, START" gevent.sleep(0) print "Greenlet thread (from Worker.run) Pauses, END" job = self.consumer.get_job() self.target(job) print "Worker.run, END" class Consumer(object): def __init__(self, target): self.target = target def start(self): print "Consumer.start, START" self.started = True worker = Worker(self, self.target) gevent.spawn(worker.run) while self.started: print "Main Interpreter greenlet (from Consumer.start) Pauses, START" gevent.sleep(0) print "Main Interpreter greenlet (from Consumer.start) Pauses, END \n" print "Consumer.start, END" def get_job(self): return 10000 ############# def my_target_1(n): print "my_target_1, START" nums = [] while n > 0: nums.append(n) n -= 1 print "my_target_1, END" c = Consumer(my_target_1) c.start() OUTPUT ======= Consumer.start, START Main Interpreter greenlet (from Consumer.start) Pauses, START Worker.run, START Greenlet thread (from Worker.run) Pauses, START Main Interpreter greenlet (from Consumer.start) Pauses, END Main Interpreter greenlet (from Consumer.start) Pauses, START Greenlet thread (from Worker.run) Pauses, END my_target_1, START my_target_1, END Greenlet thread (from Worker.run) Pauses, START Main Interpreter greenlet (from Consumer.start) Pauses, END Main Interpreter greenlet (from Consumer.start) Pauses, START Greenlet thread (from Worker.run) Pauses, END my_target_1, START my_target_1, END Greenlet thread (from Worker.run) Pauses, START Main Interpreter greenlet (from Consumer.start) Pauses, END From noufal at nibrahim.net.in Sun Jun 21 09:31:04 2015 From: noufal at nibrahim.net.in (Noufal Ibrahim KV) Date: Sun, 21 Jun 2015 13:01:04 +0530 Subject: [BangPypers] real use case of gevent context switch gevent.sleep(0) In-Reply-To: (anu sree's message of "Sun, 21 Jun 2015 12:08:19 +0530") References: Message-ID: <87h9q15xhj.fsf@nibrahim.net.in> On Sun, Jun 21 2015, anu sree wrote: [...] > This code has two pause (gevent.sleep(0)), in Consumer.start and > Worker.run. Here control goes to Worker.run when Consumer.start > pauses and Consumer.start gets control back when Worker.run > pauses. There may be benefit from this switching, but I am still not > understanding it. [...] The idea is that any non blocking call is an opportunity to switch between greenlets. The monkey patching system will enable this. If you don't have any place in your greenlets that are monkey patched (and therefore allow switching), you can be a good citizen and drop in a patched sleep call so that other greenlets will get time to run. Otherwise, you'll simply hog the interpreter and no one else will be able to run. This the principle. I still don't understand your question. -- Cordially, Noufal http://nibrahim.net.in From anusree.a04 at gmail.com Sun Jun 21 16:18:41 2015 From: anusree.a04 at gmail.com (anu sree) Date: Sun, 21 Jun 2015 19:48:41 +0530 Subject: [BangPypers] real use case of gevent context switch gevent.sleep(0) In-Reply-To: <87h9q15xhj.fsf@nibrahim.net.in> References: <87h9q15xhj.fsf@nibrahim.net.in> Message-ID: Thanks noufal, I got it. After gevent.spawn, we have to do join or gevent.joinall or gevent.sleep or patched library call to start the greenlets, right ? I have see the code which not using any of these after gevent.spawn, How it is working there ? https://github.com/Juniper/contrail-controller/blob/master/src/opserver/uveserver.py#L656 Thanks, On Sun, Jun 21, 2015 at 1:01 PM, Noufal Ibrahim KV wrote: > On Sun, Jun 21 2015, anu sree wrote: > > > [...] > > > This code has two pause (gevent.sleep(0)), in Consumer.start and > > Worker.run. Here control goes to Worker.run when Consumer.start > > pauses and Consumer.start gets control back when Worker.run > > pauses. There may be benefit from this switching, but I am still not > > understanding it. > > [...] > > The idea is that any non blocking call is an opportunity to switch > between greenlets. The monkey patching system will enable this. > > If you don't have any place in your greenlets that are monkey patched > (and therefore allow switching), you can be a good citizen and drop in a > patched sleep call so that other greenlets will get time to > run. Otherwise, you'll simply hog the interpreter and no one else will > be able to run. > > This the principle. I still don't understand your question. > > > -- > Cordially, > Noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From noufal at nibrahim.net.in Mon Jun 22 06:54:27 2015 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Mon, 22 Jun 2015 10:24:27 +0530 Subject: [BangPypers] real use case of gevent context switch gevent.sleep(0) In-Reply-To: References: <87h9q15xhj.fsf@nibrahim.net.in> Message-ID: <53b0c963b176ae97a7f332751e21f619@hcoop.net> On 2015-06-21 19:48, anu sree wrote: > Thanks noufal, > > I got it. > > After gevent.spawn, we have to do join or gevent.joinall or > gevent.sleep or > patched library call to start the greenlets, right ? join (and joinall) will pause the current greenlet till the ones you've joined terminate (similar to the threading.Thread join method). gevent.sleep will suspend the execution of the current greenlet and let other greenlets get some time to execute. > I have see the code which not using any of these after gevent.spawn, > How it > is working there ? > https://github.com/Juniper/contrail-controller/blob/master/src/opserver/uveserver.py#L656 Neither of these are *necessary*. Just creating a greenlet and `.start`ing it will make it run similar to a thread as long as other greenlets don't hog the CPU and have some calls that can context switch. From anusree.a04 at gmail.com Mon Jun 22 10:36:02 2015 From: anusree.a04 at gmail.com (anu sree) Date: Mon, 22 Jun 2015 14:06:02 +0530 Subject: [BangPypers] UI less Rest API server with flask Message-ID: Hi, I want to develop an API server (don't need GUI). I am planning to use flask to develop this UI less API server. Question-1: I have seen an example here https://github.com/miguelgrinberg/api-pycon2015 But above example does not use flask_restful extension. Here I need your help to take decision, Should I use with flask_restful extension ? what are the benefits of using flask_restful extension? Question-1: When I start or restart api server, it should fetch huge data from somewhere (Eg:database) and process it in separate thread (it also make some rest api call different services during the processing). I am planning to create a thread inside the api server using *gevent* to do this while starting the api server, is it right decision? This fetching and processing of data should not affect the other operation of the API server, that is I should able to make rest api call to api server while it fetching and processing the data. Thanks, From anuvrat at anuvrat.in Mon Jun 22 11:30:25 2015 From: anuvrat at anuvrat.in (Anuvrat Parashar) Date: Mon, 22 Jun 2015 15:00:25 +0530 Subject: [BangPypers] UI less Rest API server with flask In-Reply-To: References: Message-ID: On Mon, Jun 22, 2015 at 2:06 PM, anu sree wrote: > Hi, > > I want to develop an API server (don't need GUI). > I am planning to use flask to develop this UI less API server. > > Question-1: > I have seen an example here > https://github.com/miguelgrinberg/api-pycon2015 > But above example does not use flask_restful extension. > Here I need your help to take decision, Should I use with flask_restful > extension ? > There are quite a few extensions for making restful apis - flask-restful, flask-restless etc ... While researching also consider python-eve https://github.com/nicolaiarocci/eve > what are the benefits of using flask_restful extension? > > Question-1: > When I start or restart api server, it should fetch huge data from > somewhere (Eg:database) and process it in separate thread (it also make > some rest api call different services during the processing). > I am planning to create a thread inside the api server using *gevent* to do > this while starting the api server, is it right decision? > This fetching and processing of data should not affect the other operation > of the API server, that is I should able to make rest api call > to api server while it fetching and processing the data. > For this deferred processing too you have various options namely: gevent, celery, twisted etc ... Sharing more information on what you are trying to accomplish would enable people here to suggest better solutions. Peace. > > Thanks, > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > -- Anuvrat Parashar http://anuvrat.in From info.martinanto at gmail.com Mon Jun 22 11:33:29 2015 From: info.martinanto at gmail.com (Martin Anto) Date: Mon, 22 Jun 2015 15:03:29 +0530 Subject: [BangPypers] (no subject) Message-ID: Please remove from group. Sorry for the inconvenience caused. From anusree.a04 at gmail.com Mon Jun 22 11:55:14 2015 From: anusree.a04 at gmail.com (anu sree) Date: Mon, 22 Jun 2015 15:25:14 +0530 Subject: [BangPypers] UI less Rest API server with flask In-Reply-To: References: Message-ID: Thanks anuvrat, My first question was, Should I use only flask to develop REST API like in this example https://github.com/miguelgrinberg/api-pycon2015 or fask + flask_restful ? On Mon, Jun 22, 2015 at 3:00 PM, Anuvrat Parashar wrote: > On Mon, Jun 22, 2015 at 2:06 PM, anu sree wrote: > > > Hi, > > > > I want to develop an API server (don't need GUI). > > I am planning to use flask to develop this UI less API server. > > > > Question-1: > > I have seen an example here > > https://github.com/miguelgrinberg/api-pycon2015 > > But above example does not use flask_restful extension. > > Here I need your help to take decision, Should I use with flask_restful > > extension ? > > > > There are quite a few extensions for making restful apis - flask-restful, > flask-restless etc ... > While researching also consider python-eve > https://github.com/nicolaiarocci/eve > > > > what are the benefits of using flask_restful extension? > > > > Question-1: > > When I start or restart api server, it should fetch huge data from > > somewhere (Eg:database) and process it in separate thread (it also make > > some rest api call different services during the processing). > > I am planning to create a thread inside the api server using *gevent* to > do > > this while starting the api server, is it right decision? > > This fetching and processing of data should not affect the other > operation > > of the API server, that is I should able to make rest api call > > to api server while it fetching and processing the data. > > > > For this deferred processing too you have various options namely: gevent, > celery, twisted etc ... > > Sharing more information on what you are trying to accomplish would enable > people here to suggest better solutions. > Peace. > > > > > Thanks, > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > https://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > Anuvrat Parashar > http://anuvrat.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From anuvrat at anuvrat.in Mon Jun 22 12:08:17 2015 From: anuvrat at anuvrat.in (Anuvrat Parashar) Date: Mon, 22 Jun 2015 15:38:17 +0530 Subject: [BangPypers] UI less Rest API server with flask In-Reply-To: References: Message-ID: On Mon, Jun 22, 2015 at 3:25 PM, anu sree wrote: > Thanks anuvrat, > > My first question was, Should I use only flask to develop REST API like in > this example https://github.com/miguelgrinberg/api-pycon2015 > > or fask + flask_restful ? > All flask-restful does is providing you a very basic scaffolding to write restful APIs. With only flask, you would be lacking even that and would be building it on your own ... So the answer "depends" on your goal. - Are you trying to learn flask itself: go with barebone flask. - API is a subtask, you have a much bigger fish to fry: go with flask-classy / python-eve. Hope it helps, and does not confuse you more than you already are ;) Peace. -- Anuvrat Parashar http://anuvrat.in From kracethekingmaker at gmail.com Mon Jun 22 14:58:01 2015 From: kracethekingmaker at gmail.com (kracekumar ramaraju) Date: Mon, 22 Jun 2015 20:58:01 +0800 Subject: [BangPypers] UI less Rest API server with flask In-Reply-To: References: Message-ID: The biggest problem with all rest apis except Django REST framework is no distinction between serializer and model. Soon that will be problem for the kind of tasks you want to do. I don't use any framework to create apis in Flask. I follow different approach, use schematics [1] for serialization, Flask method view and use model methods/service layer to interact with dbs, queues etc ... You can find the similar example for Django in schematics example directory, it should be easy to implement in Flask too. [1]: http://github.com/schematics/schematics From anusree.a04 at gmail.com Mon Jun 22 15:27:15 2015 From: anusree.a04 at gmail.com (anu sree) Date: Mon, 22 Jun 2015 18:57:15 +0530 Subject: [BangPypers] UI less Rest API server with flask In-Reply-To: References: Message-ID: Thanks anuvrat and krace, How do we do validation of data in the POST and PUT API request, if we use only native fask ?. I have seen a way in flask-restful, but I am planing to use only native fask. http://flask-restful.readthedocs.org/en/latest/api.html#reqparse.RequestParser Thanks, On Mon, Jun 22, 2015 at 6:28 PM, kracekumar ramaraju < kracethekingmaker at gmail.com> wrote: > The biggest problem with all rest apis except Django REST framework is no > distinction between serializer and model. Soon that will be problem for the > kind of tasks you want to do. > > I don't use any framework to create apis in Flask. > > I follow different approach, use schematics [1] for serialization, Flask > method view and use model methods/service layer to interact with dbs, > queues etc ... > > You can find the similar example for Django in schematics example > directory, it should be easy to implement in Flask too. > > [1]: http://github.com/schematics/schematics > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From dhruvbaldawa at gmail.com Mon Jun 22 16:29:20 2015 From: dhruvbaldawa at gmail.com (Dhruv Baldawa) Date: Mon, 22 Jun 2015 19:59:20 +0530 Subject: [BangPypers] UI less Rest API server with flask In-Reply-To: References: Message-ID: You can either add those yourself, or use something like Flask-WTF[1] or validictory[2] based on your requirements. [1]: https://flask-wtf.readthedocs.org/en/latest/ [2]: https://readthedocs.org/projects/validictory/ On Mon, Jun 22, 2015 at 6:57 PM, anu sree wrote: > Thanks anuvrat and krace, > > How do we do validation of data in the POST and PUT API request, if we use > only native fask ?. > > I have seen a way in flask-restful, but I am planing to use only native > fask. > > http://flask-restful.readthedocs.org/en/latest/api.html#reqparse.RequestParser > > Thanks, > > > > On Mon, Jun 22, 2015 at 6:28 PM, kracekumar ramaraju < > kracethekingmaker at gmail.com> wrote: > > > The biggest problem with all rest apis except Django REST framework is no > > distinction between serializer and model. Soon that will be problem for > the > > kind of tasks you want to do. > > > > I don't use any framework to create apis in Flask. > > > > I follow different approach, use schematics [1] for serialization, Flask > > method view and use model methods/service layer to interact with dbs, > > queues etc ... > > > > You can find the similar example for Django in schematics example > > directory, it should be easy to implement in Flask too. > > > > [1]: http://github.com/schematics/schematics > > _______________________________________________ > > 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 > -- Dhruv Baldawa (http://www.dhruvb.com) From anusree.a04 at gmail.com Mon Jun 22 16:37:33 2015 From: anusree.a04 at gmail.com (anu sree) Date: Mon, 22 Jun 2015 20:07:33 +0530 Subject: [BangPypers] UI less Rest API server with flask In-Reply-To: References: Message-ID: Thanks dhruv, That is for validating the form. I don't have forms in my app, i just want to validate the data in the REST API request. I think, good choice is http://flask-restful.readthedocs.org/en/latest/api.html#reqparse.RequestParser On Mon, Jun 22, 2015 at 7:59 PM, Dhruv Baldawa wrote: > You can either add those yourself, or use something like Flask-WTF[1] or > validictory[2] based on your requirements. > > > [1]: https://flask-wtf.readthedocs.org/en/latest/ > [2]: https://readthedocs.org/projects/validictory/ > > On Mon, Jun 22, 2015 at 6:57 PM, anu sree wrote: > > > Thanks anuvrat and krace, > > > > How do we do validation of data in the POST and PUT API request, if we > use > > only native fask ?. > > > > I have seen a way in flask-restful, but I am planing to use only native > > fask. > > > > > http://flask-restful.readthedocs.org/en/latest/api.html#reqparse.RequestParser > > > > Thanks, > > > > > > > > On Mon, Jun 22, 2015 at 6:28 PM, kracekumar ramaraju < > > kracethekingmaker at gmail.com> wrote: > > > > > The biggest problem with all rest apis except Django REST framework is > no > > > distinction between serializer and model. Soon that will be problem for > > the > > > kind of tasks you want to do. > > > > > > I don't use any framework to create apis in Flask. > > > > > > I follow different approach, use schematics [1] for serialization, > Flask > > > method view and use model methods/service layer to interact with dbs, > > > queues etc ... > > > > > > You can find the similar example for Django in schematics example > > > directory, it should be easy to implement in Flask too. > > > > > > [1]: http://github.com/schematics/schematics > > > _______________________________________________ > > > 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 > > > > > > -- > Dhruv Baldawa > (http://www.dhruvb.com) > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From kracethekingmaker at gmail.com Mon Jun 22 19:18:36 2015 From: kracethekingmaker at gmail.com (kracekumar ramaraju) Date: Tue, 23 Jun 2015 01:18:36 +0800 Subject: [BangPypers] UI less Rest API server with flask In-Reply-To: References: Message-ID: On Jun 22, 2015 19:03, "anu sree" wrote: > > Thanks anuvrat and krace, > > How do we do validation of data in the POST and PUT API request, if we use > only native fask ?. That is where serialization library like schematics comes to play. Pass the request data dict to serialization and call validate method. > I have seen a way in flask-restful, but I am planing to use only native > fask. > http://flask-restful.readthedocs.org/en/latest/api.html#reqparse.RequestParser > > Thanks, > > > > On Mon, Jun 22, 2015 at 6:28 PM, kracekumar ramaraju < > kracethekingmaker at gmail.com> wrote: > > > The biggest problem with all rest apis except Django REST framework is no > > distinction between serializer and model. Soon that will be problem for the > > kind of tasks you want to do. > > > > I don't use any framework to create apis in Flask. > > > > I follow different approach, use schematics [1] for serialization, Flask > > method view and use model methods/service layer to interact with dbs, > > queues etc ... > > > > You can find the similar example for Django in schematics example > > directory, it should be easy to implement in Flask too. > > > > [1]: http://github.com/schematics/schematics > > _______________________________________________ > > 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 anusree.a04 at gmail.com Mon Jun 22 20:50:18 2015 From: anusree.a04 at gmail.com (anu sree) Date: Tue, 23 Jun 2015 00:20:18 +0530 Subject: [BangPypers] UI less Rest API server with flask In-Reply-To: References: Message-ID: Thanks krace, Good suggestion, I am going to use schematics with flask. I red about schematics and think that will help me keep validation code clean and reduce number of statements in the code. Thanks On Mon, Jun 22, 2015 at 10:48 PM, kracekumar ramaraju < kracethekingmaker at gmail.com> wrote: > On Jun 22, 2015 19:03, "anu sree" wrote: > > > > Thanks anuvrat and krace, > > > > How do we do validation of data in the POST and PUT API request, if we > use > > only native fask ?. > > That is where serialization library like schematics comes to play. Pass the > request data dict to serialization and call validate method. > > > I have seen a way in flask-restful, but I am planing to use only native > > fask. > > > > http://flask-restful.readthedocs.org/en/latest/api.html#reqparse.RequestParser > > > > Thanks, > > > > > > > > On Mon, Jun 22, 2015 at 6:28 PM, kracekumar ramaraju < > > kracethekingmaker at gmail.com> wrote: > > > > > The biggest problem with all rest apis except Django REST framework is > no > > > distinction between serializer and model. Soon that will be problem for > the > > > kind of tasks you want to do. > > > > > > I don't use any framework to create apis in Flask. > > > > > > I follow different approach, use schematics [1] for serialization, > Flask > > > method view and use model methods/service layer to interact with dbs, > > > queues etc ... > > > > > > You can find the similar example for Django in schematics example > > > directory, it should be easy to implement in Flask too. > > > > > > [1]: http://github.com/schematics/schematics > > > _______________________________________________ > > > 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 gora at mimirtech.com Mon Jun 22 21:11:17 2015 From: gora at mimirtech.com (Gora Mohanty) Date: Tue, 23 Jun 2015 00:41:17 +0530 Subject: [BangPypers] UI less Rest API server with flask In-Reply-To: References: Message-ID: Hi, Since you seem to be determined to reinvent the wheel, may I ask what is your use case to choose flask + largely-roll-one's-own-rest-api vs. Django + DRF? The same goes for all the recent hoopla in this list over Flask/Bottle over Django, if you ask me. Django is not all that difficult to get into, has a well-established track record, and is eminently scalable. For serious development, one also needs to worry about the community size, and support. I do not even know that Flask/Bottle/what have an edge over Django for any use case, but IMHO if so one would be talking about the scale of one the largest sites on the Internet. Remember, premature oprtimisation is the root of all evil. Sorry, but if you ask me I smell buzzword-driven development. Regards, Gora On 23 June 2015 at 00:20, anu sree wrote: > Thanks krace, > > Good suggestion, I am going to use schematics with flask. I red > about schematics and think that will help me keep validation code clean and > reduce number of statements in the code. > > Thanks > > On Mon, Jun 22, 2015 at 10:48 PM, kracekumar ramaraju < > kracethekingmaker at gmail.com> wrote: > > > On Jun 22, 2015 19:03, "anu sree" wrote: > > > > > > Thanks anuvrat and krace, > > > > > > How do we do validation of data in the POST and PUT API request, if we > > use > > > only native fask ?. > > > > That is where serialization library like schematics comes to play. Pass > the > > request data dict to serialization and call validate method. > > > > > I have seen a way in flask-restful, but I am planing to use only native > > > fask. > > > > > > > > http://flask-restful.readthedocs.org/en/latest/api.html#reqparse.RequestParser > > > > > > Thanks, > > > > > > > > > > > > On Mon, Jun 22, 2015 at 6:28 PM, kracekumar ramaraju < > > > kracethekingmaker at gmail.com> wrote: > > > > > > > The biggest problem with all rest apis except Django REST framework > is > > no > > > > distinction between serializer and model. Soon that will be problem > for > > the > > > > kind of tasks you want to do. > > > > > > > > I don't use any framework to create apis in Flask. > > > > > > > > I follow different approach, use schematics [1] for serialization, > > Flask > > > > method view and use model methods/service layer to interact with dbs, > > > > queues etc ... > > > > > > > > You can find the similar example for Django in schematics example > > > > directory, it should be easy to implement in Flask too. > > > > > > > > [1]: http://github.com/schematics/schematics > > > > _______________________________________________ > > > > 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 anusree.a04 at gmail.com Tue Jun 23 09:51:48 2015 From: anusree.a04 at gmail.com (anu sree) Date: Tue, 23 Jun 2015 13:21:48 +0530 Subject: [BangPypers] UI less Rest API server with flask In-Reply-To: References: Message-ID: Thanks gora, I am happy to use django-DRF if I can use it without doing syncdb. I don't want to use models and orm. The REST API app which I am going to develop doesn't have models now. I also don't want the apps which are included in settings.INSTALLED_APPS by default. I also want to run some asynchronous task (to read a large xml file and process it) from this REST API App, I think I can use celery + gevent here. I just started reading http://www.django-rest-framework.org/ Thanks, On Tue, Jun 23, 2015 at 12:41 AM, Gora Mohanty wrote: > Hi, > > Since you seem to be determined to reinvent the wheel, may I ask what is > your use case to choose flask + largely-roll-one's-own-rest-api vs. Django > + DRF? > > The same goes for all the recent hoopla in this list over Flask/Bottle over > Django, if you ask me. Django is not all that difficult to get into, has a > well-established track record, and is eminently scalable. For serious > development, one also needs to worry about the community size, and support. > I do not even know that Flask/Bottle/what have an edge over Django for any > use case, but IMHO if so one would be talking about the scale of one the > largest sites on the Internet. Remember, premature oprtimisation is the > root of all evil. Sorry, but if you ask me I smell buzzword-driven > development. > > Regards, > Gora > > > On 23 June 2015 at 00:20, anu sree wrote: > > > Thanks krace, > > > > Good suggestion, I am going to use schematics with flask. I red > > about schematics and think that will help me keep validation code clean > and > > reduce number of statements in the code. > > > > Thanks > > > > On Mon, Jun 22, 2015 at 10:48 PM, kracekumar ramaraju < > > kracethekingmaker at gmail.com> wrote: > > > > > On Jun 22, 2015 19:03, "anu sree" wrote: > > > > > > > > Thanks anuvrat and krace, > > > > > > > > How do we do validation of data in the POST and PUT API request, if > we > > > use > > > > only native fask ?. > > > > > > That is where serialization library like schematics comes to play. Pass > > the > > > request data dict to serialization and call validate method. > > > > > > > I have seen a way in flask-restful, but I am planing to use only > native > > > > fask. > > > > > > > > > > > > > http://flask-restful.readthedocs.org/en/latest/api.html#reqparse.RequestParser > > > > > > > > Thanks, > > > > > > > > > > > > > > > > On Mon, Jun 22, 2015 at 6:28 PM, kracekumar ramaraju < > > > > kracethekingmaker at gmail.com> wrote: > > > > > > > > > The biggest problem with all rest apis except Django REST framework > > is > > > no > > > > > distinction between serializer and model. Soon that will be problem > > for > > > the > > > > > kind of tasks you want to do. > > > > > > > > > > I don't use any framework to create apis in Flask. > > > > > > > > > > I follow different approach, use schematics [1] for serialization, > > > Flask > > > > > method view and use model methods/service layer to interact with > dbs, > > > > > queues etc ... > > > > > > > > > > You can find the similar example for Django in schematics example > > > > > directory, it should be easy to implement in Flask too. > > > > > > > > > > [1]: http://github.com/schematics/schematics > > > > > _______________________________________________ > > > > > 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 asldevi at gmail.com Tue Jun 23 09:53:44 2015 From: asldevi at gmail.com (Devi) Date: Tue, 23 Jun 2015 13:23:44 +0530 Subject: [BangPypers] UI less Rest API server with flask In-Reply-To: References: Message-ID: On Mon, Jun 22, 2015 at 6:57 PM, anu sree wrote: > Thanks anuvrat and krace, > > How do we do validation of data in the POST and PUT API request, if we use > only native fask ?. > > You could use Cerberus[1], which is a simple validation library for python dictionaries. [1]: http://cerberus.readthedocs.org/en/latest/ From gora at mimirtech.com Tue Jun 23 09:58:16 2015 From: gora at mimirtech.com (Gora Mohanty) Date: Tue, 23 Jun 2015 13:28:16 +0530 Subject: [BangPypers] UI less Rest API server with flask In-Reply-To: References: Message-ID: On 23 June 2015 at 13:21, anu sree wrote: > Thanks gora, > > I am happy to use django-DRF if I can use it without doing syncdb. I don't > want to use models and orm. > > The REST API app which I am going to develop doesn't have models now. > OK. Normally one would use DRF along with Django models, but there is nothing that forces you to do that. However, if you are not using a database or other store, how are you planning on storing the objects that your API will provide access to? > > I also don't want the apps which are included in settings.INSTALLED_APPS by > default. > Don't know what that means. If you do not have any apps there is no need to put anything in INSTALLED_APPS. > > I also want to run some asynchronous task (to read a large xml file and > process it) from this REST API App, I think I can use celery + gevent here. > Celery makes sense. gevent changes the entire model of how your project works, so think carefully about how you want to proceed. Regards, Gora > > I just started reading http://www.django-rest-framework.org/ > > Thanks, > > On Tue, Jun 23, 2015 at 12:41 AM, Gora Mohanty wrote: > > > Hi, > > > > Since you seem to be determined to reinvent the wheel, may I ask what is > > your use case to choose flask + largely-roll-one's-own-rest-api vs. > Django > > + DRF? > > > > The same goes for all the recent hoopla in this list over Flask/Bottle > over > > Django, if you ask me. Django is not all that difficult to get into, has > a > > well-established track record, and is eminently scalable. For serious > > development, one also needs to worry about the community size, and > support. > > I do not even know that Flask/Bottle/what have an edge over Django for > any > > use case, but IMHO if so one would be talking about the scale of one the > > largest sites on the Internet. Remember, premature oprtimisation is the > > root of all evil. Sorry, but if you ask me I smell buzzword-driven > > development. > > > > Regards, > > Gora > > > > > > On 23 June 2015 at 00:20, anu sree wrote: > > > > > Thanks krace, > > > > > > Good suggestion, I am going to use schematics with flask. I red > > > about schematics and think that will help me keep validation code clean > > and > > > reduce number of statements in the code. > > > > > > Thanks > > > > > > On Mon, Jun 22, 2015 at 10:48 PM, kracekumar ramaraju < > > > kracethekingmaker at gmail.com> wrote: > > > > > > > On Jun 22, 2015 19:03, "anu sree" wrote: > > > > > > > > > > Thanks anuvrat and krace, > > > > > > > > > > How do we do validation of data in the POST and PUT API request, if > > we > > > > use > > > > > only native fask ?. > > > > > > > > That is where serialization library like schematics comes to play. > Pass > > > the > > > > request data dict to serialization and call validate method. > > > > > > > > > I have seen a way in flask-restful, but I am planing to use only > > native > > > > > fask. > > > > > > > > > > > > > > > > > > > http://flask-restful.readthedocs.org/en/latest/api.html#reqparse.RequestParser > > > > > > > > > > Thanks, > > > > > > > > > > > > > > > > > > > > On Mon, Jun 22, 2015 at 6:28 PM, kracekumar ramaraju < > > > > > kracethekingmaker at gmail.com> wrote: > > > > > > > > > > > The biggest problem with all rest apis except Django REST > framework > > > is > > > > no > > > > > > distinction between serializer and model. Soon that will be > problem > > > for > > > > the > > > > > > kind of tasks you want to do. > > > > > > > > > > > > I don't use any framework to create apis in Flask. > > > > > > > > > > > > I follow different approach, use schematics [1] for > serialization, > > > > Flask > > > > > > method view and use model methods/service layer to interact with > > dbs, > > > > > > queues etc ... > > > > > > > > > > > > You can find the similar example for Django in schematics example > > > > > > directory, it should be easy to implement in Flask too. > > > > > > > > > > > > [1]: http://github.com/schematics/schematics > > > > > > _______________________________________________ > > > > > > 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 lgp171188 at gmail.com Tue Jun 23 09:58:26 2015 From: lgp171188 at gmail.com (L. Guruprasad) Date: Tue, 23 Jun 2015 13:28:26 +0530 Subject: [BangPypers] UI less Rest API server with flask In-Reply-To: References: Message-ID: Hi Anu, On Tue, Jun 23, 2015 at 1:21 PM, anu sree wrote: > I just started reading http://www.django-rest-framework.org/ Once you have learnt enough of DRF to start writing code, this - http://www.cdrf.co/ will be a handy reference. Hope this helps :) Thanks & Regards, Guruprasad From anusree.a04 at gmail.com Tue Jun 23 10:08:37 2015 From: anusree.a04 at gmail.com (anu sree) Date: Tue, 23 Jun 2015 13:38:37 +0530 Subject: [BangPypers] UI less Rest API server with flask In-Reply-To: References: Message-ID: Thanks gora and guruprasad, I am not using database or other store. My API App just make different API requests to other rest api servers. Does celery need db ? Thanks, On Tue, Jun 23, 2015 at 1:28 PM, L. Guruprasad wrote: > Hi Anu, > > On Tue, Jun 23, 2015 at 1:21 PM, anu sree wrote: > > I just started reading http://www.django-rest-framework.org/ > > Once you have learnt enough of DRF to start writing code, this - > http://www.cdrf.co/ will be a handy reference. > > Hope this helps :) > > Thanks & Regards, > Guruprasad > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From kracethekingmaker at gmail.com Tue Jun 23 10:42:03 2015 From: kracethekingmaker at gmail.com (kracekumar ramaraju) Date: Tue, 23 Jun 2015 16:42:03 +0800 Subject: [BangPypers] UI less Rest API server with flask In-Reply-To: References: Message-ID: On Tue, Jun 23, 2015 at 4:08 PM, anu sree wrote: > Thanks gora and guruprasad, > > I am not using database or other store. My API App just make different API > requests to other rest api servers. > > Does celery need db ? > > > Unless results of the tasks needs to be stored or any scheduled tasks are registered via celery doesn't need db. Thanks, > > On Tue, Jun 23, 2015 at 1:28 PM, L. Guruprasad > wrote: > > > Hi Anu, > > > > On Tue, Jun 23, 2015 at 1:21 PM, anu sree wrote: > > > I just started reading http://www.django-rest-framework.org/ > > > > Once you have learnt enough of DRF to start writing code, this - > > http://www.cdrf.co/ will be a handy reference. > > > > Hope this helps :) > > > > Thanks & Regards, > > Guruprasad > > _______________________________________________ > > 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 > -- *Thanks & Regardskracekumar"Talk is cheap, show me the code" -- Linus Torvaldshttp://kracekumar.com * From vasudevram at gmail.com Tue Jun 23 18:42:21 2015 From: vasudevram at gmail.com (Vasudev Ram) Date: Tue, 23 Jun 2015 22:12:21 +0530 Subject: [BangPypers] UI less Rest API server with flask In-Reply-To: References: Message-ID: Chipping in with my 2c. If the project is a hobby project (sorry if I missed that in the thread) or not time-critical or in early stages, it might not be a bad idea to roll your own code as much as possible for the REST stuff, just using a bare-bones web framework like Flask or Bottle or CherryPy and writing the rest. I have done something along these lines, though not fully, in a project a while ago, and it was fun and learning too. If nothing else, it will be a learning exercise, and may also give insights into what your crucial requirements are, which may help in shortlisting 3rd party libs. - Vasudev --- "Inspired by nature" Vasudev Ram - Dancing Bison Enterprises Independent software consultant and trainer: Python, C, SQL, Unix/Linux, bash/sed/awk, PDF generation, open source, ... About: http://jugad2.blogspot.in/p/about-vasudev-ram.html vasudevram at gmail.com \Python posts: http://jugad2.blogspot.com/search/label/python xtopdf, a Swiss army knife for PDF creation: http://slid.es/vasudevram/xtopdf On Tue, Jun 23, 2015 at 2:12 PM, kracekumar ramaraju wrote: > On Tue, Jun 23, 2015 at 4:08 PM, anu sree wrote: > >> Thanks gora and guruprasad, >> >> I am not using database or other store. My API App just make different API >> requests to other rest api servers. >> >> Does celery need db ? >> >> >> > Unless results of the tasks needs to be stored or any scheduled tasks are > registered via celery > doesn't need db. > > Thanks, >> >> On Tue, Jun 23, 2015 at 1:28 PM, L. Guruprasad >> wrote: >> >> > Hi Anu, >> > >> > On Tue, Jun 23, 2015 at 1:21 PM, anu sree wrote: >> > > I just started reading http://www.django-rest-framework.org/ >> > >> > Once you have learnt enough of DRF to start writing code, this - >> > http://www.cdrf.co/ will be a handy reference. >> > >> > Hope this helps :) >> > >> > Thanks & Regards, >> > Guruprasad >> > _______________________________________________ >> > 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 >> > > > > -- > > *Thanks & Regardskracekumar"Talk is cheap, show me the code" -- Linus > Torvaldshttp://kracekumar.com * > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers From citijobs.125 at gmail.com Wed Jun 24 02:52:30 2015 From: citijobs.125 at gmail.com (citi jobs) Date: Wed, 24 Jun 2015 06:22:30 +0530 Subject: [BangPypers] [Jobs] Python Developer Pune Location Message-ID: CitiBank, Pune Multiple Job Opening with Strong Python Development Skill with Good Analytical ability having experience in one of the bracket: 3-5 Yrs, 5-8 Yrs, 8-12 Yrs and 12+ Yrs. Job Location - Pune Company Name - Citi Services India Limited (CitiBank), Pune Please mail your resume at citijobs.125 at gmail.com. From vnbang2003 at gmail.com Wed Jun 24 06:27:40 2015 From: vnbang2003 at gmail.com (vijay kumar) Date: Wed, 24 Jun 2015 09:57:40 +0530 Subject: [BangPypers] [X-post] [PyCon India 2015] Sponsorship Message-ID: Hi , As everyone is aware PyCon India 2015 is held in Bangalore on Oct 2nd - 4th 2015. PyCon India is a volunteer driven event, we have conducted six PyCon India conferences so far and the upcoming 2015 conference is 7th year. We have improved a lot throughout these 6 years and this year will be a great one too. Sponsorship makes the event accessible and affordable to the widest possible audience and we are looking for sponsors. Benefits - PyCon India Banners and Posters speak about you and advertise your company. - Opportunity to speak to other Python developers(more than 1000) and recruit them in a single place. - You get free passes where you are allowed to explore the opportunities in Python world and expand your business sitting in a professional stall in PyCon India. You can demo your products, engage your visitors with technical discussions, share and learn, distribute goodies all up to you how you want to market your company! - There is no other event in India which attracts people from zero experience and all the way through Python standard library contributors. - Organization of strength 10, can avail 50% discount or become Associate sponsor. For more information: https://in.pycon.org/2015/sponsorship.html Interested? Reach us @ sponsorship at in.pycon.org and tell us the slot you are looking for. Contribute back to the community by helping PyCon India and Python community in India to grow. Spread the word. From mandarvaze at gmail.com Thu Jun 25 08:42:18 2015 From: mandarvaze at gmail.com (=?UTF-8?B?TWFuZGFyIFZhemUgLyDgpK7gpILgpKbgpL7gpLAg4KS14KSd4KWH?=) Date: Thu, 25 Jun 2015 12:12:18 +0530 Subject: [BangPypers] UI less Rest API server with flask In-Reply-To: References: Message-ID: On Tue, Jun 23, 2015 at 1:23 PM, Devi wrote: > On Mon, Jun 22, 2015 at 6:57 PM, anu sree wrote: > > > Thanks anuvrat and krace, > > > > How do we do validation of data in the POST and PUT API request, if we > use > > only native fask ?. > > > > > You could use Cerberus[1], which is a simple validation library for python > dictionaries. > > [1]: http://cerberus.readthedocs.org/en/latest/ Cerberus is already part of python-eve (Written by the same person) I'm trying python-eve currently myself (still in early stage of exploration) -Mandar From joepaulp at gmail.com Fri Jun 26 16:26:05 2015 From: joepaulp at gmail.com (Joe Paul) Date: Fri, 26 Jun 2015 16:26:05 +0200 Subject: [BangPypers] from: Joe Paul Message-ID: <5646DF0C-9623-43F1-BF5B-977F463AA876@neostrada.pl> Hi bangpypers http://classictreekc.com/while.php?send=8d4zyn4qytwwmk6f Joe Paul Sent from my iPhone From argunale at gmail.com Sun Jun 28 04:53:00 2015 From: argunale at gmail.com (aneelr Gunale) Date: Sun, 28 Jun 2015 08:23:00 +0530 Subject: [BangPypers] =?utf-8?q?Waaasaqawaaaasaqeaqaaaawasraqasaaqaawwqf?= =?utf-8?b?w6d4eGNh?= Message-ID: DarawaaaqAaqxaaraefsqQ was a From kracethekingmaker at gmail.com Sun Jun 28 08:11:35 2015 From: kracethekingmaker at gmail.com (kracekumar ramaraju) Date: Sun, 28 Jun 2015 11:41:35 +0530 Subject: [BangPypers] =?utf-8?q?Waaasaqawaaaasaqeaqaaaawasraqasaaqaawwqf?= =?utf-8?b?w6d4eGNh?= In-Reply-To: References: Message-ID: Removed the user from the list. On Sun, Jun 28, 2015 at 8:23 AM, aneelr Gunale wrote: > DarawaaaqAaqxaaraefsqQ was a > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > -- *Thanks & Regardskracekumar"Talk is cheap, show me the code" -- Linus Torvaldshttp://kracekumar.com * From deadmanwalking.aditya at gmail.com Sun Jun 28 08:14:39 2015 From: deadmanwalking.aditya at gmail.com (Aditya Krishnamurthy) Date: Sun, 28 Jun 2015 11:44:39 +0530 Subject: [BangPypers] =?utf-8?q?Waaasaqawaaaasaqeaqaaaawasraqasaaqaawwqf?= =?utf-8?b?w6d4eGNh?= In-Reply-To: References: Message-ID: what is the point of such mails? is there some use to such spamming like data scraping? if yes, does anybody know how it is done? just out of curiosity, I don't mean to spam here.. On Sun, Jun 28, 2015 at 11:41 AM, kracekumar ramaraju < kracethekingmaker at gmail.com> wrote: > Removed the user from the list. > > On Sun, Jun 28, 2015 at 8:23 AM, aneelr Gunale wrote: > > > DarawaaaqAaqxaaraefsqQ was a > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > https://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > > *Thanks & Regardskracekumar"Talk is cheap, show me the code" -- Linus > Torvaldshttp://kracekumar.com * > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From anandpillai at letterboxes.org Sun Jun 28 10:36:50 2015 From: anandpillai at letterboxes.org (Anand B Pillai) Date: Sun, 28 Jun 2015 14:06:50 +0530 Subject: [BangPypers] =?utf-8?q?Waaasaqawaaaasaqeaqaaaawasraqasaaqaawwqf?= =?utf-8?b?w6d4eGNh?= In-Reply-To: References: Message-ID: <558FB222.9040004@letterboxes.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday 28 June 2015 11:41 AM, kracekumar ramaraju wrote: > Removed the user from the list. An errant kid of the user ? It is the age of touch screen phones and all kinds of weird stuff happens. > > On Sun, Jun 28, 2015 at 8:23 AM, aneelr Gunale > wrote: > >> DarawaaaqAaqxaaraefsqQ was a >> _______________________________________________ BangPypers >> mailing list BangPypers at python.org >> https://mail.python.org/mailman/listinfo/bangpypers >> > > > - -- Regards, - --Anand - ---------------------------- Software Architect/Consultant anandpillai at letterboxes.org Cell: +919880078014 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJVj7IhAAoJEHKU2n17CpvDzM0H/ij/oGEhT5dszHkBhCL06Jld reFR/nv3d3o5uwGQ6WK7bZ1/Ogdh+H4voqghtoyR1+gaLT8XM4BZ4zjDyyW5s0fG si9Xq8YCSwy27fQ+Fdokc7QoB2+URjpUel+ocTbnlJHac8G59pUFjJxVmUaU01sy 7cN16FKz21lvpsz5cFEgnSIW40ytzEfVQCpTq9BWexV6WBDoPj35ahOJoHDMtXNB 7KFLR1m82ieb0AFTDkSwP6ILlm1CntlLY/fKBcKtlwarEIU9QK4C+KnxDDi4fvbV qcOH4b9shpYE7RNcmVhfno4tzoSw9TmxHRb5Mm6deFWF+rDf4ibVZDmRhltvngQ= =uZYO -----END PGP SIGNATURE----- From abdulmuneer at gmail.com Mon Jun 29 07:22:08 2015 From: abdulmuneer at gmail.com (Abdul Muneer) Date: Mon, 29 Jun 2015 10:52:08 +0530 Subject: [BangPypers] =?utf-8?q?Waaasaqawaaaasaqeaqaaaawasraqasaaqaawwqf?= =?utf-8?b?w6d4eGNh?= In-Reply-To: <558FB222.9040004@letterboxes.org> References: <558FB222.9040004@letterboxes.org> Message-ID: That is what I also thought. My kid sometimes walks on the keyboard when I'm not paying attention. Ignore if it is not a repeating offense. Regards, Abdul Muneer -- Follow me on Twitter: @abdulmuneer On Sun, Jun 28, 2015 at 2:06 PM, Anand B Pillai wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Sunday 28 June 2015 11:41 AM, kracekumar ramaraju wrote: > > Removed the user from the list. > > An errant kid of the user ? It is the age of touch screen phones and > all kinds of weird stuff happens. > > > > On Sun, Jun 28, 2015 at 8:23 AM, aneelr Gunale > > wrote: > > > >> DarawaaaqAaqxaaraefsqQ was a > >> _______________________________________________ BangPypers > >> mailing list BangPypers at python.org > >> https://mail.python.org/mailman/listinfo/bangpypers > >> > > > > > > > > > - -- > Regards, > > - --Anand > > - ---------------------------- > Software Architect/Consultant > anandpillai at letterboxes.org > > Cell: +919880078014 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1 > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iQEcBAEBAgAGBQJVj7IhAAoJEHKU2n17CpvDzM0H/ij/oGEhT5dszHkBhCL06Jld > reFR/nv3d3o5uwGQ6WK7bZ1/Ogdh+H4voqghtoyR1+gaLT8XM4BZ4zjDyyW5s0fG > si9Xq8YCSwy27fQ+Fdokc7QoB2+URjpUel+ocTbnlJHac8G59pUFjJxVmUaU01sy > 7cN16FKz21lvpsz5cFEgnSIW40ytzEfVQCpTq9BWexV6WBDoPj35ahOJoHDMtXNB > 7KFLR1m82ieb0AFTDkSwP6ILlm1CntlLY/fKBcKtlwarEIU9QK4C+KnxDDi4fvbV > qcOH4b9shpYE7RNcmVhfno4tzoSw9TmxHRb5Mm6deFWF+rDf4ibVZDmRhltvngQ= > =uZYO > -----END PGP SIGNATURE----- > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From sjce.murali at gmail.com Mon Jun 29 14:16:04 2015 From: sjce.murali at gmail.com (Muralikrishna B.R) Date: Mon, 29 Jun 2015 17:46:04 +0530 Subject: [BangPypers] (no subject) Message-ID: