Restpite¶
Restpite is a simple python based HTTP DSL for testing restful web services easily. Supporting both HTTP/1.1 and HTTP/2 with both a sync and async capable client. Whether you are writing standalone scripts or end to end system tests for a restful web service, restpite is the library for you. Restpite makes assumptions based on HTTP RFC 7231 (https://tools.ietf.org/html/rfc7231)
Features of restpite:
Supports HTTP/1.1 & HTTP/2
Client supports both sync and async to avoid needlessly blocking on IO operations like requests
Extendable handler and hook dispatching system to allow client code to intercept HTTP flow
Powerful in built assertions for everything imaginable on your response objects
Integrates gracefully with marshmallow to easily deserialize response json into python objects
Intuitive DSL, underpinned by the brilliant httpx library
Automatic and customisable performance and request-response tracking in various formats
Tons of other cool features