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.1.0.tar.gz (12.7 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.1.0-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for starlette_testclient-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e75e0f9d3f9bceb3f22ecb49773244e63f6f447be6c9b8ea157889301deb91b8
MD5 ec557706c897b1497b4964623e80ecd1
BLAKE2b-256 1f3db5b1b6a2205fdb4f0c2529c9852badacd8e41103c6732c7264d57d813bfe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for starlette_testclient-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2a5195bfba593340901d32fc28c42f7af118a659635b0dd0fc7734680329872a
MD5 e2b0e6c9e101e61d9ad53a9e7ca6fce3
BLAKE2b-256 93dc0e64fccf1ce91c3595841750fbf5a6a88dc8410e2ee9f2f967fca2dd4e3f

See more details on using hashes here.

Supported by

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