async-asgi-testclient
Async client for testing ASGI web applications
Decision gist · record as of 2026-08-14
No, with caution. While the package is lightweight and permissively licensed, it has been abandoned with no releases since 2022-06-13. The ASGI ecosystem has evolved significantly since then, and there is no evidence of ongoing maintenance or compatibility with modern Python or framework versions. Use only if locked into an older codebase; for new projects, prefer actively maintained testing clients.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.6+; designed for use with async test frameworks.
- High install friction reported.
- Package is in abandoned maintenance status with no releases since 2022-06-13, over 1523 days ago.
License · maintenance · safety
MIT license (permissive) — MIT license (permissive). You can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
last release 2022-06-13 (1523 days) · last repo commit 2023-06-29 · 161 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 288,647 downloads/mo, #8,017 on PyPI
Alternatives
Verify before relying
pip install async-asgi-testclient
from async_asgi_testclient import TestClient
async with TestClient(app) as client:
resp = await client.get("/")
assert resp.status_code == 200- Whether the package works with current ASGI 3 implementations and modern async frameworks given the maintenance gap.
- Compatibility with Python versions beyond 3.10 (classifiers only list up to 3.10).
- Whether websocket, multipart, and stream support remain functional with current ASGI ecosystem changes.
What it is and what it does
async-asgi-testclient is a testing library for ASGI web applications that avoids the complexity of running a separate HTTP server during tests. Instead of spawning the app in a different process or thread, it calls the ASGI application directly within the same asyncio loop. This approach simplifies test writing and debugging by keeping everything in a single execution context.
The library is framework-agnostic, meaning it works with any ASGI-compliant framework without depending on framework-specific testing utilities. It supports cookies, multipart form data, redirects, response and request streams, and WebSocket connections. The package has no runtime dependencies, making it lightweight to add to a test suite.
Use it for
- Testing ASGI applications without running a live HTTP server during CI/CD pipelines.
- Writing async unit tests for ASGI middleware and route handlers with direct app invocation.
- Testing WebSocket endpoints and streaming responses in async ASGI applications.
- Debugging ASGI app behavior by keeping test and app code in the same asyncio event loop.
- Testing multipart form uploads and cookie handling in async web frameworks.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No, with caution.
While the package is lightweight and permissively licensed, it has been abandoned with no releases since 2022-06-13. The ASGI ecosystem has evolved significantly since then, and there is no evidence of ongoing maintenance or compatibility with modern Python or framework versions. Use only if locked into an older codebase; for new projects, prefer actively maintained testing clients.
Install
async-asgi-testclient on PyPI
Before you install
High install friction reported. Package is in abandoned maintenance status with no releases since 2022-06-13, over 1523 days ago. Last repository commit was 2023-06-29. While classifiers claim production stability, the lack of recent updates means compatibility with current Python or ASGI ecosystem versions is uncertain.
Requires Python 3.6+; designed for use with async test frameworks.
License in practice
MIT license (permissive). You can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install async-asgi-testclient
from async_asgi_testclient import TestClient
async with TestClient(app) as client:
resp = await client.get("/")
assert resp.status_code == 200
Verify before relying
- Whether the package works with current ASGI 3 implementations and modern async frameworks given the maintenance gap.
- Compatibility with Python versions beyond 3.10 (classifiers only list up to 3.10).
- Whether websocket, multipart, and stream support remain functional with current ASGI ecosystem changes.
Package facts
| License | MIT license permissive |
| Python support | Not specified |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Abandoned 1,523 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 288,647 / month, #8,017 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: async-asgi-testclient-1.4.11.tar.gz
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “asgi testing client”
- async-asgi-testclientProvides an async test client for ASGI web applications that calls…
- asgi-lifespanProgrammatically trigger ASGI application startup and shutdown events…
- sanic-testingProvides sync and async test clients for testing Sanic web…
Give your agent the search over MCP, or paste the wish link into any chat.
More Testing packages
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.
Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.
Install it if you want to measure test completeness or enforce coverage thresholds in your project.
pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.
Install it if you write tests for any asyncio-based code.
A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.
Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.
See also asgi-lifespan · starlette-testclient · opentelemetry-instrumentation-asgi · a2wsgi · starlette · Quart · responses · aiohttp-asgi-connector · opentelemetry-util-http · timing-asgi