httpbinx 1.8.1__py3-none-any.whl → 1.9.0__py3-none-any.whl

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.
httpbinx/__init__.py CHANGED
@@ -1,5 +1,5 @@
1
1
  from .main import app
2
2
 
3
- __version__ = '1.8.1'
3
+ __version__ = '1.9.0'
4
4
 
5
5
  app.version = __version__
@@ -6,17 +6,10 @@ from fastapi import APIRouter
6
6
  from starlette import status
7
7
  from starlette.responses import RedirectResponse
8
8
 
9
- from httpbinx.routers import anything
10
- from httpbinx.routers import auth
11
- from httpbinx.routers import cookies
12
- from httpbinx.routers import dynamicdata
13
- from httpbinx.routers import httpmethods
14
- from httpbinx.routers import images
15
- from httpbinx.routers import redirects
16
- from httpbinx.routers import responseformats
17
- from httpbinx.routers import statuscodes
18
- from httpbinx.routers.inspection import request_inspection
19
- from httpbinx.routers.inspection import response_inspection
9
+ from httpbinx.routers import (anything, auth, cookies, dynamicdata,
10
+ httpmethods, images, redirects, responseformats,
11
+ statuscodes)
12
+ from httpbinx.routers.inspection import request_inspection, response_inspection
20
13
 
21
14
  router = APIRouter()
22
15
 
httpbinx/routers/auth.py CHANGED
@@ -1,9 +1,7 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  """Auth"""
3
- from fastapi import APIRouter
4
- from fastapi import HTTPException
5
- from fastapi.security import HTTPBasic
6
- from fastapi.security import HTTPBasicCredentials
3
+ from fastapi import APIRouter, HTTPException
4
+ from fastapi.security import HTTPBasic, HTTPBasicCredentials
7
5
 
8
6
  router = APIRouter(tags=['Auth'],)
9
7
  security = HTTPBasic()
@@ -1,11 +1,8 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  """Cookies"""
3
- from fastapi import APIRouter
4
- from fastapi import Path
5
- from fastapi import Query
3
+ from fastapi import APIRouter, Path, Query
6
4
  from starlette.requests import Request
7
- from starlette.responses import JSONResponse
8
- from starlette.responses import RedirectResponse
5
+ from starlette.responses import JSONResponse, RedirectResponse
9
6
 
10
7
  from httpbinx.constants import ENV_COOKIES
11
8
 
@@ -6,16 +6,12 @@ import binascii
6
6
  import random
7
7
  import uuid
8
8
 
9
- from fastapi import APIRouter
10
- from fastapi import Path
11
- from fastapi import Query
9
+ from fastapi import APIRouter, Path, Query
12
10
  from fastapi.responses import PlainTextResponse
13
11
  from starlette import status
14
12
  from starlette.requests import Request
15
- from starlette.responses import HTMLResponse
16
- from starlette.responses import JSONResponse
17
- from starlette.responses import Response
18
- from starlette.responses import StreamingResponse
13
+ from starlette.responses import (HTMLResponse, JSONResponse, Response,
14
+ StreamingResponse)
19
15
 
20
16
  from httpbinx.constants import AWESOME_BASE64ENCODED
21
17
  from httpbinx.helpers import to_request_info
@@ -4,8 +4,7 @@ from starlette.requests import Request
4
4
  from starlette.responses import JSONResponse
5
5
 
6
6
  from httpbinx.helpers import to_request_info
7
- from httpbinx.schemas import RequestAttrs
8
- from httpbinx.schemas import RequestInfo
7
+ from httpbinx.schemas import RequestAttrs, RequestInfo
9
8
 
10
9
  router = APIRouter(tags=['Request inspection'])
11
10
 
@@ -1,14 +1,12 @@
1
1
  # -*- coding: utf-8 -*-
2
- from email.utils import formatdate
3
2
  import uuid
3
+ from email.utils import formatdate
4
4
 
