httpbinx 1.10.2__tar.gz → 1.11.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. {httpbinx-1.10.2 → httpbinx-1.11.1}/PKG-INFO +36 -33
  2. httpbinx-1.11.1/README.md +65 -0
  3. {httpbinx-1.10.2 → httpbinx-1.11.1}/pyproject.toml +3 -9
  4. {httpbinx-1.10.2 → httpbinx-1.11.1/src}/httpbinx/__init__.py +1 -1
  5. httpbinx-1.10.2/README.md +0 -60
  6. {httpbinx-1.10.2 → httpbinx-1.11.1}/LICENSE +0 -0
  7. {httpbinx-1.10.2 → httpbinx-1.11.1/src}/httpbinx/cli.py +0 -0
  8. {httpbinx-1.10.2 → httpbinx-1.11.1/src}/httpbinx/constants.py +0 -0
  9. {httpbinx-1.10.2 → httpbinx-1.11.1/src}/httpbinx/examples/__init__.py +0 -0
  10. {httpbinx-1.10.2 → httpbinx-1.11.1/src}/httpbinx/helpers.py +0 -0
  11. {httpbinx-1.10.2 → httpbinx-1.11.1/src}/httpbinx/main.py +0 -0
  12. {httpbinx-1.10.2 → httpbinx-1.11.1/src}/httpbinx/meta.py +0 -0
  13. {httpbinx-1.10.2 → httpbinx-1.11.1/src}/httpbinx/routers/__init__.py +0 -0
  14. {httpbinx-1.10.2 → httpbinx-1.11.1/src}/httpbinx/routers/anything.py +0 -0
  15. {httpbinx-1.10.2 → httpbinx-1.11.1/src}/httpbinx/routers/auth.py +0 -0
  16. {httpbinx-1.10.2 → httpbinx-1.11.1/src}/httpbinx/routers/cookies.py +0 -0
  17. {httpbinx-1.10.2 → httpbinx-1.11.1/src}/httpbinx/routers/dynamicdata.py +0 -0
  18. {httpbinx-1.10.2 → httpbinx-1.11.1/src}/httpbinx/routers/httpmethods.py +0 -0
  19. {httpbinx-1.10.2 → httpbinx-1.11.1/src}/httpbinx/routers/images.py +0 -0
  20. {httpbinx-1.10.2 → httpbinx-1.11.1/src}/httpbinx/routers/inspection/__init__.py +0 -0
  21. {httpbinx-1.10.2 → httpbinx-1.11.1/src}/httpbinx/routers/inspection/request.py +0 -0
  22. {httpbinx-1.10.2 → httpbinx-1.11.1/src}/httpbinx/routers/inspection/response.py +0 -0
  23. {httpbinx-1.10.2 → httpbinx-1.11.1/src}/httpbinx/routers/redirects.py +0 -0
  24. {httpbinx-1.10.2 → httpbinx-1.11.1/src}/httpbinx/routers/responseformats.py +0 -0
  25. {httpbinx-1.10.2 → httpbinx-1.11.1/src}/httpbinx/routers/statuscodes.py +0 -0
  26. {httpbinx-1.10.2 → httpbinx-1.11.1/src}/httpbinx/schemas.py +0 -0
  27. {httpbinx-1.10.2 → httpbinx-1.11.1/src}/httpbinx/static/UTF-8-demo.txt +0 -0
  28. {httpbinx-1.10.2 → httpbinx-1.11.1/src}/httpbinx/static/bombs/bomb-1GB.br +0 -0
  29. {httpbinx-1.10.2 → httpbinx-1.11.1/src}/httpbinx/static/bombs/bomb-1GB.gz +0 -0
  30. {httpbinx-1.10.2 → httpbinx-1.11.1/src}/httpbinx/static/favicon.png +0 -0
  31. {httpbinx-1.10.2 → httpbinx-1.11.1/src}/httpbinx/static/images/httbinx_logo.png +0 -0
  32. {httpbinx-1.10.2 → httpbinx-1.11.1/src}/httpbinx/static/images/httpbinx_cover.png +0 -0
  33. {httpbinx-1.10.2 → httpbinx-1.11.1/src}/httpbinx/static/images/jackal.jpg +0 -0
  34. {httpbinx-1.10.2 → httpbinx-1.11.1/src}/httpbinx/static/images/pig_icon.png +0 -0
  35. {httpbinx-1.10.2 → httpbinx-1.11.1/src}/httpbinx/static/images/svg_logo.svg +0 -0
  36. {httpbinx-1.10.2 → httpbinx-1.11.1/src}/httpbinx/static/images/wolf_1.webp +0 -0
  37. {httpbinx-1.10.2 → httpbinx-1.11.1/src}/httpbinx/templates/moby.html +0 -0
  38. {httpbinx-1.10.2 → httpbinx-1.11.1/src}/httpbinx/templates/sample.xml +0 -0
  39. {httpbinx-1.10.2 → httpbinx-1.11.1}/tests/__init__.py +0 -0
  40. {httpbinx-1.10.2 → httpbinx-1.11.1}/tests/conftest.py +0 -0
  41. {httpbinx-1.10.2 → httpbinx-1.11.1}/tests/test_anything.py +0 -0
  42. {httpbinx-1.10.2 → httpbinx-1.11.1}/tests/test_auth.py +0 -0
  43. {httpbinx-1.10.2 → httpbinx-1.11.1}/tests/test_cookies.py +0 -0
  44. {httpbinx-1.10.2 → httpbinx-1.11.1}/tests/test_dynamic_data.py +0 -0
  45. {httpbinx-1.10.2 → httpbinx-1.11.1}/tests/test_http_methods.py +0 -0
  46. {httpbinx-1.10.2 → httpbinx-1.11.1}/tests/test_images.py +0 -0
  47. {httpbinx-1.10.2 → httpbinx-1.11.1}/tests/test_redirects.py +0 -0
  48. {httpbinx-1.10.2 → httpbinx-1.11.1}/tests/test_request_inspection.py +0 -0
  49. {httpbinx-1.10.2 → httpbinx-1.11.1}/tests/test_response_formats.py +0 -0
  50. {httpbinx-1.10.2 → httpbinx-1.11.1}/tests/test_status_codes.py +0 -0
