Registry / web-framework / asgi-tools

asgi-tools

JSON →
library2.1.4pypypi✓ verified 84d ago

ASGI Toolkit for building ASGI web applications and middlewares. Version 2.1.1 supports Python 3.10+. Regular releases, active development.

pip install asgi-tools
INSTALL
IMPORT
SIG · ASGI-TOOLS
A
asgi-tools
web-frameworkpythonv2.1.4
Install
2.9s avg
Import
350ms
Disk
25MB
Pass rate
8/ 10
Env Coverage8 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2.1.4 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
✓ —
✓ 3.6s
py 3.11
✓ —
✓ 2.9s
py 3.12
✓ —
✓ 2.4s
py 3.13
✓ —
✓ 2.6s
py 3.9
✕ build_error
✕ build_error
25MB installed
● package 25MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

App
from asgi_tools import App
from asgi_tools.app import App
App is re-exported from asgi_tools package; importing from submodule may break if internal structure changes.
Router
from asgi_tools import Router
from asgi_tools.routes import Router
Router is re-exported; submodule paths are not part of public API.

Minimal ASGI app with routing.

from asgi_tools import App, Request, Response app = App() @app.route('/') async def home(request: Request): return Response.text('Hello, world!') # Run with: uvicorn module:app
Debug
Known issues
gotchaImport paths changed in 2.0: direct imports from asgi_tools are correct; avoid importing from submodules like asgi_tools.app, asgi_tools.routes, etc.
fix
Use from asgi_tools import App, Router, Request, Response
affects: >=2.0
deprecatedasgi_tools.ResponseFile is deprecated in 2.0. Use starlette.responses.FileResponse or custom streaming.
fix
Migrate to starlette.responses.FileResponse or implement streaming manually.
affects: 2.0+
Errors
Common errors & fixes
ImportError: cannot import name 'App' from 'asgi_tools'
Package not installed or wrong version (pre-2.0 had App in asgi_tools.app submodule).
fix
Ensure asgi-tools>=2.0 is installed and use 'from asgi_tools import App'
RuntimeError: 'Router' object has no attribute 'route'
Using Router without App; Router is only used inside App.
fix
Use app.route() or Router().route() but the typical pattern is App with .route() decorator.
Upgrade
Version history
2.1.4latest on PyPI · released May 15, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
20
OpenAI (training)
1
Resources