Garter is a collection of small utilities that makes creating webapps with Flask easier.

Flask is a wonderful little web framework, but sometimes you need a garter to get your webapp working in the big old speakeasy that is the Internet.


Use pip to install Garter:

pip install -e hg+

Prefer git to Mercurial?

pip install -e git+

You can install it without pip, but why would you want to?

hg clone
cd garter
python install


Garter contains a bunch of useful little functions. Use the ones you need, ignore the rest.

CSRF Protection

LessCSS Support

URL Convenience Functions


Want to contribute your own useful functions? Fork the Mercurial repository or git repository and send a pull request.

Make sure you update the documentation to mention your changes!