.. Flask Kit documentation master file, created by sphinx-quickstart on Sat Jun 7 06:53:53 2014. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. Welcome to Flask Kit's documentation! ===================================== Flask Kit is extendable backbone for your new `Flask `_ projects and the set of useful helpers to avoid some routine. It makes use of some useful extensions from `official Flask extensions registry `_. Have a look in :mod:`ext` and :mod:`app` to see how they are used. Below a brief description for each of them. Used extensions --------------- DebugToolbar : in-browser debug tools ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ `Flask-DebugToolbar `_ is a port of the `Django debug toolbar `_ to Flask. Login: user authentification layer ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ `Flask-Login `_ provides user session management for Flask. It handles the common tasks of logging in, logging out, and remembering your users’ sessions over extended periods of time. It will: * Store the active user’s ID in the session, and let you log them in and out easily. * Let you restrict views to logged-in (or logged-out) users. * Handle the normally-tricky “remember me” functionality. * Help protect your users’ sessions from being stolen by cookie thieves. * Possibly integrate with `Flask-Principal `_ or other authorization extensions later on. .. toctree:: :maxdepth: 2 integrate-login SQLAlchemy : the ORM layer ~~~~~~~~~~~~~~~~~~~~~~~~~~ `Flask-SQLAlchemy `_ is an extension for Flask that adds support for `SQLAlchemy `_ to your application. It aims to simplify using SQLAlchemy with Flask by providing useful defaults and extra helpers that make it easier to accomplish common tasks. .. toctree:: :maxdepth: 2 integrate-sqlalchemy WTF : Better forms ~~~~~~~~~~~~~~~~~~ `Flask-WTF `_ offers simple integration with `WTForms `_ With WTForms, your form field HTML can be generated for you, but you can customize it in your templates. This allows you to maintain separation of code and presentation, and keep those messy parameters out of your python code. Testing : Unit testing for agile development ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ `Flask-Testing `_ provides unit testing utilities for Flask. Script - Command-line tools ~~~~~~~~~~~~~~~~~~~~~~~~~~~ `Flask-Script `_ provides support for writing external scripts in Flask. This includes running a development server, a customised Python shell, scripts to set up your database, cronjobs, and other command-line tasks that belong outside the web application itself. Flask-Script works in a similar way to Flask itself. You define and add commands that can be called from the command line to a Manager instance: Assets - static files optimization ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ `Flask-Assets `_ integrates the `webassets library `_ with Flask, adding support for merging, minifying and compiling CSS and Javascript files. Asset management application for Python web development - use it to merge and compress your JavaScript and CSS files. Gravatar - User avatar on the cloud ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ `Flask-Gravatar `_ is a small extension for Flask to make using `Gravatar `_ ("Globally Recognized Avatar") easy. Well, maybe not essential. Check the :file:`reqs.pip` for the actual version numbers . Flask Kit modules ----------------- .. toctree:: :maxdepth: 2 modules .. todolist:: Indices and tables ================== * :ref:`genindex` * :ref:`modindex` * :ref:`search`