Name | httpbin JSON |
Version |
0.10.2
JSON |
| download |
home_page | |
Summary | HTTP Request and Response Service |
upload_time | 2024-02-20 21:30:15 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.7 |
license | MIT or ISC |
keywords |
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# httpbin(1): HTTP Request & Response Service
This is a fork of the original httpbin project, which is located at https://github.com/postmanlabs/httpbin
Why fork? we were unable to get ahold of the folks at postmanlabs to maintain the original project, and httpbin is used for other packages within the python ecosystem, such as [pytest-httpbin](https://pypi.org/project/pytest-httpbin/) which is in turn used by packages such as [requests](https://github.com/psf/requests/blob/main/requirements-dev.txt#L4) so we have forked this package. That means that httpbin.org is not actually backed by this repo, but the [httpbin package](https://pypi.org/project/httpbin/) is. Confusing right? Know anyone at postmanlabs? [get in touch](mailto:me@kevinmccarthy.org).
httpbin is a [Kenneth Reitz](http://kennethreitz.org/) Project.

## Downloading and Running
```sh
docker pull ghcr.io/psf/httpbin
docker run -p 80:8080 ghcr.io/psf/httpbin
```
## Using `httpbin` as a Library
`httpbin` can be used as a dependency in your own projects by simply adding
`httpbin` as a dependency.
## Manually Building the Latest Docker Image
To build the Docker image yourself, download the latest `Dockerfile` and
`requirements.txt` files from the [release page][release-page]. Store both file
in the same folder and run:
```sh
docker build --build-arg APP_VERSION=<your-version> [other docker args] .
```
Alternatively, you can re-generate a new `requirements.txt` file using
[pip-compile][pip-compile]. In that case, be aware that the code has not been
tested against those dependencies and we cannot guarantee that such an image
will run without errors.
Where `APP_VERSION` will be stored in a docker-label. The default value is an
empty-string.
[release-page]: https://github.com/psf/httpbin/releases
[pip-compile]: https://pip-tools.readthedocs.io/en/latest/
## Maintenance
### "Extra" Dependencies
The project provides two "extras" which contain dependencies that should only
be installed for specific use-cases. They will not be included when using
`httpbin` as a dependency, unless they are *explicitly* requested like
`httpbin[mainapp]`.
* `mainapp`: Includes everything needed to run `httpbin` as a standalone app.
This is used by the docker image.
* `test`: Includes additional dependencies for unit-testing. This is only used
during development.
### Publishing a new Release
Releases (both docker and pypi) are automated via GitHub Actions (See #17).
For *pypi* releases, the project uses [trusted-publishing][tp] via [the official
GitHub action][pypi-action].
For releases on *docker-hub* (when enabled in the CI), the following two
secrets are required:
* `DOCKERHUB_USERNAME`
* `DOCKERHUB_TOKEN`
Releases are triggered on commits tagged with `release-` (for example
`release-0.10.0`).
[tp]: https://docs.pypi.org/trusted-publishers/
[pypi-action]: https://github.com/pypa/gh-action-pypi-publish
## Changelog
* 0.10.2:
- Added support for Flask 3.0
* 0.10.1:
- Substantial housekeeping, dependency cleanup, image building, and packaging revamp, thanks to @exhuma and @mgorny
* 0.10.0:
- Override docker image port with HTTPBIN_PORT
- A number of fixes for code rot, thanks @mgorny and @tjni
* 0.9.2: ??? (never published as a package; seems to be internal to postman)
* 0.7.0: ???
* 0.6.2: ???
* 0.6.0: ???
* 0.5.0
- Allow /redirect-to to work with multiple methods
- Allow MD5 or SHA-256 to be chosen as algorithms for HTTP Digest Auth
- Set a 10MB limit on /drip
* 0.4.1: Added floating-point support for /delay endpoint
* 0.4.0: New /image/svg endpoint, add deploy to heroku button, add 406 response to /image, and don’t always emit the transfer-encoding header for stream endpoint.
* 0.3.0 A number of new features, including a /range endpoint, lots of bugfixes, and a /encoding/utf8 endpoint
* 0.2.0: Added an XML endpoint. Also fixes several bugs with unicode, CORS headers, digest auth, and more.
* 0.1.2: Fix a couple Python3 bugs with the random byte endpoints, fix a bug when uploading files without a Content-Type header set.
* 0.1.1: Added templates as data in setup.py
* 0.1.0: Added python3 support and (re)publish on PyPI
## Officially Deployed (but out of date) at:
- http://httpbin.org
- https://httpbin.org
- https://hub.docker.com/r/kennethreitz/httpbin/
## SEE ALSO
- http://requestb.in
- http://python-requests.org
- https://grpcb.in/
- [go-httpbin](https://github.com/ahmetb/go-httpbin)
- [java-httpbin](https://github.com/gaul/java-httpbin)
Raw data
{
"_id": null,
"home_page": "",
"name": "httpbin",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "",
"author": "",
"author_email": "Kenneth Reitz <me@kennethreitz.org>",
"download_url": "https://files.pythonhosted.org/packages/61/90/e2eeeedc96fbfd9345dff0407574b8edb8ff97ad1682ef518bdfaf096dd5/httpbin-0.10.2.tar.gz",
"platform": null,
"description": "# httpbin(1): HTTP Request & Response Service\n\nThis is a fork of the original httpbin project, which is located at https://github.com/postmanlabs/httpbin\n\nWhy fork? we were unable to get ahold of the folks at postmanlabs to maintain the original project, and httpbin is used for other packages within the python ecosystem, such as [pytest-httpbin](https://pypi.org/project/pytest-httpbin/) which is in turn used by packages such as [requests](https://github.com/psf/requests/blob/main/requirements-dev.txt#L4) so we have forked this package. That means that httpbin.org is not actually backed by this repo, but the [httpbin package](https://pypi.org/project/httpbin/) is. Confusing right? Know anyone at postmanlabs? [get in touch](mailto:me@kevinmccarthy.org).\n\nhttpbin is a [Kenneth Reitz](http://kennethreitz.org/) Project.\n\n\n## Downloading and Running\n\n```sh\ndocker pull ghcr.io/psf/httpbin\ndocker run -p 80:8080 ghcr.io/psf/httpbin\n```\n\n## Using `httpbin` as a Library\n\n`httpbin` can be used as a dependency in your own projects by simply adding\n`httpbin` as a dependency.\n\n## Manually Building the Latest Docker Image\n\nTo build the Docker image yourself, download the latest `Dockerfile` and\n`requirements.txt` files from the [release page][release-page]. Store both file\nin the same folder and run:\n\n```sh\ndocker build --build-arg APP_VERSION=<your-version> [other docker args] .\n```\n\nAlternatively, you can re-generate a new `requirements.txt` file using\n[pip-compile][pip-compile]. In that case, be aware that the code has not been\ntested against those dependencies and we cannot guarantee that such an image\nwill run without errors.\n\nWhere `APP_VERSION` will be stored in a docker-label. The default value is an\nempty-string.\n\n[release-page]: https://github.com/psf/httpbin/releases\n[pip-compile]: https://pip-tools.readthedocs.io/en/latest/\n\n## Maintenance\n\n### \"Extra\" Dependencies\n\nThe project provides two \"extras\" which contain dependencies that should only\nbe installed for specific use-cases. They will not be included when using\n`httpbin` as a dependency, unless they are *explicitly* requested like\n`httpbin[mainapp]`.\n\n* `mainapp`: Includes everything needed to run `httpbin` as a standalone app.\n This is used by the docker image.\n* `test`: Includes additional dependencies for unit-testing. This is only used\n during development.\n\n### Publishing a new Release\n\nReleases (both docker and pypi) are automated via GitHub Actions (See #17).\n\nFor *pypi* releases, the project uses [trusted-publishing][tp] via [the official\nGitHub action][pypi-action].\n\nFor releases on *docker-hub* (when enabled in the CI), the following two\nsecrets are required:\n\n* `DOCKERHUB_USERNAME`\n* `DOCKERHUB_TOKEN`\n\nReleases are triggered on commits tagged with `release-` (for example\n`release-0.10.0`).\n\n[tp]: https://docs.pypi.org/trusted-publishers/\n[pypi-action]: https://github.com/pypa/gh-action-pypi-publish\n\n\n## Changelog\n* 0.10.2:\n - Added support for Flask 3.0\n* 0.10.1:\n - Substantial housekeeping, dependency cleanup, image building, and packaging revamp, thanks to @exhuma and @mgorny\n* 0.10.0:\n - Override docker image port with HTTPBIN_PORT\n - A number of fixes for code rot, thanks @mgorny and @tjni\n* 0.9.2: ??? (never published as a package; seems to be internal to postman)\n* 0.7.0: ???\n* 0.6.2: ???\n* 0.6.0: ???\n* 0.5.0\n - Allow /redirect-to to work with multiple methods\n - Allow MD5 or SHA-256 to be chosen as algorithms for HTTP Digest Auth\n - Set a 10MB limit on /drip\n* 0.4.1: Added floating-point support for /delay endpoint\n* 0.4.0: New /image/svg endpoint, add deploy to heroku button, add 406 response to /image, and don\u2019t always emit the transfer-encoding header for stream endpoint.\n* 0.3.0 A number of new features, including a /range endpoint, lots of bugfixes, and a /encoding/utf8 endpoint\n* 0.2.0: Added an XML endpoint. Also fixes several bugs with unicode, CORS headers, digest auth, and more.\n* 0.1.2: Fix a couple Python3 bugs with the random byte endpoints, fix a bug when uploading files without a Content-Type header set.\n* 0.1.1: Added templates as data in setup.py\n* 0.1.0: Added python3 support and (re)publish on PyPI\n\n## Officially Deployed (but out of date) at:\n\n- http://httpbin.org\n- https://httpbin.org\n- https://hub.docker.com/r/kennethreitz/httpbin/\n\n\n## SEE ALSO\n\n- http://requestb.in\n- http://python-requests.org\n- https://grpcb.in/\n- [go-httpbin](https://github.com/ahmetb/go-httpbin)\n- [java-httpbin](https://github.com/gaul/java-httpbin)\n\n",
"bugtrack_url": null,
"license": "MIT or ISC",
"summary": "HTTP Request and Response Service",
"version": "0.10.2",
"project_urls": {
"Repository": "https://github.com/psf/httpbin",
"pypi": "https://pypi.org/project/httpbin/"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "1f2a12e12f8f07070cd12b46c60fd8fd709ff01414830213bfc5153ab527331f",
"md5": "6c5fbf1c2111ba2e3fe6e8c0cec5d34d",
"sha256": "8e28e67f72ead4419977c9f2dba4ce86ce08768ada30ef9a87288527bb925d00"
},
"downloads": -1,
"filename": "httpbin-0.10.2-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "6c5fbf1c2111ba2e3fe6e8c0cec5d34d",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": ">=3.7",
"size": 100343,
"upload_time": "2024-02-20T21:30:12",
"upload_time_iso_8601": "2024-02-20T21:30:12.383785Z",
"url": "https://files.pythonhosted.org/packages/1f/2a/12e12f8f07070cd12b46c60fd8fd709ff01414830213bfc5153ab527331f/httpbin-0.10.2-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "6190e2eeeedc96fbfd9345dff0407574b8edb8ff97ad1682ef518bdfaf096dd5",
"md5": "f7eefe44907a031db3322832945c4349",
"sha256": "632148698261c8684ea2d2b624cdea845b402b1fe91736e89df886408c6317a9"
},
"downloads": -1,
"filename": "httpbin-0.10.2.tar.gz",
"has_sig": false,
"md5_digest": "f7eefe44907a031db3322832945c4349",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 107327,
"upload_time": "2024-02-20T21:30:15",
"upload_time_iso_8601": "2024-02-20T21:30:15.221840Z",
"url": "https://files.pythonhosted.org/packages/61/90/e2eeeedc96fbfd9345dff0407574b8edb8ff97ad1682ef518bdfaf096dd5/httpbin-0.10.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-20 21:30:15",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "psf",
"github_project": "httpbin",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "httpbin"
}