A Cookiecutter project template for Python Flask projects.
cookiecutter https://github.com/sgraaf/cookiecutter-python-flask.git
- Configuration in environment variables, as per The Twelve-Factor App
- Utilizes best practices, such as Blueprints and Application Factories
- ORM via Flask-SQLAlchemy with a (basic) User model
- Easy database management via Flask-DB
- Forms via Flask-WTF with login, registration and password reset forms
- E-mail sending via Flask-Mail
- User session management (i.e. authentication) via Flask-Login
- Strong password hashing via Flask-Bcrypt
- Date and time formatting using Moment.js via Flask-Moment
- Bootstrap 5 via Bootstrap-Flask with starter templates
- Linting with pre-commit and flake8
- Code formatting with isort, black and Prettier
- Type checking with mypy
- Remove unused imports with autoflake
- Import sorting with isort
- Automatic Python syntax upgrades with pyupgrade
- Automatic git initialization
- Automatic virtual environment creation
- Automatic requirements installation
This template supports Python 3.7, 3.8, 3.9 en 3.10.