An open API service indexing awesome lists of open source software.

https://github.com/kludex/starlette-testclient

A backport of Starlette's TestClient using requests! ⏪️
https://github.com/kludex/starlette-testclient

Last synced: 6 months ago
JSON representation

A backport of Starlette's TestClient using requests! ⏪️

Awesome Lists containing this project

README

          


starlette-testclient




Latest Commit





Package version



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.