TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Flask 1.0 Released

548 点作者 JonoBB大约 7 年前

19 条评论

nickjj大约 7 年前
Flask has a stigma for not being that good when building larger apps, but honestly Flask scales really well for that type of use case (coming from a development &#x2F; maintenance point of view).<p>I have some pretty large Flask apps with dozens of top level dependencies and models spanning across many thousands of lines of code. Even if I don&#x27;t touch the code base for a few months, it&#x27;s easy to jump back into it.<p>I&#x27;m also a huge fan of Rails, but truthfully I find Flask apps to be easier to reason about and hack on once they grow to a decent size, simply because Blueprints make it really straight forward and intuitive to modularize your application without increasing the complexity of everything by using micro-services.<p>If anyone wants to jump into Flask and start building real world apps, you may want to check out <a href="https:&#x2F;&#x2F;buildasaasappwithflask.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;buildasaasappwithflask.com&#x2F;</a>. It&#x27;s a full blown course where we build a SAAS application using Flask and Docker. I recently added a free RESTful API bonus section to the course and now that Flask 1.0 out, I&#x27;ll be adding another free update which will cover updating all of the packages in the main app. Just going to wait for the dust to settle on the 1.0 release first.
评论 #16936382 未加载
评论 #16937872 未加载
评论 #16938316 未加载
评论 #16937046 未加载
评论 #16936771 未加载
评论 #16937459 未加载
评论 #16938791 未加载
评论 #16936941 未加载
BerislavLopac大约 7 年前
I understand that Flask has become popular because it is easy to learn, but my experience is that as your knowledge progresses it just keeps getting in your way. I particularly dislike some design choices which look like afterthought hacks, such as global variables for current request and using abort() functions instead of raising exceptions directly.<p>EDIT: To avoid hollow naysaying, here are some alternatives to Flask I find much better designed:<p><pre><code> - Tornado Web Framework [0] - Falcon [1] </code></pre> [0] <a href="http:&#x2F;&#x2F;www.tornadoweb.org&#x2F;en&#x2F;stable&#x2F;webframework.html" rel="nofollow">http:&#x2F;&#x2F;www.tornadoweb.org&#x2F;en&#x2F;stable&#x2F;webframework.html</a><p>[1] <a href="https:&#x2F;&#x2F;falconframework.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;falconframework.org&#x2F;</a>
评论 #16936079 未加载
评论 #16936098 未加载
评论 #16936124 未加载
评论 #16936745 未加载
评论 #16936175 未加载
评论 #16936089 未加载
评论 #16940002 未加载
评论 #16936504 未加载
评论 #16937923 未加载
评论 #16936243 未加载
评论 #16939188 未加载
deft大约 7 年前
Never even realised it wasn&#x27;t 1.0, maybe I should pay attention to version numbers. Changelog looks good!<p>I&#x27;ve never understood logging in Flask or how to do it in a sane way for a simple app while using uWSGI, so I&#x27;m glad that has some improvements. I don&#x27;t remember my exact issues but I couldn&#x27;t get configuration from a text file to work and for some reason configuring it in-code wouldn&#x27;t work either. I don&#x27;t understand python&#x27;s logger in general so I&#x27;m sure that&#x27;s part of the problem. The changelog is vague on details, but hopefully whatever was modified really does make things simpler and solves my issues for me.
评论 #16936090 未加载
评论 #16936297 未加载
metalliqaz大约 7 年前
Flask is an interesting project. Created by a true Python master only to be nearly abandoned, and yet it remained so popular it was later revived by a new group without a major fork. How often does THAT happen?<p>The post describes it as &quot;stable for a long time&quot; :)
评论 #16935976 未加载
评论 #16940633 未加载
memonkey大约 7 年前
Love Flask. It is my favorite back-end framework and has fit all of my needs. Getting a server up and running with Flask is incredibly simple and if anybody hasn&#x27;t played with it yet, I highly recommend it.
评论 #16938077 未加载
jxub大约 7 年前
This is epic. In theory now from V1 onwards it should be easier to convince people at big serious corps to use Flask as it cuts down a lot of Django bloat especially for smaller applications, microservices and other nimble backends.
评论 #16936037 未加载
评论 #16936029 未加载
评论 #16938105 未加载
mixmastamyk大约 7 年前
Love Flask in theory. My biggest complaint was trying to do user management with it. Flask-Security was good, but the developer skipped town a few years ago. Did they come back? :D<p>Basically you are left to your own devices, which sounds great, but user+auth is pretty fundamental to be left to a random absentee third-party in my opinion.
评论 #16938371 未加载
评论 #16936803 未加载
评论 #16937468 未加载
评论 #16941294 未加载
ryanar大约 7 年前
Awesome news! I am sad to see you leave Zero Versioning though. [1]<p>[1] <a href="https:&#x2F;&#x2F;0ver.org&#x2F;#notable-zerover-projects" rel="nofollow">https:&#x2F;&#x2F;0ver.org&#x2F;#notable-zerover-projects</a>
评论 #16938137 未加载
dsc_大约 7 年前
We (a big newspaper - 5k-10k visitors at any time) run on Flask. Quite a big application.<p>It was the biggest reason why I choose this job, as many python shops seem to run Django which I&#x27;m not a fan of.
akmittal大约 7 年前
Flash was the first backend framework I really understood. It was very easy to get started with. I no longer use it but it made it so easy to learn web development.
aphextron大约 7 年前
Is there a good &quot;zero config&quot; application server for Flask that is considered standard now? I absolutely loved building an app with Flask but I rememeber deployment being a pain.
评论 #16938628 未加载
oca159大约 7 年前
I don&#x27;t understand why use Flask instead of Django, I usually work with a lot of crud systems, I think that Django is the best option to do it. I think that Django is better because it has an autogenerated admin site and this is really helpful when you work with the customers, they can easily populate the database while you work in the logic
评论 #16938638 未加载
评论 #16939100 未加载
评论 #16939141 未加载
adjkant大约 7 年前
Flask is an absolutely amazing experience for small-mid sized projects. You have to hand roll and pull in things for bigger projects, but I think it&#x27;s great when you want &quot;just what I need and nothing extra&quot;.<p>I&#x27;d be curious to see some sort of flask &quot;bundles&quot; that would allow it to make more sense for large-scale projects.
ksahin大约 7 年前
<a href="https:&#x2F;&#x2F;github.com&#x2F;hack4impact&#x2F;flask-base" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;hack4impact&#x2F;flask-base</a> is an incredible boilerplate for Flask, I use it for every projects ! Lots of basic web stuff included, user management, redis queue for asynchronous tasks etc..
评论 #16937032 未加载
_eht大约 7 年前
I can&#x27;t speak to large apps, but it sure is nice for rapid prototypes. I wanted to play with the Twilio API the other day, and it make things really easy: <a href="https:&#x2F;&#x2F;github.com&#x2F;e-ht&#x2F;89memes" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;e-ht&#x2F;89memes</a>
abhishekjha大约 7 年前
This[0] is a pretty good starting point. The organisation of modules as well as the swagger documentation provides a pretty good insight about what can be done in flask. Out of curiosity, is it possible to change a few tags in the swagger doc that one gets to see in the browser? I would like to take a few tags out. I looked it up for spring and the process was pretty daunting.<p>[0]<a href="http:&#x2F;&#x2F;michal.karzynski.pl&#x2F;blog&#x2F;2016&#x2F;06&#x2F;19&#x2F;building-beautiful-restful-apis-using-flask-swagger-ui-flask-restplus&#x2F;" rel="nofollow">http:&#x2F;&#x2F;michal.karzynski.pl&#x2F;blog&#x2F;2016&#x2F;06&#x2F;19&#x2F;building-beautifu...</a>
luord大约 7 年前
Awesome news. Time to update my project templates.
chasedehan大约 7 年前
wow, lot of Flask haters here.<p>I personally love it and have used it for a ton of smaller projects. For example, I just deployed this a couple days ago: <a href="http:&#x2F;&#x2F;dadjoke.info" rel="nofollow">http:&#x2F;&#x2F;dadjoke.info</a>
评论 #16937919 未加载
评论 #16944807 未加载
评论 #16937161 未加载
评论 #16938931 未加载
评论 #16936754 未加载
cup-of-tea大约 7 年前
People always talk about scaling large apps with Flask or Django, but I think that misses the point. If your app gets large enough it will inevitably start to go its own way. The point of these libraries is that lets you do a hell of a lot really quickly.<p>I&#x27;m someone who quit web programming in around 2008 while IE6 was still a thing. I used to write PHP without a framework. As someone just getting back into it, Django and Flask or downright magical. I can do so much so quickly that would have taken days to do before. With Flask-RESTful you can turn some code into a microservice in about 10 minutes.<p>For me, this is what makes these libraries great, not that they will fit every need of every app ever.