{ "info": { "author": "Ocean S.A.", "author_email": "osf@ocean.io", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "aiohttp_flashbag\n================\n\nThe library provides flashbag for `aiohttp.web`__.\n\n.. _aiohttp_web: https://docs.aiohttp.org/en/stable/\n\n__ aiohttp_web_\n\n.. image:: https://img.shields.io/travis/aio-libs/aiohttp-flashbag.svg\n :target: https://travis-ci.org/aio-libs/aiohttp-flashbag\n\n.. image:: https://codecov.io/github/aio-libs/aiohttp-flashbag/coverage.svg\n :target: https://codecov.io/github/aio-libs/aiohttp-flashbag\n\nUsage\n-----\n\nThe library allows us to share some data between requests inside session.\n\nBasic usage example:\n\n.. code-block:: python\n\n import aiohttp_flashbag\n from aiohttp import web\n from aiohttp_session import setup as setup_session\n from aiohttp_session import SimpleCookieStorage\n\n\n async def handler_get(request):\n validation_error = aiohttp_flashbag.flashbag_get(request, 'error')\n\n error_html = ''\n\n if validation_error is not None:\n error_html = '{validation_error}'.format(\n validation_error=validation_error,\n )\n\n body = '''\n \n