httpbinx 1.9.0__tar.gz → 1.10.0__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 (49) hide show
  1. {httpbinx-1.9.0 → httpbinx-1.10.0}/PKG-INFO +3 -4
  2. {httpbinx-1.9.0 → httpbinx-1.10.0}/README.md +1 -1
  3. httpbinx-1.10.0/httpbinx/__init__.py +7 -0
  4. {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/routers/inspection/response.py +2 -3
  5. {httpbinx-1.9.0 → httpbinx-1.10.0}/pyproject.toml +2 -3
  6. httpbinx-1.9.0/httpbinx/__init__.py +0 -5
  7. {httpbinx-1.9.0 → httpbinx-1.10.0}/LICENSE +0 -0
  8. {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/cli.py +0 -0
  9. {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/constants.py +0 -0
  10. {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/examples/__init__.py +0 -0
  11. {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/helpers.py +0 -0
  12. {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/main.py +0 -0
  13. {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/meta.py +0 -0
  14. {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/routers/__init__.py +0 -0
  15. {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/routers/anything.py +0 -0
  16. {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/routers/auth.py +0 -0
  17. {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/routers/cookies.py +0 -0
  18. {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/routers/dynamicdata.py +0 -0
  19. {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/routers/httpmethods.py +0 -0
  20. {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/routers/images.py +0 -0
  21. {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/routers/inspection/__init__.py +0 -0
  22. {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/routers/inspection/request.py +0 -0
  23. {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/routers/redirects.py +0 -0
  24. {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/routers/responseformats.py +0 -0
  25. {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/routers/statuscodes.py +0 -0
  26. {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/schemas.py +0 -0
  27. {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/static/UTF-8-demo.txt +0 -0
  28. {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/static/bombs/bomb-1GB.br +0 -0
  29. {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/static/bombs/bomb-1GB.gz +0 -0
  30. {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/static/favicon.png +0 -0
  31. {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/static/images/httbinx_logo.png +0 -0
  32. {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/static/images/httpbinx_cover.png +0 -0
  33. {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/static/images/jackal.jpg +0 -0
  34. {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/static/images/pig_icon.png +0 -0
  35. {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/static/images/svg_logo.svg +0 -0
  36. {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/static/images/wolf_1.webp +0 -0
  37. {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/templates/moby.html +0 -0
  38. {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/templates/sample.xml +0 -0
  39. {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/templates/trackingscripts.html +0 -0
  40. {httpbinx-1.9.0 → httpbinx-1.10.0}/tests/__init__.py +0 -0
  41. {httpbinx-1.9.0 → httpbinx-1.10.0}/tests/common.py +0 -0
  42. {httpbinx-1.9.0 → httpbinx-1.10.0}/tests/test_anything.py +0 -0
  43. {httpbinx-1.9.0 → httpbinx-1.10.0}/tests/test_dynamic_data.py +0 -0
  44. {httpbinx-1.9.0 → httpbinx-1.10.0}/tests/test_http_methods.py +0 -0
  45. {httpbinx-1.9.0 → httpbinx-1.10.0}/tests/test_images.py +0 -0
  46. {httpbinx-1.9.0 → httpbinx-1.10.0}/tests/test_redirects.py +0 -0
  47. {httpbinx-1.9.0 → httpbinx-1.10.0}/tests/test_request_inspection.py +0 -0
  48. {httpbinx-1.9.0 → httpbinx-1.10.0}/tests/test_response_formats.py +0 -0
  49. {httpbinx-1.9.0 → httpbinx-1.10.0}/tests/test_status_codes.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: httpbinx
3
- Version: 1.9.0
3
+ Version: 1.10.0
4
4
  Summary: HTTP Request & Response Service, written in Python + FastAPI.
5
5
  Author-Email: Leo <imleowoo@outlook.com>
6
6
  Maintainer-Email: Leo <imleowoo@outlook.com>
@@ -28,7 +28,6 @@ License: MIT License
28
28
 
29
29
  Classifier: Programming Language :: Python
30
30
  Classifier: Programming Language :: Python :: 3
31
- Classifier: Programming Language :: Python :: 3.9
32
31
  Classifier: Programming Language :: Python :: 3.10
33
32
  Classifier: Programming Language :: Python :: 3.11
34
33
  Classifier: Programming Language :: Python :: 3.12
@@ -37,7 +36,7 @@ Classifier: Programming Language :: Python :: 3.14
37
36
  Classifier: License :: OSI Approved :: MIT License
38
37
  Project-URL: Homepage, https://github.com/imleowoo/httpbinx
39
38
  Project-URL: Repository, https://github.com/imleowoo/httpbinx
40
- Requires-Python: >=3.8
39
+ Requires-Python: >=3.10
41
40
  Requires-Dist: fastapi
42
41
  Requires-Dist: uvicorn
43
42
  Requires-Dist: starlette
@@ -55,7 +54,7 @@ Description-Content-Type: text/markdown
55
54
  ![![cover](httpbinx/static/images/httpbinx_cover.png)](https://raw.githubusercontent.com/imleowoo/httpbinx/main/httpbinx/static/images/httpbinx_cover.png)
56
55
 
57
56
  [![thanks](https://img.shields.io/badge/thanks-httpbin-green)](https://github.com/postmanlabs/httpbin)
58
- ![python](https://img.shields.io/badge/python-3.8%20%7C%203.9%20%7C%203.10%20%7C%203.11%20%7C%203.12-blue)
57
+ ![python](https://img.shields.io/badge/python-3.9%20%7C%203.10%20%7C%203.11%20%7C%203.12%20%7C%203.13%20%7C%203.14-blue)
59
58
 
60
59
  # httpbinx
61
60
 
@@ -1,7 +1,7 @@
1
1
  ![![cover](httpbinx/static/images/httpbinx_cover.png)](https://raw.githubusercontent.com/imleowoo/httpbinx/main/httpbinx/static/images/httpbinx_cover.png)
2
2
 
3
3
  [![thanks](https://img.shields.io/badge/thanks-httpbin-green)](https://github.com/postmanlabs/httpbin)
4
- ![python](https://img.shields.io/badge/python-3.8%20%7C%203.9%20%7C%203.10%20%7C%203.11%20%7C%203.12-blue)
4
+ ![python](https://img.shields.io/badge/python-3.9%20%7C%203.10%20%7C%203.11%20%7C%203.12%20%7C%203.13%20%7C%203.14-blue)
5
5
 
6
6
  # httpbinx
7
7
 
@@ -0,0 +1,7 @@
1
+ """HTTP Request & Response Service, written in Python + FastAPI."""
2
+
3
+ from .main import app
4
+
5
+ __version__ = '1.10.0'
6
+
7
+ app.version = __version__
@@ -9,7 +9,7 @@ from starlette.requests import Request
9
9
  from httpbinx.helpers import parse_multi_value_header, status_code_response
10
10
  from httpbinx.routers import httpmethods
11
11
 
12
- router = APIRouter(tags=['Response inspection'],)
12
+ router = APIRouter(tags=['Response inspection'], )
13
13
 
14
14
 
15
15
  @router.get(
@@ -20,8 +20,7 @@ router = APIRouter(tags=['Response inspection'],)
20
20
  )
21
21
  async def cache(request: Request):
22
22
  # https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Headers/If-Modified-Since
23
- is_conditional = request.headers.get('If-Modified-Since') or \
24
- request.headers.get('If-None-Match')
23
+ is_conditional = request.headers.get('If-Modified-Since') or request.headers.get('If-None-Match')
25
24
  if is_conditional is None:
26
25
  response = await httpmethods.get(request)
27
26
  response.headers['Last-Modified'] = formatdate()
@@ -9,7 +9,7 @@ name = "httpbinx"
9
9
  dynamic = []
10
10
  description = "HTTP Request & Response Service, written in Python + FastAPI."
11
11
  readme = "README.md"
12
- requires-python = ">=3.8"
12
+ requires-python = ">=3.10"
13
13
  dependencies = [
14
14
  "fastapi",
15
15
  "uvicorn",
@@ -27,7 +27,6 @@ maintainers = [
27
27
  classifiers = [
28
28
  "Programming Language :: Python",
29
29
  "Programming Language :: Python :: 3",
30
- "Programming Language :: Python :: 3.9",
31
30
  "Programming Language :: Python :: 3.10",
32
31
  "Programming Language :: Python :: 3.11",
33
32
  "Programming Language :: Python :: 3.12",
@@ -35,7 +34,7 @@ classifiers = [
35
34
  "Programming Language :: Python :: 3.14",
36
35
  "License :: OSI Approved :: MIT License",
37
36
  ]
38
- version = "1.9.0"
37
+ version = "1.10.0"
39
38
 
40
39
  [project.license]
41
40
  file = "LICENSE"
@@ -1,5 +0,0 @@
1
- from .main import app
2
-
3
- __version__ = '1.9.0'
4
-
5
- app.version = __version__
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes