Metadata-Version: 2.1
Name: httpbinx
Version: 1.13.1
Summary: HTTP Request & Response Service, written in Python + FastAPI.
Author-Email: Leo <imleowoo@outlook.com>
License: MIT License
         
         Copyright (c) 2021 Leo
         
         Permission is hereby granted, free of charge, to any person obtaining a copy
         of this software and associated documentation files (the "Software"), to deal
         in the Software without restriction, including without limitation the rights
         to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
         copies of the Software, and to permit persons to whom the Software is
         furnished to do so, subject to the following conditions:
         
         The above copyright notice and this permission notice shall be included in all
         copies or substantial portions of the Software.
         
         THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
         IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
         FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
         AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
         LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
         OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
         SOFTWARE.
         
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: License :: OSI Approved :: MIT License
Project-URL: Homepage, https://github.com/imleowoo/httpbinx
Project-URL: Repository, https://github.com/imleowoo/httpbinx
Requires-Python: >=3.10
Requires-Dist: fastapi<0.140.0,>=0.139.2
Requires-Dist: pydantic<3.0.0,>=2.13.4
Requires-Dist: uvicorn
Requires-Dist: starlette
Requires-Dist: jinja2
Requires-Dist: brotli
Requires-Dist: python-multipart
Description-Content-Type: text/markdown

![httpbinx cover](src/httpbinx/static/images/httpbinx_cover.png)

[![PyPI](https://img.shields.io/pypi/v/httpbinx)](https://pypi.org/project/httpbinx/)
[![Python](https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12%20%7C%203.13%20%7C%203.14-blue)](https://pypi.org/project/httpbinx/)
[![License](https://img.shields.io/badge/license-MIT-green)](LICENSE)
[![中文文档](https://img.shields.io/badge/Language-%E4%B8%AD%E6%96%87-red)](README.zh.md)

# httpbinx

An HTTP request and response testing service built with Python and FastAPI.
Inspired by [httpbin](https://github.com/postmanlabs/httpbin).

Try the hosted instance at **https://httpbinx.wooe.cc**.

## Install

Requires Python 3.10 or later.

With pip:

```shell
pip install httpbinx
```

With uv:

```shell
uv tool install httpbinx
```

## Run Locally

```shell
httpbinx server --port 8000
```

Open [http://localhost:8000/](http://localhost:8000/) for the interactive API documentation.

## Docker

```shell
docker pull leowoo/httpbinx:latest
docker run --rm -p 8080:80 --name httpbinx leowoo/httpbinx:latest
```

The API documentation is then available at [http://localhost:8080/](http://localhost:8080/).

## CLI

```shell
httpbinx version
httpbinx info
```

## Development

```shell
pytest
ruff check .
ruff format --check .
```

## License

[MIT](LICENSE)
