Metadata-Version: 2.4
Name: starlette-testclient
Version: 0.4.1
Summary: A backport of Starlette TestClient using requests! ⏪️
Project-URL: Homepage, https://github.com/Kludex/starlette-testclient
Project-URL: Source, https://github.com/Kludex/starlette-testclient
Project-URL: Twitter, https://twitter.com/marcelotryle
Project-URL: Funding, https://github.com/sponsors/Kludex
Author-email: Marcelo Trylesinski <marcelotryle@email.com>
License-Expression: BSD-3-Clause
License-File: LICENSE
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.7
Requires-Dist: requests
Requires-Dist: starlette>=0.20.1
Description-Content-Type: text/markdown

<h1 align="center">
    <strong>starlette-testclient</strong>
</h1>
<p align="center">
    <a href="https://github.com/Kludex/starlette-testclient" target="_blank">
        <img src="https://img.shields.io/github/last-commit/Kludex/starlette-testclient" alt="Latest Commit">
    </a>
        <img src="https://img.shields.io/github/workflow/status/Kludex/starlette-testclient/CI">
    <br />
    <a href="https://pypi.org/project/starlette-testclient" target="_blank">
        <img src="https://img.shields.io/pypi/v/starlette-testclient" alt="Package version">
    </a>
    <img src="https://img.shields.io/pypi/pyversions/starlette-testclient">
    <img src="https://img.shields.io/github/license/Kludex/starlette-testclient">
</p>

This is a backport of Starlette's `TestClient` using `requests` instead of `httpx`.

The reason behind here is to give more time for people to migrate.

## Installation

```bash
pip install starlette-testclient
```

## Usage

You just need to replace the import statement from:

```python
from starlette.testclient import TestClient
```

to:

```python
from starlette_testclient import TestClient
```

Easy, right? :sweat_smile:

## License

This project is licensed under the terms of the BSD 3-Clause license.
