skillfed

httpbin

HTTP Request and Response Service

httpbin v0.10.4 493.8K downloads/30d#6,354 on PyPI84
Permissive license MIT or ISC Active released

What it is and what it does

httpbin is a Flask-based service that exposes HTTP endpoints for testing and debugging HTTP clients. It was originally created by Kenneth Reitz and is now maintained as a fork by the Python community after the original became unmaintained. The package can be deployed as a standalone Docker container or used directly as a library in Python projects.

When used as a library, httpbin provides a Flask application object that can be integrated into test suites or development environments. It includes endpoints for testing various HTTP scenarios: response codes, redirects, delays, byte streams, digest authentication, and more. The package depends on Flask, werkzeug, greenlet, decorator, brotlicffi, six, and importlib-metadata. Recent releases have made flasgger optional and fixed Python 3.12+ compatibility issues.

Use it for:

  • Test HTTP client libraries like requests by making real HTTP calls to a local or remote httpbin instance.
  • Debug HTTP request/response behavior during development without needing a real backend service.
  • Verify authentication flows (digest auth, basic auth) in HTTP clients before integration.
  • Simulate network conditions like delays, redirects, and byte streaming for stress testing.
  • Validate error handling by requesting specific HTTP status codes and response formats.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

httpbin is a Flask-based HTTP request and response service that provides endpoints for testing and debugging HTTP clients and libraries.

Yes. httpbin is actively maintained, has no known vulnerabilities, and is widely used in the Python ecosystem (pytest-httpbin, requests). Install friction is low and it supports current Python versions (3.8–3.14). Use it as a library for HTTP client testing or deploy the Docker image as a standalone service.

Install

httpbin on PyPI

pip

pip install httpbin

uv

uv add httpbin

poetry

poetry add httpbin

Installing httpbin

Before you install

Low install friction with a wheel distribution and seven runtime dependencies. Actively maintained as of 2026-06-16 with recent fixes for Python 3.12+ compatibility and dependency cleanup.

License in practice

Dual-licensed under MIT or ISC (both permissive). No restrictions on commercial or private use.

Quickstart

pip install httpbin

from httpbin import app
from flask import Flask

# Use the Flask app directly in tests or as a WSGI application
if __name__ == '__main__':
    app.run()

Requires Python 3.8 or later. The Flask framework and its dependencies (werkzeug, greenlet) must be available.

Verify before relying

  • Whether the package is intended primarily as a library dependency or as a standalone service to be run separately.
  • What specific HTTP testing scenarios each endpoint (/bytes, /delay, /redirect-to, /drip, etc.) is designed to cover.
  • Performance characteristics or concurrency limits when used as a library in test suites.

Package facts

License MIT or ISC (permissive)
Python support supports the current Python release (>=3.8)
Install friction low — pure-Python wheel
Runtime dependencies 7 — brotlicffi, decorator, flask, greenlet, importlib-metadata, six, werkzeug
Maintenance actively maintained — 59 days since the last release
Last repo commit
First released
Downloads 493,841/month — #6,354 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: httpbin-0.10.4-py2.py3-none-any.whl

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: ISC License (ISCL)License :: OSI Approved :: MIT LicenseNatural Language :: EnglishProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

http request testing servicemock http serverhttp client testingdebug http requestshttp endpoint simulatorrequest response testinghttp test harness
http-testingmock-serverflask-app

More Testing packages