5
- from fastapi import APIRouter
6
- from fastapi import Path
5
+ from fastapi import APIRouter, Path
7
6
  from starlette import status
8
7
  from starlette.requests import Request
9
8
 
10
- from httpbinx.helpers import parse_multi_value_header
11
- from httpbinx.helpers import status_code_response
9
+ from httpbinx.helpers import parse_multi_value_header, status_code_response
12
10
  from httpbinx.routers import httpmethods
13
11
 
14
12
  router = APIRouter(tags=['Response inspection'],)
@@ -1,13 +1,9 @@
1
- # -*- coding: utf-8 -*-
2
1
  from enum import Enum
3
2
 
4
- from fastapi import APIRouter
5
- from fastapi import Path
6
- from fastapi import Query
3
+ from fastapi import APIRouter, Path, Query
7
4
  from starlette import status
8
5
  from starlette.requests import Request
9
- from starlette.responses import RedirectResponse
10
- from starlette.responses import Response
6
+ from starlette.responses import RedirectResponse, Response
11
7
 
12
8
  router = APIRouter(tags=['Redirects'])
13
9
 
@@ -1,24 +1,18 @@
1
- # -*- coding: utf-8 -*-
2
1
  """Response Formats"""
3
2
  import gzip
4
3
  import zlib
5
4
 
6
5
  import brotli
7
- from fastapi import APIRouter
8
- from fastapi import Depends
6
+ from fastapi import APIRouter, Depends
9
7
  from fastapi.encoders import jsonable_encoder
10
- from fastapi.responses import HTMLResponse
11
- from fastapi.responses import PlainTextResponse
12
- from fastapi.responses import Response
8
+ from fastapi.responses import HTMLResponse, PlainTextResponse, Response
13
9
  from starlette import status
14
10
  from starlette.requests import Request
15
11
  from starlette.responses import JSONResponse
16
12
  from starlette.templating import Jinja2Templates
17
13
 
18
- from httpbinx.constants import ANGRY_ASCII
19
- from httpbinx.constants import ROBOT_TXT
20
- from httpbinx.helpers import get_templates
21
- from httpbinx.helpers import to_request_info
14
+ from httpbinx.constants import ANGRY_ASCII, ROBOT_TXT
15
+ from httpbinx.helpers import get_templates, to_request_info
22
16
  from httpbinx.schemas import RequestInfo
23
17
 
24
18
  router = APIRouter(tags=['Response formats'])
@@ -1,11 +1,7 @@
1
- # -*- coding: utf-8 -*-
2
- from fastapi import APIRouter
3
- from fastapi import Path
4
- from starlette.responses import PlainTextResponse
5
- from starlette.responses import Response
1
+ from fastapi import APIRouter, Path
2
+ from starlette.responses import PlainTextResponse, Response
6
3
 
7
- from httpbinx.helpers import status_code_response
8
- from httpbinx.helpers import weighted_choice
4
+ from httpbinx.helpers import status_code_response, weighted_choice
9
5
 
10
6
  router = APIRouter(tags=['Status codes'])
11
7
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: httpbinx
3
- Version: 1.8.1
3
+ Version: 1.9.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,11 +28,12 @@ License: MIT License
28
28
 
29
29
  Classifier: Programming Language :: Python
30
30
  Classifier: Programming Language :: Python :: 3
31
- Classifier: Programming Language :: Python :: 3.8
32
31
  Classifier: Programming Language :: Python :: 3.9
33
32
  Classifier: Programming Language :: Python :: 3.10
34
33
  Classifier: Programming Language :: Python :: 3.11
35
34
  Classifier: Programming Language :: Python :: 3.12
35
+ Classifier: Programming Language :: Python :: 3.13
36
+ Classifier: Programming Language :: Python :: 3.14
36
37
  Classifier: License :: OSI Approved :: MIT License
37
38
  Project-URL: Homepage, https://github.com/imleowoo/httpbinx
