Ross ROSS = Recommend OSS · open-source software intelligence for agents

gabrielfalcao/HTTPretty

Intercept HTTP requests at the Python socket level. Fakes the whole socket module observed · 2026-08-28

github.com/gabrielfalcao/HTTPretty · homepage · Python · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

32/100

  • Activity 0
  • Release rhythm 35
  • Longevity 100

Flags: no_releases

How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 5696
  • days_rel: n/a
  • days_push: 815
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

2159 stars · 285 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

HTTPretty is a Python library that mocks HTTP clients by intercepting requests at the socket level, faking the entire socket module. It lets tests register fake URI responses, stream responses, and record/replay HTTP traffic without real network access.

Use cases

  • mock http requests in python tests
  • fake responses from external apis
  • test api integrations without network access
  • record and playback http requests
  • unit test code that uses requests or urllib
  • disable network access during tests

When to choose

  • you need socket-level interception that works regardless of the HTTP client library
  • you want decorator-based activation in tests
  • you need to fake streaming responses or record/replay traffic

When to avoid

  • you only use the requests library and prefer a higher-level mock like responses
  • you need mocking for modern Python versions beyond 3.9
  • you need an actively developed alternative like responses or pytest-httpserver

Facets

library · maturity maintenance

mocking testing http-client testing developer-tools apis web-development python cross-platform http-mocking socket-level-interception tdd fake-socket record-and-playback

2 sources

Member repositories

RepositoryRoleHealth v2
gabrielfalcao/HTTPrettymain32

For agents

markdown · JSON · MCP: product_card(name="gabrielfalcao/HTTPretty")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem