{"id":23210,"library":"aiohttp-fast-url-dispatcher","title":"aiohttp-fast-url-dispatcher","description":"A faster URL dispatcher for aiohttp web applications. Current version 0.3.1, released July 2024. Replaces aiohttp's built-in URL dispatch with a high-performance alternative. Low release cadence.","status":"active","version":"0.3.1","language":"python","source_language":"en","source_url":"https://github.com/bdraco/aiohttp-fast-url-dispatcher","tags":["aiohttp","url-dispatcher","performance"],"install":[{"cmd":"pip install aiohttp-fast-url-dispatcher","lang":"bash","label":"latest"}],"dependencies":[],"imports":[{"note":"Use the correct import from the package.","wrong":null,"symbol":"FastUrlDispatcher","correct":"from aiohttp_fast_url_dispatcher import FastUrlDispatcher"}],"quickstart":{"code":"from aiohttp import web\nfrom aiohttp_fast_url_dispatcher import FastUrlDispatcher\n\napp = web.Application()\ndispatcher = FastUrlDispatcher()\n\nasync def handler(request):\n    return web.Response(text=\"Hello, world!\")\n\ndispatcher.add_get(\"/\", handler)\napp.router.set_dispatcher(dispatcher)\n\nif __name__ == \"__main__\":\n    web.run_app(app)","lang":"python","description":"Create an aiohttp app and replace the default router dispatcher with FastUrlDispatcher."},"warnings":[{"fix":"Upgrade to v0.3.0+","message":"The library requires Python <3.10 and <4.0; support for newer Python versions is limited. v0.3.0 added support for newer Python but check compatibility.","severity":"deprecated","affected_versions":"<0.3.0"},{"fix":"Ensure your app only uses basic route patterns (plain paths, variable parts). Avoid advanced aiohttp routing features.","message":"FastUrlDispatcher does not support all aiohttp routing features (e.g., nested routers, middlewares on routes). Only use for simple route tables.","severity":"gotcha","affected_versions":"all"},{"fix":"Call app.router.set_dispatcher(dispatcher) before adding routes, or use dispatcher.add_* methods.","message":"The dispatcher must be set before adding routes; otherwise default dispatcher is used.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'0.3.1':16 '2024':19 'aiohttp':2,11,21,37 'aiohttp-fast-url-dispatch':1 'altern':33 'applic':13 'built':24 'built-in':23 'cadenc':36 'current':14 'dispatch':5,9,27,40 'fast':3 'faster':7 'high':31 'high-perform':30 'juli':18 'low':34 'perform':32,41 'releas':17,35 'replac':20 'url':4,8,26,39 'url-dispatch':38 'version':15 'web':12","created_at":"2026-05-01T08:06:33.564116+00:00","updated_at":"2026-05-01T08:06:33.564116+00:00","problems":[{"fix":"pip install aiohttp-fast-url-dispatcher and use 'from aiohttp_fast_url_dispatcher import FastUrlDispatcher'","cause":"Trying to import from aiohttp instead of the separate package.","error":"ImportError: cannot import name 'FastUrlDispatcher' from 'aiohttp'"},{"fix":"Ensure you create the app with 'web.Application()' and then call 'app.router.set_dispatcher(dispatcher)'","cause":"Trying to set dispatcher before initializing the aiohttp app correctly.","error":"AttributeError: 'Application' object has no attribute 'router'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"0.3.1","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/bdraco/aiohttp-fast-url-dispatcher","docs":"https://aiohttp-fast-url-dispatcher.readthedocs.io","changelog":"https://github.com/bdraco/aiohttp-fast-url-dispatcher/blob/main/CHANGELOG.md","pypi":"https://pypi.org/project/aiohttp-fast-url-dispatcher/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["web-framework","http-networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-29","last_verified":"2026-06-29","next_check":"2026-07-29","install_tag":null}}