Flask-Gravatar 0.2.2
pip install Flask-Gravatar==0.2.2
Newer version available (0.5.0)
Released:
Small extension for Flask to make using Gravatar easy
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: BSD License (BSD)
- Author: Zelenyak Aleksandr aka ZZZ
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
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') }}
Patameters
All parameters are described in gravatar documentation.
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: BSD License (BSD)
- Author: Zelenyak Aleksandr aka ZZZ
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
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
File details
Details for the file Flask-Gravatar-0.2.2.tar.bz2
.
File metadata
- Download URL: Flask-Gravatar-0.2.2.tar.bz2
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
d25a46fc7fe2b81587e562b1e21bd6d2eda0662ac952051ecfba7c09076f878d
|
|
MD5 |
e78598311b653241244f1a573e6aa30f
|
|
BLAKE2b-256 |
ee8afa883f606e32bf692940b5c074853b7760cd098200e326db3f37a37f2a9e
|