Package: wnpp
Severity: wishlist
Owner: Edward Betts <[email protected]>

* Package name    : python-aiointercept
  Version         : 0.1.5
  Upstream Author : Pablo Estevez <[email protected]>
* URL             : https://github.com/Polandia94/aiointercept
* License         : MIT
  Programming Lang: Python
  Description     : mock HTTP request interceptor for aiohttp clients

  This library registers expected HTTP requests and serves configured responses
  from a local test server. It can match requests by URL, HTTP method, or
  regular expression, then return status codes, headers, raw bodies, JSON
  payloads, reason phrases, or callback-generated responses.
  .
  Requests are received by the local server and recorded for later inspection.
  The recorded data includes method, normalized URL, headers, query parameters,
  and request body. Helpers are provided for checking whether particular
  requests were made.
  .
  The library can be used as a context manager, decorator, or pytest fixture. In
  its default mode, client code is pointed at the local server URL. It can also
  patch DNS resolution so configured external hostnames are directed to the
  local server, with optional passthrough rules for selected hosts or unmatched
  requests.

This library is a dependancy of Home Assistant, the Python smart home platform.
I plan to maintain it as part of the Home Assistant team.

Reply via email to