starmallow 0.9.0__tar.gz → 0.9.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 (123) hide show
  1. {starmallow-0.9.0 → starmallow-0.9.1}/PKG-INFO +1 -1
  2. starmallow-0.9.1/starmallow/__init__.py +17 -0
  3. starmallow-0.9.1/starmallow/middleware/__init__.py +1 -0
  4. {starmallow-0.9.0 → starmallow-0.9.1}/starmallow/security/http.py +3 -3
  5. {starmallow-0.9.0 → starmallow-0.9.1}/starmallow/types.py +1 -1
  6. starmallow-0.9.0/starmallow/__init__.py +0 -8
  7. starmallow-0.9.0/starmallow/middleware/__init__.py +0 -1
  8. {starmallow-0.9.0 → starmallow-0.9.1}/.editorconfig +0 -0
  9. {starmallow-0.9.0 → starmallow-0.9.1}/.gitignore +0 -0
  10. {starmallow-0.9.0 → starmallow-0.9.1}/.pre-commit-config.yaml +0 -0
  11. {starmallow-0.9.0 → starmallow-0.9.1}/.python-version +0 -0
  12. {starmallow-0.9.0 → starmallow-0.9.1}/Dockerfile +0 -0
  13. {starmallow-0.9.0 → starmallow-0.9.1}/LICENSE.md +0 -0
  14. {starmallow-0.9.0 → starmallow-0.9.1}/README.md +0 -0
  15. {starmallow-0.9.0 → starmallow-0.9.1}/docker-compose.yml +0 -0
  16. {starmallow-0.9.0 → starmallow-0.9.1}/docs/design_ideas.md +0 -0
  17. {starmallow-0.9.0 → starmallow-0.9.1}/examples/__init__.py +0 -0
  18. {starmallow-0.9.0 → starmallow-0.9.1}/examples/cache_server.py +0 -0
  19. {starmallow-0.9.0 → starmallow-0.9.1}/examples/flask_server.py +0 -0
  20. {starmallow-0.9.0 → starmallow-0.9.1}/examples/goals.ipynb +0 -0
  21. {starmallow-0.9.0 → starmallow-0.9.1}/examples/gunicorn.py +0 -0
  22. {starmallow-0.9.0 → starmallow-0.9.1}/examples/recommended_server.py +0 -0
  23. {starmallow-0.9.0 → starmallow-0.9.1}/examples/sample_server.py +0 -0
  24. {starmallow-0.9.0 → starmallow-0.9.1}/pyproject.toml +0 -0
  25. {starmallow-0.9.0 → starmallow-0.9.1}/starmallow/applications.py +0 -0
  26. {starmallow-0.9.0 → starmallow-0.9.1}/starmallow/background.py +0 -0
  27. {starmallow-0.9.0 → starmallow-0.9.1}/starmallow/concurrency.py +0 -0
  28. {starmallow-0.9.0 → starmallow-0.9.1}/starmallow/constants.py +0 -0
  29. {starmallow-0.9.0 → starmallow-0.9.1}/starmallow/dataclasses.py +0 -0
  30. {starmallow-0.9.0 → starmallow-0.9.1}/starmallow/datastructures.py +0 -0
  31. {starmallow-0.9.0 → starmallow-0.9.1}/starmallow/decorators.py +0 -0
  32. {starmallow-0.9.0 → starmallow-0.9.1}/starmallow/delimited_field.py +0 -0
  33. {starmallow-0.9.0 → starmallow-0.9.1}/starmallow/docs.py +0 -0
  34. {starmallow-0.9.0 → starmallow-0.9.1}/starmallow/endpoint.py +0 -0
  35. {starmallow-0.9.0 → starmallow-0.9.1}/starmallow/endpoints.py +0 -0
  36. {starmallow-0.9.0 → starmallow-0.9.1}/starmallow/exception_handlers.py +0 -0
  37. {starmallow-0.9.0 → starmallow-0.9.1}/starmallow/exceptions.py +0 -0
  38. {starmallow-0.9.0 → starmallow-0.9.1}/starmallow/ext/__init__.py +0 -0
  39. {starmallow-0.9.0 → starmallow-0.9.1}/starmallow/ext/marshmallow/__init__.py +0 -0
  40. {starmallow-0.9.0 → starmallow-0.9.1}/starmallow/ext/marshmallow/openapi.py +0 -0
  41. {starmallow-0.9.0 → starmallow-0.9.1}/starmallow/fields.py +0 -0
  42. {starmallow-0.9.0 → starmallow-0.9.1}/starmallow/generics.py +0 -0
  43. {starmallow-0.9.0 → starmallow-0.9.1}/starmallow/middleware/asyncexitstack.py +0 -0
  44. {starmallow-0.9.0 → starmallow-0.9.1}/starmallow/params.py +0 -0
  45. {starmallow-0.9.0 → starmallow-0.9.1}/starmallow/py.typed +0 -0
  46. {starmallow-0.9.0 → starmallow-0.9.1}/starmallow/request_resolver.py +0 -0
  47. {starmallow-0.9.0 → starmallow-0.9.1}/starmallow/requests.py +0 -0
  48. {starmallow-0.9.0 → starmallow-0.9.1}/starmallow/responses.py +0 -0
  49. {starmallow-0.9.0 → starmallow-0.9.1}/starmallow/routing.py +0 -0
  50. {starmallow-0.9.0 → starmallow-0.9.1}/starmallow/schema_generator.py +0 -0
  51. {starmallow-0.9.0 → starmallow-0.9.1}/starmallow/security/__init__.py +0 -0
  52. {starmallow-0.9.0 → starmallow-0.9.1}/starmallow/security/api_key.py +0 -0
  53. {starmallow-0.9.0 → starmallow-0.9.1}/starmallow/security/base.py +0 -0
  54. {starmallow-0.9.0 → starmallow-0.9.1}/starmallow/security/oauth2.py +0 -0
  55. {starmallow-0.9.0 → starmallow-0.9.1}/starmallow/security/open_id_connect_url.py +0 -0
  56. {starmallow-0.9.0 → starmallow-0.9.1}/starmallow/security/utils.py +0 -0
  57. {starmallow-0.9.0 → starmallow-0.9.1}/starmallow/serializers.py +0 -0
  58. {starmallow-0.9.0 → starmallow-0.9.1}/starmallow/utils.py +0 -0
  59. {starmallow-0.9.0 → starmallow-0.9.1}/starmallow/websockets.py +0 -0
  60. {starmallow-0.9.0 → starmallow-0.9.1}/tests/__init__.py +0 -0
  61. {starmallow-0.9.0 → starmallow-0.9.1}/tests/basic_api.py +0 -0
  62. {starmallow-0.9.0 → starmallow-0.9.1}/tests/security/__init__.py +0 -0
  63. {starmallow-0.9.0 → starmallow-0.9.1}/tests/security/api_key/__init__.py +0 -0
  64. {starmallow-0.9.0 → starmallow-0.9.1}/tests/security/api_key/test_api_key_cookie.py +0 -0
  65. {starmallow-0.9.0 → starmallow-0.9.1}/tests/security/api_key/test_api_key_cookie_description.py +0 -0
  66. {starmallow-0.9.0 → starmallow-0.9.1}/tests/security/api_key/test_api_key_cookie_optional.py +0 -0
  67. {starmallow-0.9.0 → starmallow-0.9.1}/tests/security/api_key/test_api_key_header.py +0 -0
  68. {starmallow-0.9.0 → starmallow-0.9.1}/tests/security/api_key/test_api_key_header_description.py +0 -0
  69. {starmallow-0.9.0 → starmallow-0.9.1}/tests/security/api_key/test_api_key_header_optional.py +0 -0
  70. {starmallow-0.9.0 → starmallow-0.9.1}/tests/security/api_key/test_api_key_query.py +0 -0
  71. {starmallow-0.9.0 → starmallow-0.9.1}/tests/security/api_key/test_api_key_query_description.py +0 -0
  72. {starmallow-0.9.0 → starmallow-0.9.1}/tests/security/api_key/test_api_key_query_optional.py +0 -0
  73. {starmallow-0.9.0 → starmallow-0.9.1}/tests/security/http/__init__.py +0 -0
  74. {starmallow-0.9.0 → starmallow-0.9.1}/tests/security/http/test_http_base.py +0 -0
  75. {starmallow-0.9.0 → starmallow-0.9.1}/tests/security/http/test_http_base_description.py +0 -0
  76. {starmallow-0.9.0 → starmallow-0.9.1}/tests/security/http/test_http_base_optional.py +0 -0
  77. {starmallow-0.9.0 → starmallow-0.9.1}/tests/security/http/test_http_basic.py +0 -0
  78. {starmallow-0.9.0 → starmallow-0.9.1}/tests/security/http/test_http_basic_realm.py +0 -0
  79. {starmallow-0.9.0 → starmallow-0.9.1}/tests/security/http/test_http_basic_realm_description.py +0 -0
  80. {starmallow-0.9.0 → starmallow-0.9.1}/tests/security/http/test_http_bearer.py +0 -0
  81. {starmallow-0.9.0 → starmallow-0.9.1}/tests/security/http/test_http_bearer_description.py +0 -0
  82. {starmallow-0.9.0 → starmallow-0.9.1}/tests/security/http/test_http_bearer_optional.py +0 -0
  83. {starmallow-0.9.0 → starmallow-0.9.1}/tests/security/http/test_http_digest.py +0 -0
  84. {starmallow-0.9.0 → starmallow-0.9.1}/tests/security/http/test_http_digest_description.py +0 -0
  85. {starmallow-0.9.0 → starmallow-0.9.1}/tests/security/http/test_http_digest_optional.py +0 -0
  86. {starmallow-0.9.0 → starmallow-0.9.1}/tests/security/oauth2/__init__.py +0 -0
  87. {starmallow-0.9.0 → starmallow-0.9.1}/tests/security/oauth2/test_oauth2.py +0 -0
  88. {starmallow-0.9.0 → starmallow-0.9.1}/tests/security/oauth2/test_oauth2_authorization_code_bearer.py +0 -0
  89. {starmallow-0.9.0 → starmallow-0.9.1}/tests/security/oauth2/test_oauth2_authorization_code_bearer_description.py +0 -0
  90. {starmallow-0.9.0 → starmallow-0.9.1}/tests/security/oauth2/test_oauth2_optional.py +0 -0
  91. {starmallow-0.9.0 → starmallow-0.9.1}/tests/security/oauth2/test_oauth2_optional_description.py +0 -0
  92. {starmallow-0.9.0 → starmallow-0.9.1}/tests/security/oauth2/test_oauth2_password_bearer_optional.py +0 -0
  93. {starmallow-0.9.0 → starmallow-0.9.1}/tests/security/oauth2/test_oauth2_password_bearer_optional_description.py +0 -0
  94. {starmallow-0.9.0 → starmallow-0.9.1}/tests/security/openid_connect/__init__.py +0 -0
  95. {starmallow-0.9.0 → starmallow-0.9.1}/tests/security/openid_connect/test_openid_connect.py +0 -0
  96. {starmallow-0.9.0 → starmallow-0.9.1}/tests/security/openid_connect/test_openid_connect_description.py +0 -0
  97. {starmallow-0.9.0 → starmallow-0.9.1}/tests/security/openid_connect/test_openid_connect_optional.py +0 -0
  98. {starmallow-0.9.0 → starmallow-0.9.1}/tests/test_additional_properties.py +0 -0
  99. {starmallow-0.9.0 → starmallow-0.9.1}/tests/test_additional_response_extra.py +0 -0
  100. {starmallow-0.9.0 → starmallow-0.9.1}/tests/test_additional_responses_bad.py +0 -0
  101. {starmallow-0.9.0 → starmallow-0.9.1}/tests/test_additional_responses_custom_model_in_callback.py +0 -0
  102. {starmallow-0.9.0 → starmallow-0.9.1}/tests/test_additional_responses_custom_validationerror.py +0 -0
  103. {starmallow-0.9.0 → starmallow-0.9.1}/tests/test_additional_responses_default_validationerror.py +0 -0
  104. {starmallow-0.9.0 → starmallow-0.9.1}/tests/test_additional_responses_response_class.py +0 -0
  105. {starmallow-0.9.0 → starmallow-0.9.1}/tests/test_additional_responses_router.py +0 -0
  106. {starmallow-0.9.0 → starmallow-0.9.1}/tests/test_annotated.py +0 -0
  107. {starmallow-0.9.0 → starmallow-0.9.1}/tests/test_basic_api.py +0 -0
  108. {starmallow-0.9.0 → starmallow-0.9.1}/tests/test_dataclass_fields.py +0 -0
  109. {starmallow-0.9.0 → starmallow-0.9.1}/tests/test_delimited_params.py +0 -0
  110. {starmallow-0.9.0 → starmallow-0.9.1}/tests/test_generics.py +0 -0
  111. {starmallow-0.9.0 → starmallow-0.9.1}/tests/test_http_endpoints.py +0 -0
  112. {starmallow-0.9.0 → starmallow-0.9.1}/tests/test_input.py +0 -0
  113. {starmallow-0.9.0 → starmallow-0.9.1}/tests/test_middleware.py +0 -0
  114. {starmallow-0.9.0 → starmallow-0.9.1}/tests/test_requests_orjson.py +0 -0
  115. {starmallow-0.9.0 → starmallow-0.9.1}/tests/test_requests_ujson.py +0 -0
  116. {starmallow-0.9.0 → starmallow-0.9.1}/tests/test_resolved_param_contextmanagers.py +0 -0
  117. {starmallow-0.9.0 → starmallow-0.9.1}/tests/test_resolved_params.py +0 -0
  118. {starmallow-0.9.0 → starmallow-0.9.1}/tests/test_responses.py +0 -0
  119. {starmallow-0.9.0 → starmallow-0.9.1}/tests/test_responses_orjson.py +0 -0
  120. {starmallow-0.9.0 → starmallow-0.9.1}/tests/test_responses_ujson.py +0 -0
  121. {starmallow-0.9.0 → starmallow-0.9.1}/tests/test_ws_router.py +0 -0
  122. {starmallow-0.9.0 → starmallow-0.9.1}/tests/utils.py +0 -0
  123. {starmallow-0.9.0 → starmallow-0.9.1}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: starmallow
