================
Flask Gravatar
================
.. image:: https://img.shields.io/travis/zzzsochi/Flask-Gravatar.svg
:target: https://travis-ci.org/zzzsochi/Flask-Gravatar
.. image:: https://img.shields.io/coveralls/zzzsochi/Flask-Gravatar.svg
:target: https://coveralls.io/r/zzzsochi/Flask-Gravatar
.. image:: https://img.shields.io/github/tag/zzzsochi/Flask-Gravatar.svg
:target: https://github.com/zzzsochi/Flask-Gravatar/releases
.. image:: https://img.shields.io/pypi/dm/Flask-Gravatar.svg
:target: https://pypi.python.org/pypi/Flask-Gravatar
.. image:: https://img.shields.io/github/license/zzzsochi/Flask-Gravatar.svg
:target: https://github.com/zzzsochi/Flask-Gravatar/blob/master/LICENSE
About
=====
This is small and simple integration `gravatar`_ into `flask`_.
.. _flask: http://flask.pocoo.org
.. _gravatar: http://gravatar.com
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`_.
.. _gravatar documentation: http://gravatar.com/site/implement/images
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.
Raw data
{
"_id": null,
"home_page": "https://github.com/zzzsochi/Flask-Gravatar/",
"name": "Flask-Gravatar",
"maintainer": "",
"docs_url": "https://pythonhosted.org/Flask-Gravatar/",
"requires_python": "",
"maintainer_email": "",
"keywords": "flask gravatar",
"author": "Alexander Zelenyak aka ZZZ",
"author_email": "zzz.sochi@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/cd/9a/d7b1d570f98725d340034ea7df62ef20a48d9f5322b89f3accae88d58466/Flask-Gravatar-0.5.0.tar.gz",
"platform": "any",
"description": "================\n Flask Gravatar\n================\n\n.. image:: https://img.shields.io/travis/zzzsochi/Flask-Gravatar.svg\n :target: https://travis-ci.org/zzzsochi/Flask-Gravatar\n\n.. image:: https://img.shields.io/coveralls/zzzsochi/Flask-Gravatar.svg\n :target: https://coveralls.io/r/zzzsochi/Flask-Gravatar\n\n.. image:: https://img.shields.io/github/tag/zzzsochi/Flask-Gravatar.svg\n :target: https://github.com/zzzsochi/Flask-Gravatar/releases\n\n.. image:: https://img.shields.io/pypi/dm/Flask-Gravatar.svg\n :target: https://pypi.python.org/pypi/Flask-Gravatar\n\n.. image:: https://img.shields.io/github/license/zzzsochi/Flask-Gravatar.svg\n :target: https://github.com/zzzsochi/Flask-Gravatar/blob/master/LICENSE\n\nAbout\n=====\n\nThis is small and simple integration `gravatar`_ into `flask`_.\n\n.. _flask: http://flask.pocoo.org\n.. _gravatar: http://gravatar.com\n\nInstallation\n============\n\nFlask-Gravatar is on PyPI so all you need is: ::\n\n pip install Flask-Gravatar\n\nDocumentation\n=============\n\nInitialize with flask application and default parameters: ::\n\n gravatar = Gravatar(app,\n size=100,\n rating='g',\n default='retro',\n force_default=False,\n use_ssl=False,\n base_url=None)\n\nThen in your template: ::\n\n {{ 'zzz.sochi@gmail.com' | gravatar }}\n\nBigger and adult: ::\n\n {{ 'zzz.sochi@gmail.com' | gravatar(size=200, rating='x') }}\n\nParameters\n----------\n\nAll parameters are described in `gravatar documentation`_.\n\n.. _gravatar documentation: http://gravatar.com/site/implement/images\n\nTesting\n=======\nRunning the test suite is as simple as: ::\n\n python setup.py test\n\nor, to also show code coverage: ::\n\n ./run-tests.sh\n\n\nChanges\n=======\n\nVersion 0.5.0 (released 2018-01-05)\n\n- Try to read configuration values from application config if a context\n is available otherwise return an instance config or extension default.\n (pull #23)\n- Package refresh - testing Python 3.6, fixed links, and much more.\n (pull #22)\n\nVersion 0.4.2 (released 2015-03-23)\n\n- Set use_ssl default value according to request protocol. (pull #14)\n- Improved documentation typo fixes. (pull #13 #18)\n- Migration from flaskext.gravatar to flask_gravatar. (pull #11 #12)\n\nVersion 0.4.1 (released 2013-11-07)\n\n- Added Python 3 support. (pull #9)\n\nVersion 0.4.0 (released 2013-08-09)\n\n- Added custom url support. (pull #7)\n- Use setuptools. (pull #6)\n\nVersion 0.3.0 (released 2013-03-23)\n\n- Enabled registering multiple times in one process.\n\nVersion 0.2.4 (released 2012-11-28)\n\n- Added init_app method.\n- Fixed various bugs.\n\nVersion 0.2.3 (released 2011-11-29)\n\n- Added HTTPS suppport.\n\nVersion 0.2.2 (released 2011-01-10)\n\n- First public release.\n- It works.\n\n\n",
"bugtrack_url": null,
"license": "BSD",
"summary": "Small extension for Flask to make usage of Gravatar service easy.",
"version": "0.5.0",
"project_urls": {
"Homepage": "https://github.com/zzzsochi/Flask-Gravatar/"
},
"split_keywords": [
"flask",
"gravatar"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "584ab20260e8d383d0037f2791dd8a3f3ea729ca9f02d7638677a34a236a8702",
"md5": "269c97176361dbf57379a7075f1219e6",
"sha256": "93be048a58cef92345e7bfc78e918e7f4c729b3a33646510b71948c024e7f591"
},
"downloads": -1,
"filename": "Flask_Gravatar-0.5.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "269c97176361dbf57379a7075f1219e6",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 7530,
"upload_time": "2018-01-05T15:52:11",
"upload_time_iso_8601": "2018-01-05T15:52:11.653228Z",
"url": "https://files.pythonhosted.org/packages/58/4a/b20260e8d383d0037f2791dd8a3f3ea729ca9f02d7638677a34a236a8702/Flask_Gravatar-0.5.0-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "cd9ad7b1d570f98725d340034ea7df62ef20a48d9f5322b89f3accae88d58466",
"md5": "5f211b20f0cfeefe36cbebd6be87039b",
"sha256": "60665f31c2c612891db68ff801e93ed3a0881c6c8ec346abc64d2a9923f562e1"
},
"downloads": -1,
"filename": "Flask-Gravatar-0.5.0.tar.gz",
"has_sig": false,
"md5_digest": "5f211b20f0cfeefe36cbebd6be87039b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 17299,
"upload_time": "2018-01-05T15:52:14",
"upload_time_iso_8601": "2018-01-05T15:52:14.385224Z",
"url": "https://files.pythonhosted.org/packages/cd/9a/d7b1d570f98725d340034ea7df62ef20a48d9f5322b89f3accae88d58466/Flask-Gravatar-0.5.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2018-01-05 15:52:14",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "zzzsochi",
"github_project": "Flask-Gravatar",
"travis_ci": true,
"coveralls": true,
"github_actions": false,
"tox": true,
"lcname": "flask-gravatar"
}