38
39
  Project-URL: Repository, https://github.com/imleowoo/httpbinx
@@ -1,27 +1,27 @@
1
- httpbinx-1.8.1.dist-info/METADATA,sha256=TvHx9IGXNe2qWaF38e8o01JcIRA8SU53QoZgKif3AWY,3780
2
- httpbinx-1.8.1.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
3
- httpbinx-1.8.1.dist-info/entry_points.txt,sha256=sRkqxXJlZzL_lyEEQOecT_wue4JP64lYhpLwrPCZ-lI,66
4
- httpbinx-1.8.1.dist-info/licenses/LICENSE,sha256=t6oZPzEcm1CsBu9sB_8JYTc5rSOUhyQUee5qvAg4o-A,1060
5
- httpbinx/__init__.py,sha256=-kQbFZawSi7IDtWAo8shTSvO6CfZEbueUnFv5G7NenU,72
1
+ httpbinx-1.9.0.dist-info/METADATA,sha256=uroLNGNmhKBPNIn_buHbaYQpHuf1LTyRiA2OcFr8Yiw,3832
2
+ httpbinx-1.9.0.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
3
+ httpbinx-1.9.0.dist-info/entry_points.txt,sha256=sRkqxXJlZzL_lyEEQOecT_wue4JP64lYhpLwrPCZ-lI,66
4
+ httpbinx-1.9.0.dist-info/licenses/LICENSE,sha256=t6oZPzEcm1CsBu9sB_8JYTc5rSOUhyQUee5qvAg4o-A,1060
5
+ httpbinx/__init__.py,sha256=TUOVsI1f6P9Jwf7R5pedv-22tNn0F1AAUshH1AKTPq4,72
6
6
  httpbinx/cli.py,sha256=bMPWV5HbOzqNJr3HBqFsZkaFqLI5YJneQQpAzF66mOg,1417
7
7
  httpbinx/constants.py,sha256=kXeT_Yzl_-4SJT_a7RxU5dfXBTe4-b1Zg8TBF-8AGbs,870
8
8
  httpbinx/examples/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  httpbinx/helpers.py,sha256=VVwjLpEKxi_awEPqbgb8tfWnhJEHSQFTsthE0pBKgp4,4373
10
10
  httpbinx/main.py,sha256=SjOjlYpaXMeSf2nqYJ-fY5RNpOFG1xEHe6bS3HM9ygg,837
11
11
  httpbinx/meta.py,sha256=h6scAO050bHFiy7UG2Q8MsyJsAHWMsZAFmZntdUwTAs,1699
12
- httpbinx/routers/__init__.py,sha256=xwbZGA3-sV07HCPAly8o5uUJGbdKH3pBHUakXEjvRK4,1409
12
+ httpbinx/routers/__init__.py,sha256=NBe_b0_swBJ2v4URO8L2mF0yYH7dBTBK1ZQen9nWV3E,1208
13
13
  httpbinx/routers/anything.py,sha256=_FK1D9xEONlVIF_rvlqe_tBSsmG7ba8K_m-kGFotWWg,1923
14
- httpbinx/routers/auth.py,sha256=nGZA1aQtrS2B74vM2NORHSWMXf5q25JC2J63hAO2_Us,717
15
- httpbinx/routers/cookies.py,sha256=TB3ADXXg0kgZX5nE1QlrVk1mKXjdFAMJ7iMfd8kfMBc,2341
16
- httpbinx/routers/dynamicdata.py,sha256=Cas2JWkQnCaKNuE0Vw84h4YKcfl8PlsvAy6kYdvw_f4,6790
14
+ httpbinx/routers/auth.py,sha256=QUmwXMKDE_YHUXF8g7pE1NJdKWG1_EJIWtZ90PvhMI0,670
15
+ httpbinx/routers/cookies.py,sha256=5YW-nVzieJx3p3I86t6mHBmSqK3ZIStJvDDXG6SYKBI,2272
16
+ httpbinx/routers/dynamicdata.py,sha256=sL8Nk6RH5zQ9Q5VAaOR6qfqTFIFV7srvElfvCmyGDQM,6694
17
17
  httpbinx/routers/httpmethods.py,sha256=X9YPADi9D6FQnybJWyXc5BTDErgFZ5Xa4OIy7OKAifQ,1531
