When I create a new Flask project, here are 15 libraries that are always in my requirements.txt file. What libraries do you use?

I find myself using these libraries in every new Flask project I set up:

* gunicorn
* flask-debugtoolbar
* pytest and pytest-cov
* flake8
* Flask-SQLAlchemy and psycopg2
* alembic
* celery and redis
* Flask-WTF and WTForms-Components
* Flask-Login
* Flask-Limiter
* Flask-Mail

If you want to know why I use all of these libraries, more details can be found at
https://nickjanetakis.com/blog/15-useful-flask-extensions-and-libraries-that-i-use-in-every-project.

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?”

  1. 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

    Shameless self-promotion:

    * 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

    Reply
  2. 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.

    Reply

Leave a Comment