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, use_ssl=False, base_url=None)
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.4.1 2013-11-07
Python 3 support (pull #9)
0.4.0 2013-08-09
Add custom url support (pull #7)
Use setuptools (pull #6)
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.4.1.tar.bz2
(10.2 kB
view details)
File details
Details for the file Flask-Gravatar-0.4.1.tar.bz2
.
File metadata
- Download URL: Flask-Gravatar-0.4.1.tar.bz2
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a199d499517ba5d9aefee377a8f54e4070b1982e4038f39a33e7e671936065e |
|
MD5 | 6524154d8f4618f7eb0ba15467bb8a77 |
|
BLAKE2b-256 | 8b0399a37eca69015b22d375b707033ed15086c859b38bfa6d6cfcf9ef164486 |