I find myself using these libraries in every new Flask project I set up:
* pytest and pytest-cov
* Flask-SQLAlchemy and psycopg2
* celery and redis
* Flask-WTF and WTForms-Components
If you want to know why I use all of these libraries, more details can be found at
What's your favorite extensions and libraries?
6 thoughts on “When I create a new Flask project, here are 15 libraries that are always in my requirements.txt file. What libraries do you use?”
Thanks for the post, there were a couple things there I wasn’t aware of!
A few that aren’t necessarily flask specific but I find pretty useful for flask-like projects:
* pendulum – THE datetime library that you should use
* pprintpp – Pretty printing of dictionries that is actually readable
* flask-migrate – Alembic done up for Flask apps
* inflection – Just some amazing string manipulation awesomeness.
* flake8 – Don’t leave /home without it
* pytest – Forget everything you know about nose and unittest. Seriously
* snakeviz – Profiling visualizer that lets you drill down graphically and quickly and intuitively
* flask-buzz, py-buzz – Exceptions with extras
* flask-praetorian – Strong, simple, and precise security for flask APIs
* sphinx-view – Instantly preview your reStructuredText and Sphinx documents
Nice list. I use Flask-Cache quite a bit as well.
Flask-User. Combines flask-wtf, flask-login, flask-mail and allows email confirmation of passwords, emails users when passwords have been changed and hashes passwords.
These are all good! I recently used ‘flask_restplus’ for the first time and don’t see any mention of it here. Thought it was cool how it simultaneously validates JSON input/output for APIs while automatically documenting with a Swagger API page
This tutorial is everything one would need to know to get started: