Skip to main content

Flask Gravatar

https://img.shields.io/travis/zzzsochi/Flask-Gravatar.svg https://img.shields.io/coveralls/zzzsochi/Flask-Gravatar.svg https://img.shields.io/github/tag/zzzsochi/Flask-Gravatar.svg https://img.shields.io/pypi/dm/Flask-Gravatar.svg https://img.shields.io/github/license/zzzsochi/Flask-Gravatar.svg

About

This is small and simple integration gravatar into flask.

Installation

Flask-Gravatar is on PyPI so all you need is:

pip install Flask-Gravatar

Documentation

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.

Testing

Running the test suite is as simple as:

python setup.py test

or, to also show code coverage:

./run-tests.sh

Changes

Version 0.5.0 (released 2018-01-05)

  • Try to read configuration values from application config if a context is available otherwise return an instance config or extension default. (pull #23)

  • Package refresh - testing Python 3.6, fixed links, and much more. (pull #22)

Version 0.4.2 (released 2015-03-23)

  • Set use_ssl default value according to request protocol. (pull #14)

  • Improved documentation typo fixes. (pull #13 #18)

  • Migration from flaskext.gravatar to flask_gravatar. (pull #11 #12)

Version 0.4.1 (released 2013-11-07)

  • Added Python 3 support. (pull #9)

Version 0.4.0 (released 2013-08-09)

  • Added custom url support. (pull #7)

  • Use setuptools. (pull #6)

Version 0.3.0 (released 2013-03-23)

  • Enabled registering multiple times in one process.

Version 0.2.4 (released 2012-11-28)

  • Added init_app method.

  • Fixed various bugs.

Version 0.2.3 (released 2011-11-29)

  • Added HTTPS suppport.

Version 0.2.2 (released 2011-01-10)

  • First public release.

  • It works.

Metadata

Release files for Flask-Gravatar 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Flask-Gravatar 0.5.0
File Size Uploaded
Flask-Gravatar-0.5.0.tar.gz 17.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Flask-Gravatar 0.5.0
File Interpreter ABI Platform
Flask_Gravatar-0.5.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 24.8 kB

Release files / Flask-Gravatar-0.5.0.tar.gz

Download URL Flask-Gravatar-0.5.0.tar.gz
Size 17.3 kB
Tags Source
SHA-256 checksum
How to use checksums
60665f31c2c612891db68ff801e93ed3a0881c6c8ec346abc64d2a9923f562e1
BLAKE2b-256 checksum
How to use checksums
cd9ad7b1d570f98725d340034ea7df62ef20a48d9f5322b89f3accae88d58466
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / Flask_Gravatar-0.5.0-py2.py3-none-any.whl

Download URL Flask_Gravatar-0.5.0-py2.py3-none-any.whl
Size 7.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
93be048a58cef92345e7bfc78e918e7f4c729b3a33646510b71948c024e7f591
BLAKE2b-256 checksum
How to use checksums
584ab20260e8d383d0037f2791dd8a3f3ea729ca9f02d7638677a34a236a8702
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files

0.4.2

2 release files

0.4.1

1 release file

0.4.0

1 release file

0.3.0

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page