Skip to content
This repository has been archived by the owner on Nov 18, 2018. It is now read-only.

Small and simple gravatar usage in Flask.

Notifications You must be signed in to change notification settings

chuangbo/Flask-Gravatar

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask Gravatar

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,
                    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.

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

About

Small and simple gravatar usage in Flask.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%