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

License

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

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.3.0.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: starlette_testclient-0.3.0.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.23.3

File hashes

Hashes for starlette_testclient-0.3.0.tar.gz
Algorithm Hash digest
SHA256 31c28c10abd240beb327ef1ee4dc395403c87da07d4665126b7d3c7b60444e04
MD5 d2c9f3ffbdc8030ae9d855cb491d4892
BLAKE2b-256 6b13407b505994e1d40f1b903b1a6019b47b9cccb5456a8c10d7acb08f70c23d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for starlette_testclient-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 84306a5ca443f81b2d5e838071ed175e9f1ece4ff0806b94778f5122b1c57ee6
MD5 c942e2d40b6414bde50c5cafcf8a8291
BLAKE2b-256 86987e46729595fdbad9b4b7e704d40bc2bf29e1c329843d2ad9589c9d33b60f

See more details on using hashes here.

Release history Release notifications | RSS feed

0.4.1

2 files

0.4.0

2 files

This release

0.3.0 This release

2 files

0.2.0

2 files

0.1.0

2 files

0.0.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page