Metadata-Version: 2.0
Name: aiohttp-index
Version: 0.1
Summary: aiohttp.web middleware to serve index files (e.g. index.html) when static directories are requested.
Home-page: https://github.com/crowsonkb/aiohttp_index
Author: Katherine Crowson
Author-email: crowsonkb@gmail.com
License: MIT
Keywords: asyncio aiohttp
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Requires-Dist: aiohttp (>=0.21.4)

aiohttp\_index
==============

`aiohttp.web <http://aiohttp.readthedocs.org/en/stable/>`__ middleware to
serve index files (e.g. index.html) when static directories are requested.

Usage
-----

.. code:: python

    from aiohttp import web
    from aiohttp_index import IndexMiddleware
    app = web.Application(middlewares=[IndexMiddleware()])
    app.router.add_static('/', 'static')

``app`` will now serve ``static/index.html`` when ``/`` is requested.

Dependencies
------------

-  Python 3.5+
-  `aiohttp <http://aiohttp.readthedocs.org/en/stable/>`__ (tested on
   0.21.4)


