Flask-Gravatar 0.2.3
Small extension for Flask to make using Gravatar easy
Downloads ↓ | Package Documentation
This is small and simple integration gravatar into flask.
Installation
Install the extension with one of the following commands:
$ easy_install Flask-Gravatar
or alternatively if you have pip installed:
$ pip install Flask-Gravatar
How to Use
Initialize with flask application and default parameters:
gravatar = Gravatar(app,
size=100,
rating='g',
default='retro',
force_default=False,
force_lower=False)
Then in your template:
{{ 'zzz.sochi@gmail.com' | gravatar }}
Bigger and adult:
{{ 'zzz.sochi@gmail.com' | gravatar(size=200, rating='x') }}
Parameters
All parameters are described in gravatar documentation.
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| Flask-Gravatar-0.2.3.tar.gz (md5) | Source | 2011-11-29 | 9KB | 423 | |
- Author: Zelenyak Aleksandr aka ZZZ
- Documentation: Flask-Gravatar package documentation
- Home Page: http://www.python.org/pypi/Flask-Gravatar/
- License: BSD
- Platform: any
-
Categories
- Development Status :: 4 - Beta
- Environment :: Web Environment
- Intended Audience :: Developers
- License :: OSI Approved :: BSD License
- Operating System :: OS Independent
- Programming Language :: Python :: 2
- Topic :: Internet :: WWW/HTTP :: Dynamic Content
- Topic :: Software Development :: Libraries :: Python Modules
- Package Index Owner: ZZZ
- DOAP record: Flask-Gravatar-0.2.3.xml
