Small extension for Flask to make using Gravatar easy
Project description
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.
Changelog
0.3.0 2013-03-23
Enable registering multiple times in one process
0.2.4 2012-11-28
Add init_app method
Some bugs fixes
0.2.3 2011-11-29
Add HTTPS suppport
0.2.2 2011-01-10
First public release
It’s work
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Flask-Gravatar-0.3.0.tar.gz
(9.7 kB
view details)
File details
Details for the file Flask-Gravatar-0.3.0.tar.gz
.
File metadata
- Download URL: Flask-Gravatar-0.3.0.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d12f4411ef16500cd1d91a9e7c2b784ca152a2cf1b7376e7b39ca7d25959562 |
|
MD5 | c3b9e752406afcc4492469be02292381 |
|
BLAKE2b-256 | 4a8083d0eb8e122c7e20595a0dd85a7b727c158c4e08ef9de703414c3b585513 |