Skip to main content
Help us improve Python packaging – donate today!

aiohttp.web middleware to serve index files (e.g. index.html) when static directories are requested.

Project Description

aiohttp.web middleware to serve index files (e.g. index.html) when static directories are requested.

Usage

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 (tested on 0.21.4)

Release history Release notifications

This version
History Node

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
aiohttp_index-0.1-py3-none-any.whl (3.8 kB) Copy SHA256 hash SHA256 Wheel py3 Mar 14, 2016
aiohttp-index-0.1.tar.gz (1.9 kB) Copy SHA256 hash SHA256 Source None Mar 14, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page