Metadata-Version: 2.4
Name: asgire
Version: 3.12.1
Summary: The revamped and modernized drop-in replacement for asgiref
Author-email: Weiliang Li <to.be.impressive@gmail.com>
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-Expression: BSD-3-Clause
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
License-File: LICENSE
Requires-Dist: typing_extensions>=4; python_version < '3.11'
Project-URL: Changelog, https://github.com/kigawas/asgire/blob/main/CHANGELOG.md
Project-URL: Homepage, https://github.com/kigawas/asgire
Project-URL: Issues, https://github.com/kigawas/asgire/issues
Project-URL: Repository, https://github.com/kigawas/asgire

# asgire

[![License](https://img.shields.io/github/license/kigawas/asgire.svg)](https://github.com/kigawas/asgire)
[![PyPI](https://img.shields.io/pypi/v/asgire.svg)](https://pypi.org/project/asgire/)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/asgire)](https://pypistats.org/packages/asgire)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/asgire.svg)](https://pypi.org/project/asgire/)
[![CI](https://img.shields.io/github/actions/workflow/status/kigawas/asgire/ci.yml?branch=main)](https://github.com/kigawas/asgire/actions)
[![Codecov](https://img.shields.io/codecov/c/github/kigawas/asgire.svg)](https://codecov.io/gh/kigawas/asgire)

The revamped and modernized drop-in replacement for [asgiref](https://pypi.org/project/asgiref/).

Same license, same API, but with **better code, comprehensive coverage, and active maintenance**.

## Installation

```bash
pip install asgire
```

The import stays `import asgiref` — no code changes needed.

## Migration

```bash
pip uninstall asgiref
pip install asgire
```

If you need to force Django or other libraries to depend on `asgire` instead of `asgiref` with `uv`, add the following to your `pyproject.toml`:

```toml
[tool.uv]
override-dependencies = ["asgiref ; python_version == '0'"]
```

This will eliminate all transitive dependencies on `asgiref` in `uv.lock` to ensure `asgire` is the only `import asgiref` provider.

## Development

```bash
uv sync
uv run pytest -v
uv run ruff check --fix
uv run ruff format
uv run ty check
```

