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! ⏪️
- Host: GitHub
- URL: https://github.com/kludex/starlette-testclient
- Owner: Kludex
- License: bsd-3-clause
- Created: 2022-11-17T06:42:17.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-29T10:53:34.000Z (over 1 year ago)
- Last Synced: 2025-04-13T05:04:03.221Z (6 months ago)
- Language: Python
- Homepage:
- Size: 499 KB
- Stars: 13
- Watchers: 3
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
starlette-testclient
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.