@@ -1,9 +1,8 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: httpbinx
3
- Version: 1.10.2
3
+ Version: 1.11.1
4
4
  Summary: HTTP Request & Response Service, written in Python + FastAPI.
5
5
  Author-Email: Leo <imleowoo@outlook.com>
6
- Maintainer-Email: Leo <imleowoo@outlook.com>
7
6
  License: MIT License
8
7
 
9
8
  Copyright (c) 2021 Leo
@@ -26,7 +25,6 @@ License: MIT License
26
25
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
26
  SOFTWARE.
28
27
 
29
- Classifier: Programming Language :: Python
30
28
  Classifier: Programming Language :: Python :: 3
31
29
  Classifier: Programming Language :: Python :: 3.10
32
30
  Classifier: Programming Language :: Python :: 3.11
@@ -46,63 +44,68 @@ Requires-Dist: brotli
46
44
  Requires-Dist: python-multipart
47
45
  Description-Content-Type: text/markdown
48
46
 
49
- ![![cover](httpbinx/static/images/httpbinx_cover.png)](https://raw.githubusercontent.com/imleowoo/httpbinx/main/httpbinx/static/images/httpbinx_cover.png)
47
+ ![httpbinx cover](src/httpbinx/static/images/httpbinx_cover.png)
50
48
 
51
- [![thanks](https://img.shields.io/badge/thanks-httpbin-green)](https://github.com/postmanlabs/httpbin)
52
- ![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)
49
+ [![PyPI](https://img.shields.io/pypi/v/httpbinx)](https://pypi.org/project/httpbinx/)
50
+ [![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/)
51
+ [![License](https://img.shields.io/badge/license-MIT-green)](LICENSE)
52
+ [![中文文档](https://img.shields.io/badge/Language-%E4%B8%AD%E6%96%87-red)](README.zh.md)
53
53
 
54
54
  # httpbinx
55
55
 
56
- HTTP Request & Response Service, written in Python + FastAPI.
56
+ An HTTP request and response testing service built with Python and FastAPI.
57
+ Inspired by [httpbin](https://github.com/postmanlabs/httpbin).
57
58
 
58
- ## Deployed at:
59
+ Try the hosted instance at **https://httpbinx.wooe.cc**.
59
60
 
60
- - **https://httpbinx.wooe.cc**
61
+ ## Install
61
62
 
62
- ## Reference Project
63
+ Requires Python 3.10 or later.
63
64
 
64
- A [Kenneth Reitz](http://kennethreitz.org/bitcoin) Project. See https://github.com/postmanlabs/httpbin
65
+ With pip:
65
66
 
66
- ## Quick Start
67
+ ```shell
68
+ pip install httpbinx
69
+ ```
67
70
 
68
- ## Installation
71
+ With uv:
69
72
 
70
- ### PyPI
73
+ ```shell
74
+ uv tool install httpbinx
75
+ ```
71
76
 
72
- **[httpbinx](https://pypi.org/project/httpbinx/)** is available on PyPI
77
+ ## Run Locally
73
78
 
74
79
  ```shell
75
- $ pip install httpbinx
80
+ httpbinx server --port 8000
76
81
  ```
77
82
 
78
- ### Source Code
83
+ Open [http://localhost:8000/](http://localhost:8000/) for the interactive API documentation.
84
+
85
+ ## Docker
79
86
 
80
87
  ```shell
81
- $ git clone https://github.com/imleowoo/httpbinx.git
82
- $ python setup.py install # or `pip install .`
88
+ docker pull leowoo/httpbinx:latest
89
+ docker run --rm -p 8080:80 --name httpbinx leowoo/httpbinx:latest
83
90
  ```
84
91
 
85
- ## Run it
92
+ The API documentation is then available at [http://localhost:8080/](http://localhost:8080/).
86
93
 
87
- ### Run directly
94
+ ## CLI
88
95
 
89
96
  ```shell
90
- $ httpbinx server --host=0.0.0.0 --port=80
97
+ httpbinx version
98
+ httpbinx info
91
99
  ```
92
100
 
93
- ### Run with Docker
101
+ ## Development
94
102
 
95
103
  ```shell
96
- $ docker pull leowoo/httpbinx:latest
97
- $ docker run -p 80:80 --name httpbinx leowoo/httpbinx:latest
104
+ pytest
105
+ ruff check .
106
+ ruff format --check .
98
107
  ```
99
108
 
100
- ### It starts running
109
+ ## License
101
110
 
102
- ```text
103
- INFO: Started server process [17044]
104
- INFO: Waiting for application startup.
105
- INFO: Application startup complete.
106
- INFO: Uvicorn running on http://0.0.0.0:80 (Press CTRL+C to quit)
107
- ...
108
- ```
111
+ [MIT](LICENSE)
@@ -0,0 +1,65 @@
1
+ ![httpbinx cover](src/httpbinx/static/images/httpbinx_cover.png)
2
+
3
+ [![PyPI](https://img.shields.io/pypi/v/httpbinx)](https://pypi.org/project/httpbinx/)
4
+ [![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/)
5
+ [![License](https://img.shields.io/badge/license-MIT-green)](LICENSE)
6
+ [![中文文档](https://img.shields.io/badge/Language-%E4%B8%AD%E6%96%87-red)](README.zh.md)
7
+
8
+ # httpbinx
9
+
10
+ An HTTP request and response testing service built with Python and FastAPI.
11
+ Inspired by [httpbin](https://github.com/postmanlabs/httpbin).
12
+
13
+ Try the hosted instance at **https://httpbinx.wooe.cc**.
14
+
15
+ ## Install
16
+
17
+ Requires Python 3.10 or later.
18
+
19
+ With pip:
20
+
21
+ ```shell
22
+ pip install httpbinx
23
+ ```
24
+
25
+ With uv:
26
+
27
+ ```shell
28
+ uv tool install httpbinx
29
+ ```
30
+
31
+ ## Run Locally
32
+
33
+ ```shell
34
+ httpbinx server --port 8000
35
+ ```
36
+
37
+ Open [http://localhost:8000/](http://localhost:8000/) for the interactive API documentation.
38
+
39
+ ## Docker
40
+
41
+ ```shell
42
+ docker pull leowoo/httpbinx:latest
43
+ docker run --rm -p 8080:80 --name httpbinx leowoo/httpbinx:latest
44
+ ```
45
+
46
+ The API documentation is then available at [http://localhost:8080/](http://localhost:8080/).
47
+
48
+ ## CLI
49
+
50
+ ```shell
51
+ httpbinx version
52
+ httpbinx info
53
+ ```
54
+
55
+ ## Development
56
+
57
+ ```shell
58
+ pytest
59
+ ruff check .
60
+ ruff format --check .
61
+ ```
62
+
63
+ ## License
64
+
65
+ [MIT](LICENSE)
@@ -22,11 +22,7 @@ dependencies = [
22
22
  authors = [
23
23
  { name = "Leo", email = "imleowoo@outlook.com" },
24
24
  ]
25
- maintainers = [
26
- { name = "Leo", email = "imleowoo@outlook.com" },
27
- ]
28
25
  classifiers = [
29
- "Programming Language :: Python",
30
26
  "Programming Language :: Python :: 3",
31
27
  "Programming Language :: Python :: 3.10",
32
28
  "Programming Language :: Python :: 3.11",
@@ -35,7 +31,7 @@ classifiers = [
35
31
  "Programming Language :: Python :: 3.14",
36
32
  "License :: OSI Approved :: MIT License",
37
33
  ]
38
- version = "1.10.2"
34
+ version = "1.11.1"
39
35
 
40
36
  [project.license]
41
37
  file = "LICENSE"
@@ -48,11 +44,12 @@ Homepage = "https://github.com/imleowoo/httpbinx"
48
44
  Repository = "https://github.com/imleowoo/httpbinx"
49
45
 
50
46
  [tool.pdm]
47
+ package-dir = "src"
51
48
  distribution = true
52
49
 
53
50
  [tool.pdm.version]
54
51
  source = "file"
55
- path = "httpbinx/__init__.py"
52
+ path = "src/httpbinx/__init__.py"
56
53
 
57
54
  [tool.ruff]
58
55
  target-version = "py314"
@@ -79,8 +76,5 @@ quote-style = "single"
79
76
  dev = [
80
77
  "ruff",
81
78
  "httpx",
82
- "pytest-cov",
83
- "pytest-mock",
84
- "pytest-xdist",
85
79
  "pytest",
86
80
  ]
@@ -2,6 +2,6 @@
2
2
 
3
3
  from .main import app
4
4
 
5
- __version__ = '1.10.2'
5
+ __version__ = '1.11.1'
6
6
 
7
7
  app.version = __version__
httpbinx-1.10.2/README.md DELETED
@@ -1,60 +0,0 @@
1
- ![![cover](httpbinx/static/images/httpbinx_cover.png)](https://raw.githubusercontent.com/imleowoo/httpbinx/main/httpbinx/static/images/httpbinx_cover.png)
2
-
3
- [![thanks](https://img.shields.io/badge/thanks-httpbin-green)](https://github.com/postmanlabs/httpbin)
4
- ![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)
5
-
6
- # httpbinx
7
-
8
- HTTP Request & Response Service, written in Python + FastAPI.
9
-
10
- ## Deployed at:
11
-
12
- - **https://httpbinx.wooe.cc**
13
-
14
- ## Reference Project
15
-
16
- A [Kenneth Reitz](http://kennethreitz.org/bitcoin) Project. See https://github.com/postmanlabs/httpbin
17
-
18
- ## Quick Start
19
-
20
- ## Installation
21
-
22
- ### PyPI
23
-
24
- **[httpbinx](https://pypi.org/project/httpbinx/)** is available on PyPI
25
-
26
- ```shell
27
- $ pip install httpbinx
28
- ```
29
-
30
- ### Source Code
31
-
32
- ```shell
33
- $ git clone https://github.com/imleowoo/httpbinx.git
34
- $ python setup.py install # or `pip install .`
35
- ```
36
-
37
- ## Run it
38
-
39
- ### Run directly
40
-
41
- ```shell
42
- $ httpbinx server --host=0.0.0.0 --port=80
43
- ```
44
-
45
- ### Run with Docker
46
-
47
- ```shell
48
- $ docker pull leowoo/httpbinx:latest
49
- $ docker run -p 80:80 --name httpbinx leowoo/httpbinx:latest
50
- ```
51
-
52
- ### It starts running
53
-
54
- ```text
55
- INFO: Started server process [17044]
56
- INFO: Waiting for application startup.
57
- INFO: Application startup complete.
58
- INFO: Uvicorn running on http://0.0.0.0:80 (Press CTRL+C to quit)
59
- ...
60
- ```
File without changes
File without changes
File without changes
File without changes
File without changes