Skip to main content

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.

Project details


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.2.3.tar.gz (9.8 kB view details)

Uploaded Source

File details

Details for the file Flask-Gravatar-0.2.3.tar.gz.

File metadata

File hashes

Hashes for Flask-Gravatar-0.2.3.tar.gz
Algorithm Hash digest
SHA256 266f80c2d2ba99f5a001456615ed54e3e9589a9694c46b8d5c375e65094d3d38
MD5 d1ea35c086038252a30f397f21e6fbbb
BLAKE2b-256 5f3272c795e081b4b57c0c641f4869f86c9d9ce95467eac30c7a6ba062c0c47f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page