Skip to main content

A backport of Starlette TestClient using requests! ⏪️

Project description

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? :sweat_smile:

License

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

starlette_testclient-0.4.0.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

starlette_testclient-0.4.0-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file starlette_testclient-0.4.0.tar.gz.

File metadata

  • Download URL: starlette_testclient-0.4.0.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for starlette_testclient-0.4.0.tar.gz
Algorithm Hash digest
SHA256 9e2c9ed5bdb8992647f657dc30bbeeb989b9273cef4b3fbbbf5ffde2d29a591a
MD5 1ca923b8e4ce669ce6e572da18767533
BLAKE2b-256 985a7400d3b40775561b6ea59a270653bfa373a6c93fa4aed8089e8c468fc1f4

See more details on using hashes here.

File details

Details for the file starlette_testclient-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for starlette_testclient-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1c5cd14fcb454425f55871e10a27bfa4de97536e5e4feb6efe122b8b1b94e8e0
MD5 7de3525eb1d6fd08e40d18e1e3c74a71
BLAKE2b-256 036be4adff79c6692c2cf5bda364824db90a348f2d2b2bc3f06833ff93d00673

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page