From davidism at gmail.com Wed May 2 12:15:06 2018 From: davidism at gmail.com (David Lord) Date: Wed, 2 May 2018 09:15:06 -0700 Subject: [Flask] Flask 1.0 released Message-ID: You may have seen the news by now: Flask 1.0 was released! ? Sorry I forgot to let the mailing list know sooner! Now that the dust has had some time to settle (and 1.0.2 has been released to fix the early issues), it's a great time to check out the blog post and changelog and try it out. We also released 0.12.4 to backport a security fix for those who can't do a major upgrade yet. Please follow the RSS feed and @PalletsTeam on Twitter for updates. Flask is currently in a very stable place. There are only 18 open issues, most of which are docs updates or feature discussions. However, there is still a lot of work to be done in Pallets. Werkzeug and Jinja have many open issues, and Click needs a lot of attention. Please take a look and contribute if you can. Even if you don't want to submit patches, you can help by triaging and investigating issues, reviewing pull requests, and writing docs. If you're attending PyCon US this year, I'll be running three days of sprints, May 14, 15, and 16 for the Pallets projects. Come visit and I'll help you get started contributing. We're also happy to announce that we now take donations through the PSF. Read the full announcement here. Donations will help the maintainers devote more time to the projects, as well as grow and support the community. If your company uses Flask or another Pallets project, reach out to them about contributing. Go here to donate today. Thank you to the community for all your support. ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeff at jeffwidman.com Wed May 2 12:40:29 2018 From: jeff at jeffwidman.com (Jeff Widman) Date: Wed, 02 May 2018 16:40:29 +0000 Subject: [Flask] Flask 1.0 released In-Reply-To: References: Message-ID: Thank you David for driving all these improvements! On Wed, May 2, 2018, 9:15 AM David Lord wrote: > You may have seen the news by now: Flask 1.0 was released! ? Sorry I > forgot to let the mailing list know sooner! Now that the dust has had some > time to settle (and 1.0.2 has been released to fix the early issues), it's > a great time to check out the blog post > and changelog > and try it out. We also released > 0.12.4 to backport a security fix for those who can't do a major upgrade > yet. Please follow the RSS feed > and @PalletsTeam > on Twitter for updates. > > Flask is currently in a very stable place. There are only 18 open issues, > most of which are docs updates or feature discussions. However, there is > still a lot of work to be done in Pallets. Werkzeug > and Jinja > have many open issues, and Click > needs a lot of attention. > Please take a look and contribute if you can. Even if you don't want to > submit patches, you can help by triaging and investigating issues, > reviewing pull requests, and writing docs. > > If you're attending PyCon US this year, I'll be running three days of > sprints, May 14, 15, and 16 for the Pallets projects. Come visit and I'll > help you get started contributing. > > We're also happy to announce that we now take donations through the PSF. Read > the full announcement here. > Donations will help the maintainers devote more time to the projects, as > well as grow and support the community. If your company uses Flask or > another Pallets project, reach out to them about contributing. Go here to > donate today. > > > Thank you to the community for all your support. ? > _______________________________________________ > Flask mailing list > Flask at python.org > https://mail.python.org/mailman/listinfo/flask > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tucker.beck at gmail.com Wed May 2 14:32:39 2018 From: tucker.beck at gmail.com (Tucker Beck) Date: Wed, 2 May 2018 11:32:39 -0700 Subject: [Flask] Adding extensions to list of approved extensions Message-ID: I would like to know what the procedure is for adding extensions. I would like to get my package flask-praetorian added if possible. I've gone through the checklist and satisified all the requirements except for: - python 2.7 support - Is this requirement still valid with python 2 so close to end of life? - "there must be a link to automatically install the development version" - I don't really know what this is, and I don't see it on other approved extensions I've been working on this package for a while, and it is being used in production on at least one system. Please take a look at the docs and let me know. Thanks! dusktreader at github -------------- next part -------------- An HTML attachment was scrubbed... URL: From davidism at gmail.com Wed May 2 15:46:03 2018 From: davidism at gmail.com (David Lord) Date: Wed, 2 May 2018 12:46:03 -0700 Subject: [Flask] Adding extensions to list of approved extensions In-Reply-To: References: Message-ID: Don't worry too much about the guidelines for now, I need to find time to update them, and I'm not currently evaluating extensions as "approved". Submit a PR to https://github.com/pallets/flask-docs to add the extension to the list. On Wed, May 2, 2018 at 11:32 AM, Tucker Beck wrote: > I would like to know what the procedure is for adding extensions. > > I would like to get my package flask-praetorian > added if possible. > > I've gone through the checklist and satisified all the requirements except > for: > > - python 2.7 support > - Is this requirement still valid with python 2 so close to end of > life? > - "there must be a link to automatically install the development > version" > - I don't really know what this is, and I don't see it on other > approved extensions > > > I've been working on this package for a while, and it is being used in > production on at least one system. > > Please take a look at the docs and let me know. > > Thanks! > > dusktreader at github > > > _______________________________________________ > Flask mailing list > Flask at python.org > https://mail.python.org/mailman/listinfo/flask > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gerdakan.sa at gmail.com Sat May 19 03:44:24 2018 From: gerdakan.sa at gmail.com (senaps) Date: Sat, 19 May 2018 12:14:24 +0430 Subject: [Flask] I get broken pipe while running flask with uwsgi! Message-ID: hi all. so, i have an application with some pages, one being the dashboard page. in dashboard, there is a js code that sends ajax requests to the server every 2 seconds and shows the updated result on the dash. ( so i can't remove the js or lower request times it should be 2 seconds) problem is, if i click on any link(redirects) on the dashboard, there is a very high chance to get a broken pipe error and return to dashboard again( i don't see any other page, it just refreshes the dashboard page) i have a development server, but i have the same problem with uwsgi too. this is the broken pipe thing i get: https://paste.ubuntu.com/p/bpZKxm8yKC/ and i have tested the functionality to work without any problem if that js isn't working. -------------- next part -------------- An HTML attachment was scrubbed... URL: From abhichaudhary3 at gmail.com Mon May 21 03:21:07 2018 From: abhichaudhary3 at gmail.com (Abhishek Chaudhary) Date: Mon, 21 May 2018 12:51:07 +0530 Subject: [Flask] Doubts Message-ID: I am trying to develop an a web app that counts the no. of cars coming into a parking facility. The back end code is ready and is able to successfully get the no. of people coming in and out of the facility. How would i be able to run this python code from my app so that i can display the camera output and a few dynamically changing graphs on my interface? -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsdtux at gmail.com Mon May 21 08:20:45 2018 From: bsdtux at gmail.com (Josh Stephens) Date: Mon, 21 May 2018 07:20:45 -0500 Subject: [Flask] Doubts In-Reply-To: References: Message-ID: <18D9C95E-52E2-427E-A831-DD237C6564CA@gmail.com> Hi abhishek, For displaying charts you are probably going to want to use something like chartjs. This javascript library can create nice looking charts. To run this app and display camera output you might have luck using opencv. Miguel has written a great article on using opencv https://blog.miguelgrinberg.com/post/flask-video-streaming-revisited. Best regard, Josh Stephens Sent from my iPhone > On May 21, 2018, at 2:21 AM, Abhishek Chaudhary wrote: > > I am trying to develop an a web app that counts the no. of cars coming into a parking facility. > The back end code is ready and is able to successfully get the no. of people coming in and out of the facility. > How would i be able to run this python code from my app so that i can display the camera output and a few dynamically changing graphs on my interface? > _______________________________________________ > Flask mailing list > Flask at python.org > https://mail.python.org/mailman/listinfo/flask -------------- next part -------------- An HTML attachment was scrubbed... URL: From mlacerda007 at gmail.com Thu May 24 09:00:48 2018 From: mlacerda007 at gmail.com (Miguel Lacerda) Date: Thu, 24 May 2018 15:00:48 +0200 Subject: [Flask] Parallel execution of a single request Message-ID: Hi everyone Is it possible to run the computations of a single request to a flask web app across multiple CPUs? There is plenty of information on running multiple requests in parallel, but nothing that I could find on parallelizing the computation in a single request. Here is a toy example to illustrate what I am trying to do: from flask import Flaskfrom joblib import Parallel, delayedfrom time import sleep def myfunc(x): sleep(5) return x application = Flask(__name__) @application.route('/', methods = ['GET'])def getresult(): out = Parallel(n_jobs=-1, verbose=10)(delayed(myfunc)(i) for i in range(5)) return str(sum(out)) if __name__ == "__main__": application.debug = True application.run() This produces the following warning: UserWarning: Multiprocessing-backed parallel loops cannot be nested below threads, setting n_jobs=1 and consequently does not run in parallel. To give you some context, the version of myfunc that I am actually using makes millions of predictions based on a machine learning algorithm (each of which can be produced independently) that are then ranked and returned by the application. My intention is to deploy the app on an Amazon EC2 instance with many CPUs so that the predictions can be performed quickly in parallel. Any assistance would be greatly appreciated! Miguel -------------- next part -------------- An HTML attachment was scrubbed... URL: