# kevinburke/hamms

Malformed servers to test your HTTP client

Repository: https://github.com/kevinburke/hamms
Canonical: https://ross.abutalabs.com/products/hamms
Language: Python
License: MIT
License Family: permissive
Topics: python, http, networking, failure-handling
Last push: 2017-01-05T02:00:53+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4769, "days_push": 3528, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1201, forks 29 (observed 2026-08-28T04:03:58.257123+00:00)

## What it is
Hamms is a Python library and CLI tool that runs a set of deliberately broken HTTP servers on ports 5500-5600 to elicit failures in HTTP clients. It simulates connection errors, malformed responses, slow servers, oversized headers, and other edge cases.

## Use cases
- test how my http client handles malformed responses
- simulate a server that hangs and never responds
- test http client timeout and retry logic
- verify client behavior with huge response headers
- test handling of mismatched content-length responses
- simulate slow servers trickling bytes
- test arbitrary http status code responses

## When to choose
- you need to test HTTP client resilience against network failures and malformed data
- you want deterministic, local failure simulation without mocking libraries
- you are writing integration tests for timeout, retry, and error handling paths

## When to avoid
- you need to test HTTPS/TLS-specific behavior
- you want a general-purpose HTTP mocking framework with request expectations
- you need actively maintained tooling - the latest release dates to 2017

## Facets
- artifact type: library
- maturity: maintenance
- function: testing, http-server, mocking
- domain: testing, developer-tools, networking, apis
- platform: python, cross-platform, cli
- tags: http-client-testing, failure-simulation, malformed-server, fault-injection

## Member repositories
- kevinburke/hamms (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:58.257123+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:20:42.314447+00:00, confidence not recorded.
  - readme: https://github.com/kevinburke/hamms (fetched 2026-08-28T04:03:58.257123+00:00, sha 235edb37f8d3)
  - registry_pypi: https://pypi.org/pypi/hamms/json (fetched 2026-08-29T12:28:00.454485+00:00, sha ceecc2358cea)
- Data as of 2026-08-30T08:39:29.467469+00:00.