3
- Version: 0.9.0
3
+ Version: 0.9.1
4
4
  Summary: StarMallow framework
5
5
  Project-URL: Homepage, https://github.com/mvanderlee/starmallow
6
6
  Author-email: Michiel Vanderlee <jmt.vanderlee@gmail.com>
@@ -0,0 +1,17 @@
1
+ __version__ = "0.9.1"
2
+
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
@@ -0,0 +1 @@
1
+ from .asyncexitstack import AsyncExitStackMiddleware as AsyncExitStackMiddleware
@@ -41,7 +41,7 @@ class HTTPBaseModel(SecurityBase):
41
41
  @ma_dataclass(frozen=True)
42
42
  class HTTPBearerModel(HTTPBaseModel):
43
43
  scheme: str = "bearer"
44
- bearer_format: str | None = None
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
- bearer_format: str | None = None,
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(bearer_format=bearer_format, description=description)
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
 
@@ -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[[], Awaitable[Any] | Any] | Callable[[...], Awaitable[Any] | Any]
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,8 +0,0 @@
1
- __version__ = "0.9.0"
2
-
3
- from .applications import StarMallow
4
- from .exceptions import RequestValidationError
5
- from .params import Body, Cookie, Form, Header, NoParam, Path, Query, ResolvedParam, Security
6
- from .responses import HTTPValidationError
7
- from .routing import APIRoute, APIRouter
8
- from .websockets import APIWebSocket
@@ -1 +0,0 @@
1
- from .asyncexitstack import AsyncExitStackMiddleware
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
File without changes