Preview of "Explore Flask" Book(exploreflask.com) |
Preview of "Explore Flask" Book(exploreflask.com) |
For the record, here it is: http://flask.pocoo.org/
Without having seen it yet, one thing I'd love to see is "Flask for recovering Djangonauts" or something similar, in addition to how to use Flask at scale. Basically, best practices, advice, and some good libraries for someone who doesn't want ALL the batteries included in their framework, but also would prefer some more reliability than randomly slapping some libraries together and hoping for the best. The intimidation of not having true official integration for a lot of Flask plug-ins is what has kept me from doing anything at scale with Flask so far, recognizing that this is not necessarily a valid concern.
I'm the author if anyone has any questions. If you have some feedback, I'm looking forward to seeing bug reports on GitHub: https://github.com/rpicard/explore-flask
I've considered doing an HTML version, but I haven't put a ton of thought into it.
I think there's a great book to be written about scaling codebases that started out as monolithic MVC frameworks (Django, Rails, Struts, etc.) I find Flask's design is heavily informed by the problems that monolithic frameworks create, so it would be a great case study, but it's totally out of scope for an intro to flask, though.
As far as official library integration goes, I wouldn't worry about it too much. There are several standard extensions that people use (e.g. Flask-WTF, Flask-Bcrypt, Flask-SQLAlchemy) and as long as you stick with them you'll be alright. They're usually just wrappers around major Python libraries (WTForms, Bcrypt, SQLAlchemy) so the source is easy enough to check out.