18
18
  httpbinx/routers/images.py,sha256=d38pKQMinCbnipaBmE0gBlYar8Kog0ZOQEaaLregLZ8,2185
19
19
  httpbinx/routers/inspection/__init__.py,sha256=OMPci9p6uK9L6uFKQKbIqOn-r5MndCWSqlw-bJsUE3E,166
20
- httpbinx/routers/inspection/request.py,sha256=8b5HEuX2ED-YjMB5S0h-2xZDAmyo4ru9RX2S1tCwaqs,1224
21
- httpbinx/routers/inspection/response.py,sha256=yJ46k1O80WO8hq4gF09KHrsQJeP7Cn0aj6AAphfyyAY,2863
22
- httpbinx/routers/redirects.py,sha256=aEWL1VcEaqzAz-nr7fPgKw1_iA_JCtbzS6syB0Urs4E,3023
23
- httpbinx/routers/responseformats.py,sha256=sqRLzSFjUmN5B9urbMVR7X_AydqvuT1pvHGIXyzhedw,4996
24
- httpbinx/routers/statuscodes.py,sha256=Iu0dcGsXLv34otIrH6WrWm_vOHt-9zAnblojM-d_qV0,1740
20
+ httpbinx/routers/inspection/request.py,sha256=nk0nh16cwArLXrVEPzltz2pg6PT5-KjB-lp6HoktUoM,1196
21
+ httpbinx/routers/inspection/response.py,sha256=Msm8FoeKmKvglsId9-Bg-PV86Rn9dq-cQ5VWZTjzoJ4,2816
22
+ httpbinx/routers/redirects.py,sha256=kwU_FPhm4OsrHPGoJw06zXQyRPT5sDpgd0kBo5AT2GA,2930
23
+ httpbinx/routers/responseformats.py,sha256=WcqO-k1bDZ-yumU8TSJVjxlDSqThfTqJsSMzsOwV5j4,4837
24
+ httpbinx/routers/statuscodes.py,sha256=wKIjjgTJYrrQ-oak85-yspquzkrEKfyBe782c_m56Qs,1638
25
25
  httpbinx/schemas.py,sha256=QxBcsd4Go1azLPWF8E_uLyUVcnzI7Rwny-woDPvAzp0,4029
26
26
  httpbinx/static/UTF-8-demo.txt,sha256=rtAgU6uoYvQ0w7ij9JbkKdw6c3q-RchO1bAmrVzhksw,14058
27
27
  httpbinx/static/bombs/bomb-1GB.br,sha256=pRVe549TQ4bzSP231INlng3sL_cGaDY6FQdaF7XtYKY,828
@@ -36,4 +36,4 @@ httpbinx/static/images/wolf_1.webp,sha256=Vnz6-U668nnOpOsLwFxGVQIftO4ASspSwJZwnT
36
36
  httpbinx/templates/moby.html,sha256=o519fgNb4vga6kx6ARW3MYpV7xrRJFzmyrOZwUmrYw8,3962
37
37
  httpbinx/templates/sample.xml,sha256=K12JbH36KNaAaBLkfyOhsUeXc-GfLHluHffGY3l2-V0,550
38
38
  httpbinx/templates/trackingscripts.html,sha256=3E-Lg6NpBpF74H3srJuswtHfD87gNEsuVxsjm9cqIYM,625
39
- httpbinx-1.8.1.dist-info/RECORD,,
39
+ httpbinx-1.9.0.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: pdm-backend (2.4.4)
2
+ Generator: pdm-backend (2.4.5)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any