starmallow 0.9.0__py3-none-any.whl → 0.9.1__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.
- starmallow/__init__.py +16 -7
- starmallow/middleware/__init__.py +1 -1
- starmallow/security/http.py +3 -3
- starmallow/types.py +1 -1
- {starmallow-0.9.0.dist-info → starmallow-0.9.1.dist-info}/METADATA +1 -1
- {starmallow-0.9.0.dist-info → starmallow-0.9.1.dist-info}/RECORD +8 -8
- {starmallow-0.9.0.dist-info → starmallow-0.9.1.dist-info}/WHEEL +0 -0
- {starmallow-0.9.0.dist-info → starmallow-0.9.1.dist-info}/licenses/LICENSE.md +0 -0
starmallow/__init__.py
CHANGED
@@ -1,8 +1,17 @@
|
|
1
|
-
__version__ = "0.9.
|
1
|
+
__version__ = "0.9.1"
|
2
2
|
|
3
|
-
from .applications import StarMallow
|
4
|
-
from .exceptions import RequestValidationError
|
5
|
-
from .params import Body
|
6
|
-
from .
|
7
|
-
from .
|
8
|
-
from .
|
3
|
+
from .applications import StarMallow as StarMallow
|
4
|
+
from .exceptions import RequestValidationError as RequestValidationError
|
5
|
+
from .params import Body as Body
|
6
|
+
from .params import Cookie as Cookie
|
7
|
+
from .params import Form as Form
|
8
|
+
from .params import Header as Header
|
9
|
+
from .params import NoParam as NoParam
|
10
|
+
from .params import Path as Path
|
11
|
+
from .params import Query as Query
|
12
|
+
from .params import ResolvedParam as ResolvedParam
|
13
|
+
from .params import Security as Security
|
14
|
+
from .responses import HTTPValidationError as HTTPValidationError
|
15
|
+
from .routing import APIRoute as APIRoute
|
16
|
+
from .routing import APIRouter as APIRouter
|
17
|
+
from .websockets import APIWebSocket as APIWebSocket
|
@@ -1 +1 @@
|
|
1
|
-
from .asyncexitstack import AsyncExitStackMiddleware
|
1
|
+
from .asyncexitstack import AsyncExitStackMiddleware as AsyncExitStackMiddleware
|
starmallow/security/http.py
CHANGED
@@ -41,7 +41,7 @@ class HTTPBaseModel(SecurityBase):
|
|
41
41
|
@ma_dataclass(frozen=True)
|
42
42
|
class HTTPBearerModel(HTTPBaseModel):
|
43
43
|
scheme: str = "bearer"
|
44
|
-
|
44
|
+
bearerFormat: str | None = None
|
45
45
|
|
46
46
|
|
47
47
|
class HTTPBase(SecurityBaseResolver):
|
@@ -134,12 +134,12 @@ class HTTPBearer(HTTPBase):
|
|
134
134
|
def __init__(
|
135
135
|
self,
|
136
136
|
*,
|
137
|
-
|
137
|
+
bearerFormat: str | None = None, # noqa: N803
|
138
138
|
scheme_name: str | None = None,
|
139
139
|
description: str | None = None,
|
140
140
|
auto_error: bool = True,
|
141
141
|
) -> None:
|
142
|
-
self.model = HTTPBearerModel(
|
142
|
+
self.model = HTTPBearerModel(bearerFormat=bearerFormat, description=description)
|
143
143
|
self.scheme_name = scheme_name or self.__class__.__name__
|
144
144
|
self.auto_error = auto_error
|
145
145
|
|
starmallow/types.py
CHANGED
@@ -9,7 +9,7 @@ import starmallow.fields as sf
|
|
9
9
|
from starmallow.delimited_field import DelimitedList
|
10
10
|
from starmallow.endpoints import APIHTTPEndpoint
|
11
11
|
|
12
|
-
EndpointCallable = Callable[
|
12
|
+
EndpointCallable = Callable[..., Awaitable[Any] | Any]
|
13
13
|
WebSocketEndpointCallable = Callable[[WebSocket], Awaitable[None]]
|
14
14
|
DecoratedCallable = TypeVar("DecoratedCallable", bound=EndpointCallable | type[APIHTTPEndpoint])
|
15
15
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
starmallow/__init__.py,sha256=
|
1
|
+
starmallow/__init__.py,sha256=KdL5v_AucJIjcuf2DlTvRPZKr6nqyyrpMORXs3FyKCg,691
|
2
2
|
starmallow/applications.py,sha256=wI3mViPAgMAGDUy0PzDLyd6GFQaFY_d1-85LBASATNY,30396
|
3
3
|
starmallow/background.py,sha256=asjTMgO25zqZiKsxcEVBGPKd_Nb7RVZDEmzR4PNy6-k,996
|
4
4
|
starmallow/concurrency.py,sha256=YNIFo8jmHZYXfFkqzL1xFiE5QFwWYnGUsYgAROv041Q,1404
|
@@ -22,22 +22,22 @@ starmallow/responses.py,sha256=H6Ze0R5JG9O8eaS4dffiAn3lI6Y9-hz3aDHdWKGk_nw,2023
|
|
22
22
|
starmallow/routing.py,sha256=dK6ayN_Ruqz3ZGNQ3pFwqnguF7Vl0oIfD7e8OnnED_Y,45364
|
23
23
|
starmallow/schema_generator.py,sha256=Y4o8v5OUgTZA2byTOcUKONimdF8JjiwD8FZLxCVOF0I,19210
|
24
24
|
starmallow/serializers.py,sha256=Z-42L6is9klknpJ3r1DcGjB7t_txPfRvp-Rvj87_n70,12622
|
25
|
-
starmallow/types.py,sha256=
|
25
|
+
starmallow/types.py,sha256=zcdq5iIHOVVe-KINzSRNuE0xFMBSA7KefUp-HPRdZEw,840
|
26
26
|
starmallow/utils.py,sha256=CudZ2x7iWHr6xi7RT848aSIZuAfDUFzWVCxHuyKvk-E,14146
|
27
27
|
starmallow/websockets.py,sha256=54ctFGgA4A3VFwpUFmlu8aVmHOo4R6x3O_-z5r2BsdI,2232
|
28
28
|
starmallow/ext/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
29
29
|
starmallow/ext/marshmallow/__init__.py,sha256=33jENGdfPq4-CDG0LOmN3KOGW1pXTy7a2oMwy4hrYzM,208
|
30
30
|
starmallow/ext/marshmallow/openapi.py,sha256=SkaGp80qvQxDSatxygN3IIKXQ7GTa01rioY_uddTxEs,10164
|
31
|
-
starmallow/middleware/__init__.py,sha256=
|
31
|
+
starmallow/middleware/__init__.py,sha256=NwjiXJbSSLxImnQ9t91c-Dy1jPrvHU_--POXIVOyHPw,81
|
32
32
|
starmallow/middleware/asyncexitstack.py,sha256=wxugZgPg5yxuXxZjPm-_PMG7hAfOeo2lRLR07eaSWS8,1160
|
33
33
|
starmallow/security/__init__.py,sha256=1rQFBIGnEbE51XDZSSi9NgPjXLScFq3RoLu4vk0KVYw,191
|
34
34
|
starmallow/security/api_key.py,sha256=8WH52R4OjLKYSkXj35AgayFsXM7JQVp1Pf0DzpMl4ms,3108
|
35
35
|
starmallow/security/base.py,sha256=d2bMKCbPB8wh4Ce0b5xSYS9ZHeeyVLnyjpwK_NE505M,1404
|
36
|
-
starmallow/security/http.py,sha256=
|
36
|
+
starmallow/security/http.py,sha256=wSbRomh9IYAi2nJ4ugFrx2JLg-m85DxWVaUMZt5PwIw,6693
|
37
37
|
starmallow/security/oauth2.py,sha256=G72-wJyvrGyHUbg9hbzf44RBN8zFalZYnHKpRC2I1po,10108
|
38
38
|
starmallow/security/open_id_connect_url.py,sha256=9E-Zwnt-IR3jimOMkvIwnGHTuJMlGmjs7LCf1SGtKT8,1415
|
39
39
|
starmallow/security/utils.py,sha256=7tziAa2Cwa7xhwM_NF4DSY3BHoqVaWgJ21VuV8LvhrY,253
|
40
|
-
starmallow-0.9.
|
41
|
-
starmallow-0.9.
|
42
|
-
starmallow-0.9.
|
43
|
-
starmallow-0.9.
|
40
|
+
starmallow-0.9.1.dist-info/METADATA,sha256=fwkeplNEumkhIOM88v_4oWy5Lb0v1x3D2vicIk1VwhU,5611
|
41
|
+
starmallow-0.9.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
42
|
+
starmallow-0.9.1.dist-info/licenses/LICENSE.md,sha256=QelyGgOzch8CXzy6HrYwHh7nmj0rlWkDA0YzmZ3CPaY,1084
|
43
|
+
starmallow-0.9.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|