/
View dependency graph
Depends on
- dh-python (dh-sequence-python3, pybuild-plugin-pyproject)
- flask (python-flask-doc, python3-flask)
- pygments (python3-pygments)
- pytest (python3-pytest)
- python-coverage (python3-coverage)
- python-pytest-cov (python3-pytest-cov)
- python3-defaults (python3-all, python3-doc)
- setuptools (python3-setuptools)
- sphinx (dh-sequence-sphinxdoc, python3-sphinx)
- debhelper-compat
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 |