Debian Codegraph @

/

debian flask-gravatar 0.5.0-2debian python-flask-gravatar-doc debian python3-flask-gravatar python Flask-Gravatar 0.5.0 debianhtmlinimakefilepythonpythonshellyaml 27 files · 197 symbols
View dependency graph

Depends on

README (full)

Flask Gravatar

About

This is small and simple integration gravatar into flask.

Installation

Flask-Gravatar is on PyPI so all you need is: ::

pip install Flask-Gravatar

Documentation

Initialize with flask application and default parameters: ::

gravatar = Gravatar(app, size=100, rating='g', default='retro', force_default=False, use_ssl=False, base_url=None)

Then in your template: ::

{{ '[email protected]' | gravatar }}

Bigger and adult: ::

{{ '[email protected]' | gravatar(size=200, rating='x') }}

Parameters

All parameters are described in gravatar documentation.

Testing

Running the test suite is as simple as: ::

python setup.py test

or, to also show code coverage: ::

./run-tests.sh

dir debian/
dir docs/
dir flask_gravatar/
dir tests/
file .coveragerc
file .editorconfig
file .gitignore
file .travis.yml
file AUTHORS
file CHANGES.rst
file CONTRIBUTING.rst
file LICENSE
file MANIFEST.in
file README.rst
file RELEASE-NOTES.rst
file pytest.ini
file run-tests.sh
file setup.cfg
file setup.py
file tox.ini