Skip to main content

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

pip install starlette-testclient

Usage

You just need to replace the import statement from:

from starlette.testclient import TestClient

to:

from starlette_testclient import TestClient

Easy, right? 😅

License

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

Release files for starlette-testclient 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for starlette-testclient 0.4.1
File Size Uploaded
starlette_testclient-0.4.1.tar.gz 12.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for starlette-testclient 0.4.1
File Interpreter ABI Platform
starlette_testclient-0.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 20.6 kB

Release files / starlette_testclient-0.4.1.tar.gz

Download URL starlette_testclient-0.4.1.tar.gz
Size 12.5 kB
Tags Source
SHA-256 checksum
How to use checksums
9e993ffe12fab45606116257813986612262fe15c1bb6dc9e39cc68693ac1fc5
BLAKE2b-256 checksum
How to use checksums
cd646debec8fc6e9abde0c7042145dc27a562bd1cd79350a55b80bf612a10ccb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.8

Release files / starlette_testclient-0.4.1-py3-none-any.whl

Download URL starlette_testclient-0.4.1-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dcf0eb237dc47f062ef5925f98330af46f67e547cb587119c9ae78c17ae6c1d1
BLAKE2b-256 checksum
How to use checksums
2544f5209b889a344b1331a103aec4e9f906c7f67f9295fd287fdaa818179d95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.8

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page