Skip to main content

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)

Download files

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

Source Distribution

aiohttp-index-0.1.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aiohttp_index-0.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file aiohttp-index-0.1.tar.gz.

File metadata

  • Download URL: aiohttp-index-0.1.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for aiohttp-index-0.1.tar.gz
Algorithm Hash digest
SHA256 45e9f6ac49974d8893084f7e07a294a15d3b41b313cc06e2993d922e12782864
MD5 d47f7ed99be592bdcc4c40253e6d26d3
BLAKE2b-256 da5ea6eb6e77f1a4adcf1c0089a187b34f6ccf0247376e8dbb196d58fcb5d9ab

See more details on using hashes here.

File details

Details for the file aiohttp_index-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for aiohttp_index-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5613baff109e5de4eab4b334c0956b0a8fae8df881ba5fbf6be1bb8b3d49a1d8
MD5 8483de074cc21980a90d138f29bef2b3
BLAKE2b-256 021fd8acec2c9eeb88edcf5dc5190d4f9df6d15048c4bf59ab3af6ba0ecae390

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page