strawberry-graphql 0.278.0__py3-none-any.whl → 0.278.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.
@@ -3,32 +3,27 @@ from __future__ import annotations
3
3
  import asyncio
4
4
  import warnings
5
5
  from datetime import timedelta
6
- from io import BytesIO
7
6
  from json.decoder import JSONDecodeError
8
7
  from typing import (
9
8
  TYPE_CHECKING,
10
- Any,
11
9
  Callable,
12
10
  Optional,
13
11
  Union,
14
- cast,
15
12
  )
16
13
  from typing_extensions import TypeGuard
17
14
 
15
+ from lia import AiohttpHTTPRequestAdapter, HTTPException
16
+
18
17
  from aiohttp import ClientConnectionResetError, http, web
19
- from aiohttp.multipart import BodyPartReader
20
18
  from strawberry.http.async_base_view import (
21
19
  AsyncBaseHTTPView,
22
- AsyncHTTPRequestAdapter,
23
20
  AsyncWebSocketAdapter,
24
21
  )
25
22
  from strawberry.http.exceptions import (
26
- HTTPException,
27
23
  NonJsonMessageReceived,
28
24
  NonTextMessageReceived,
29
25
  WebSocketDisconnected,
30
26
  )
31
- from strawberry.http.types import FormData, HTTPMethod, QueryParams
32
27
  from strawberry.http.typevars import (
33
28
  Context,
34
29
  RootValue,
@@ -43,47 +38,6 @@ if TYPE_CHECKING:
43
38
  from strawberry.schema import BaseSchema
44
39
 
45
40
 
46
- class AiohttpHTTPRequestAdapter(AsyncHTTPRequestAdapter):
47
- def __init__(self, request: web.Request) -> None:
48
- self.request = request
49
-
50
- @property
51
- def query_params(self) -> QueryParams:
52
- return self.request.query.copy() # type: ignore[attr-defined]
53
-
54
- async def get_body(self) -> str:
55
- return (await self.request.content.read()).decode()
56
-
57
- @property
58
- def method(self) -> HTTPMethod:
59
- return cast("HTTPMethod", self.request.method.upper())
60
-
61
- @property
62
- def headers(self) -> Mapping[str, str]:
63
- return self.request.headers
64
-
65
- async def get_form_data(self) -> FormData:
66
- reader = await self.request.multipart()
67
-
68
- data: dict[str, Any] = {}
69
- files: dict[str, Any] = {}
70
-
71
- while field := await reader.next():
72
- assert isinstance(field, BodyPartReader)
73
- assert field.name
74
-
75
- if field.filename:
76
- files[field.name] = BytesIO(await field.read(decode=False))
77
- else:
78
- data[field.name] = await field.text()
79
-
80
- return FormData(files=files, form=data)
81
-
82
- @property
83
- def content_type(self) -> Optional[str]:
84
- return self.headers.get("content-type")
85
-
86
-
87
41
  class AiohttpWebSocketAdapter(AsyncWebSocketAdapter):
88
42
  def __init__(
89
43
  self, view: AsyncBaseHTTPView, request: web.Request, ws: web.WebSocketResponse
@@ -8,10 +8,10 @@ from typing import (
8
8
  Callable,
9
9
  Optional,
10
10
  Union,
11
- cast,
12
11
  )
13
12
  from typing_extensions import TypeGuard
14
13
 
14
+ from lia import HTTPException, StarletteRequestAdapter
15
15
  from starlette import status
16
16
  from starlette.requests import Request
17
17
  from starlette.responses import (
@@ -24,16 +24,13 @@ from starlette.websockets import WebSocket, WebSocketDisconnect, WebSocketState
24
24
 
25
25
  from strawberry.http.async_base_view import (
26
26
  AsyncBaseHTTPView,
27
- AsyncHTTPRequestAdapter,
28
27
  AsyncWebSocketAdapter,
29
28
  )
30
29
  from strawberry.http.exceptions import (
31
- HTTPException,
32
30
  NonJsonMessageReceived,
33
31
  NonTextMessageReceived,
34
32
  WebSocketDisconnected,
35
33
  )
36
- from strawberry.http.types import FormData, HTTPMethod, QueryParams
37
34
  from strawberry.http.typevars import (
38
35
  Context,
39
36
  RootValue,
@@ -50,38 +47,6 @@ if TYPE_CHECKING:
50
47
  from strawberry.schema import BaseSchema
51
48
 
52
49
 
53
- class ASGIRequestAdapter(AsyncHTTPRequestAdapter):
54
- def __init__(self, request: Request) -> None:
55
- self.request = request
56
-
57
- @property
58
- def query_params(self) -> QueryParams:
59
- return self.request.query_params
60
-
61
- @property
62
- def method(self) -> HTTPMethod:
63
- return cast("HTTPMethod", self.request.method.upper())
64
-
65
- @property
66
- def headers(self) -> Mapping[str, str]:
67
- return self.request.headers
68
-
69
- @property
70
- def content_type(self) -> Optional[str]:
71
- return self.request.headers.get("content-type")
72
-
73
- async def get_body(self) -> bytes:
74
- return await self.request.body()
75
-
76
- async def get_form_data(self) -> FormData:
77
- multipart_data = await self.request.form()
78
-
79
- return FormData(
80
- files=multipart_data,
81
- form=multipart_data,
82
- )
83
-
84
-
85
50
  class ASGIWebSocketAdapter(AsyncWebSocketAdapter):
86
51
  def __init__(
87
52
  self, view: AsyncBaseHTTPView, request: WebSocket, response: WebSocket
@@ -127,7 +92,7 @@ class GraphQL(
127
92
  ]
128
93
  ):
129
94
  allow_queries_via_get = True
130
- request_adapter_class = ASGIRequestAdapter
95
+ request_adapter_class = StarletteRequestAdapter
131
96
  websocket_adapter_class = ASGIWebSocketAdapter
132
97
 
133
98
  def __init__(
@@ -1,56 +1,21 @@
1
1
  from __future__ import annotations
2
2
 
3
3
  import warnings
4
- from typing import TYPE_CHECKING, Any, Optional, Union, cast
4
+ from typing import TYPE_CHECKING, Optional, Union
5
+
6
+ from lia import ChaliceHTTPRequestAdapter, HTTPException
5
7
 
6
8
  from chalice.app import Request, Response
7
- from strawberry.http.exceptions import HTTPException
8
- from strawberry.http.sync_base_view import SyncBaseHTTPView, SyncHTTPRequestAdapter
9
+ from strawberry.http.sync_base_view import SyncBaseHTTPView
9
10
  from strawberry.http.temporal_response import TemporalResponse
10
11
  from strawberry.http.typevars import Context, RootValue
11
12
 
12
13
  if TYPE_CHECKING:
13
- from collections.abc import Mapping
14
-
15
14
  from strawberry.http import GraphQLHTTPResponse
16
15
  from strawberry.http.ides import GraphQL_IDE
17
- from strawberry.http.types import HTTPMethod, QueryParams
18
16
  from strawberry.schema import BaseSchema
19
17
 
20
18
 
21
- class ChaliceHTTPRequestAdapter(SyncHTTPRequestAdapter):
22
- def __init__(self, request: Request) -> None:
23
- self.request = request
24
-
25
- @property
26
- def query_params(self) -> QueryParams:
27
- return self.request.query_params or {}
28
-
29
- @property
30
- def body(self) -> Union[str, bytes]:
31
- return self.request.raw_body
32
-
33
- @property
34
- def method(self) -> HTTPMethod:
35
- return cast("HTTPMethod", self.request.method.upper())
36
-
37
- @property
38
- def headers(self) -> Mapping[str, str]:
39
- return self.request.headers
40
-
41
- @property
42
- def post_data(self) -> Mapping[str, Union[str, bytes]]:
43
- raise NotImplementedError
44
-
45
- @property
46
- def files(self) -> Mapping[str, Any]:
47
- raise NotImplementedError
48
-
49
- @property
50
- def content_type(self) -> Optional[str]:
51
- return self.request.headers.get("Content-Type", None)
52
-
53
-
54
19
  class GraphQLView(
55
20
  SyncBaseHTTPView[Request, Response, TemporalResponse, Context, RootValue]
56
21
  ):
@@ -12,14 +12,13 @@ from urllib.parse import parse_qs
12
12
  from django.conf import settings
13
13
  from django.core.files import uploadhandler
14
14
  from django.http.multipartparser import MultiPartParser
15
+ from lia import AsyncHTTPRequestAdapter, FormData, HTTPException, SyncHTTPRequestAdapter
15
16
 
16
17
  from channels.db import database_sync_to_async
17
18
  from channels.generic.http import AsyncHttpConsumer
18
- from strawberry.http.async_base_view import AsyncBaseHTTPView, AsyncHTTPRequestAdapter
19
- from strawberry.http.exceptions import HTTPException
20
- from strawberry.http.sync_base_view import SyncBaseHTTPView, SyncHTTPRequestAdapter
19
+ from strawberry.http.async_base_view import AsyncBaseHTTPView
20
+ from strawberry.http.sync_base_view import SyncBaseHTTPView
21
21
  from strawberry.http.temporal_response import TemporalResponse
22
- from strawberry.http.types import FormData
23
22
  from strawberry.http.typevars import Context, RootValue
24
23
  from strawberry.types.unset import UNSET
25
24
 
@@ -127,6 +126,28 @@ class BaseChannelsRequestAdapter:
127
126
  def content_type(self) -> Optional[str]:
128
127
  return self.request.content_type
129
128
 
129
+ @property
130
+ def url(self) -> str:
131
+ scheme = self.request.consumer.scope["scheme"]
132
+ host = self.headers.get("host", "localhost")
133
+ path = self.request.consumer.scope["path"]
134
+ query_string = self.request.consumer.scope["query_string"]
135
+ url = f"{scheme}://{host}{path}"
136
+ if query_string:
137
+ url += f"?{query_string.decode()}"
138
+ return url
139
+
140
+ @property
141
+ def cookies(self) -> Mapping[str, str]:
142
+ cookie_header = self.headers.get("cookie", "")
143
+ cookies = {}
144
+ if cookie_header:
145
+ for cookie in cookie_header.split(";"):
146
+ if "=" in cookie:
147
+ key, value = cookie.split("=", 1)
148
+ cookies[key.strip()] = value.strip()
149
+ return cookies
150
+
130
151
 
131
152
  class ChannelsRequestAdapter(BaseChannelsRequestAdapter, AsyncHTTPRequestAdapter):
132
153
  async def get_body(self) -> bytes:
@@ -143,11 +164,14 @@ class SyncChannelsRequestAdapter(BaseChannelsRequestAdapter, SyncHTTPRequestAdap
143
164
 
144
165
  @property
145
166
  def post_data(self) -> Mapping[str, Union[str, bytes]]:
146
- return self.request.form_data["form"]
167
+ return self.request.form_data.form
147
168
 
148
169
  @property
149
170
  def files(self) -> Mapping[str, Any]:
150
- return self.request.form_data["files"]
171
+ return self.request.form_data.files
172
+
173
+ def get_form_data(self) -> FormData:
174
+ return self.request.form_data
151
175
 
152
176
 
153
177
  class BaseGraphQLHTTPConsumer(ChannelsConsumer, AsyncHttpConsumer):
@@ -8,7 +8,6 @@ from typing import (
8
8
  Callable,
9
9
  Optional,
10
10
  Union,
11
- cast,
12
11
  )
13
12
  from typing_extensions import TypeGuard
14
13
 
@@ -26,11 +25,10 @@ from django.template.exceptions import TemplateDoesNotExist
26
25
  from django.template.loader import render_to_string
27
26
  from django.utils.decorators import classonlymethod
28
27
  from django.views.generic import View
28
+ from lia import AsyncDjangoHTTPRequestAdapter, DjangoHTTPRequestAdapter, HTTPException
29
29
 
30
- from strawberry.http.async_base_view import AsyncBaseHTTPView, AsyncHTTPRequestAdapter
31
- from strawberry.http.exceptions import HTTPException
32
- from strawberry.http.sync_base_view import SyncBaseHTTPView, SyncHTTPRequestAdapter
33
- from strawberry.http.types import FormData, HTTPMethod, QueryParams
30
+ from strawberry.http.async_base_view import AsyncBaseHTTPView
31
+ from strawberry.http.sync_base_view import SyncBaseHTTPView
34
32
  from strawberry.http.typevars import (
35
33
  Context,
36
34
  RootValue,
@@ -39,7 +37,7 @@ from strawberry.http.typevars import (
39
37
  from .context import StrawberryDjangoContext
40
38
 
41
39
  if TYPE_CHECKING:
42
- from collections.abc import AsyncIterator, Mapping
40
+ from collections.abc import AsyncIterator
43
41
 
44
42
  from django.template.response import TemplateResponse
45
43
 
@@ -67,73 +65,6 @@ class TemporalHttpResponse(JsonResponse):
67
65
  )
68
66
 
69
67
 
70
- class DjangoHTTPRequestAdapter(SyncHTTPRequestAdapter):
71
- def __init__(self, request: HttpRequest) -> None:
72
- self.request = request
73
-
74
- @property
75
- def query_params(self) -> QueryParams:
76
- return self.request.GET.dict()
77
-
78
- @property
79
- def body(self) -> Union[str, bytes]:
80
- return self.request.body.decode()
81
-
82
- @property
83
- def method(self) -> HTTPMethod:
84
- assert self.request.method is not None
85
-
86
- return cast("HTTPMethod", self.request.method.upper())
87
-
88
- @property
89
- def headers(self) -> Mapping[str, str]:
90
- return self.request.headers
91
-
92
- @property
93
- def post_data(self) -> Mapping[str, Union[str, bytes]]:
94
- return self.request.POST
95
-
96
- @property
97
- def files(self) -> Mapping[str, Any]:
98
- return self.request.FILES
99
-
100
- @property
101
- def content_type(self) -> Optional[str]:
102
- return self.request.content_type
103
-
104
-
105
- class AsyncDjangoHTTPRequestAdapter(AsyncHTTPRequestAdapter):
106
- def __init__(self, request: HttpRequest) -> None:
107
- self.request = request
108
-
109
- @property
110
- def query_params(self) -> QueryParams:
111
- return self.request.GET.dict()
112
-
113
- @property
114
- def method(self) -> HTTPMethod:
115
- assert self.request.method is not None
116
-
117
- return cast("HTTPMethod", self.request.method.upper())
118
-
119
- @property
120
- def headers(self) -> Mapping[str, str]:
121
- return self.request.headers
122
-
123
- @property
124
- def content_type(self) -> Optional[str]:
125
- return self.headers.get("Content-type")
126
-
127
- async def get_body(self) -> str:
128
- return self.request.body.decode()
129
-
130
- async def get_form_data(self) -> FormData:
131
- return FormData(
132
- files=self.request.FILES,
133
- form=self.request.POST,
134
- )
135
-
136
-
137
68
  class BaseView:
138
69
  graphql_ide_html: str
139
70
 
@@ -13,6 +13,7 @@ from typing import (
13
13
  )
14
14
  from typing_extensions import TypeGuard
15
15
 
16
+ from lia import HTTPException, StarletteRequestAdapter
16
17
  from starlette import status
17
18
  from starlette.background import BackgroundTasks # noqa: TC002
18
19
  from starlette.requests import HTTPConnection, Request
@@ -29,16 +30,19 @@ from fastapi import APIRouter, Depends, params
29
30
  from fastapi.datastructures import Default
30
31
  from fastapi.routing import APIRoute
31
32
  from fastapi.utils import generate_unique_id
32
- from strawberry.asgi import ASGIRequestAdapter, ASGIWebSocketAdapter
33
+ from strawberry.asgi import ASGIWebSocketAdapter
33
34
  from strawberry.exceptions import InvalidCustomContext
34
35
  from strawberry.fastapi.context import BaseContext, CustomContext
35
36
  from strawberry.http.async_base_view import AsyncBaseHTTPView
36
- from strawberry.http.exceptions import HTTPException
37
37
  from strawberry.http.typevars import Context, RootValue
38
38
  from strawberry.subscriptions import GRAPHQL_TRANSPORT_WS_PROTOCOL, GRAPHQL_WS_PROTOCOL
39
39
 
40
40
  if TYPE_CHECKING:
41
- from collections.abc import AsyncIterator, Awaitable, Sequence
41
+ from collections.abc import (
42
+ AsyncIterator,
43
+ Awaitable,
44
+ Sequence,
45
+ )
42
46
  from enum import Enum
43
47
 
44
48
  from starlette.routing import BaseRoute
@@ -57,7 +61,7 @@ class GraphQLRouter(
57
61
  APIRouter,
58
62
  ):
59
63
  allow_queries_via_get = True
60
- request_adapter_class = ASGIRequestAdapter
64
+ request_adapter_class = StarletteRequestAdapter
61
65
  websocket_adapter_class = ASGIWebSocketAdapter
62
66
 
63
67
  @staticmethod
strawberry/flask/views.py CHANGED
@@ -3,67 +3,27 @@ from __future__ import annotations
3
3
  import warnings
4
4
  from typing import (
5
5
  TYPE_CHECKING,
6
- Any,
7
6
  ClassVar,
8
7
  Optional,
9
8
  Union,
10
- cast,
11
9
  )
12
10
  from typing_extensions import TypeGuard
13
11
 
12
+ from lia import AsyncFlaskHTTPRequestAdapter, FlaskHTTPRequestAdapter, HTTPException
13
+
14
14
  from flask import Request, Response, render_template_string, request
15
15
  from flask.views import View
16
- from strawberry.http.async_base_view import AsyncBaseHTTPView, AsyncHTTPRequestAdapter
17
- from strawberry.http.exceptions import HTTPException
18
- from strawberry.http.sync_base_view import (
19
- SyncBaseHTTPView,
20
- SyncHTTPRequestAdapter,
21
- )
22
- from strawberry.http.types import FormData, HTTPMethod, QueryParams
16
+ from strawberry.http.async_base_view import AsyncBaseHTTPView
17
+ from strawberry.http.sync_base_view import SyncBaseHTTPView
23
18
  from strawberry.http.typevars import Context, RootValue
24
19
 
25
20
  if TYPE_CHECKING:
26
- from collections.abc import Mapping
27
-
28
21
  from flask.typing import ResponseReturnValue
29
22
  from strawberry.http import GraphQLHTTPResponse
30
23
  from strawberry.http.ides import GraphQL_IDE
31
24
  from strawberry.schema.base import BaseSchema
32
25
 
33
26
 
34
- class FlaskHTTPRequestAdapter(SyncHTTPRequestAdapter):
35
- def __init__(self, request: Request) -> None:
36
- self.request = request
37
-
38
- @property
39
- def query_params(self) -> QueryParams:
40
- return self.request.args.to_dict()
41
-
42
- @property
43
- def body(self) -> Union[str, bytes]:
44
- return self.request.data.decode()
45
-
46
- @property
47
- def method(self) -> HTTPMethod:
48
- return cast("HTTPMethod", self.request.method.upper())
49
-
50
- @property
51
- def headers(self) -> Mapping[str, str]:
52
- return self.request.headers # type: ignore
53
-
54
- @property
55
- def post_data(self) -> Mapping[str, Union[str, bytes]]:
56
- return self.request.form
57
-
58
- @property
59
- def files(self) -> Mapping[str, Any]:
60
- return self.request.files
61
-
62
- @property
63
- def content_type(self) -> Optional[str]:
64
- return self.request.content_type
65
-
66
-
67
27
  class BaseGraphQLView:
68
28
  graphql_ide: Optional[GraphQL_IDE]
69
29
 
@@ -131,36 +91,6 @@ class GraphQLView(
131
91
  return render_template_string(self.graphql_ide_html) # type: ignore
132
92
 
133
93
 
134
- class AsyncFlaskHTTPRequestAdapter(AsyncHTTPRequestAdapter):
135
- def __init__(self, request: Request) -> None:
136
- self.request = request
137
-
138
- @property
139
- def query_params(self) -> QueryParams:
140
- return self.request.args.to_dict()
141
-
142
- @property
143
- def method(self) -> HTTPMethod:
144
- return cast("HTTPMethod", self.request.method.upper())
145
-
146
- @property
147
- def content_type(self) -> Optional[str]:
148
- return self.request.content_type
149
-
150
- @property
151
- def headers(self) -> Mapping[str, str]:
152
- return self.request.headers # type: ignore
153
-
154
- async def get_body(self) -> str:
155
- return self.request.data.decode()
156
-
157
- async def get_form_data(self) -> FormData:
158
- return FormData(
159
- files=self.request.files,
160
- form=self.request.form,
161
- )
162
-
163
-
164
94
  class AsyncGraphQLView(
165
95
  BaseGraphQLView,
166
96
  AsyncBaseHTTPView[
@@ -17,6 +17,7 @@ from typing import (
17
17
  from typing_extensions import TypeGuard
18
18
 
19
19
  from graphql import GraphQLError
20
+ from lia import AsyncHTTPRequestAdapter, HTTPException
20
21
 
21
22
  from strawberry.exceptions import MissingQueryError
22
23
  from strawberry.file_uploads.utils import replace_placeholders_with_files
@@ -44,9 +45,7 @@ from strawberry.types.graphql import OperationType
44
45
  from strawberry.types.unset import UNSET, UnsetType
45
46
 
46
47
  from .base import BaseView
47
- from .exceptions import HTTPException
48
48
  from .parse_content_type import parse_content_type
49
- from .types import FormData, HTTPMethod, QueryParams
50
49
  from .typevars import (
51
50
  Context,
52
51
  Request,
@@ -58,30 +57,6 @@ from .typevars import (
58
57
  )
59
58
 
60
59
 
61
- class AsyncHTTPRequestAdapter(abc.ABC):
62
- @property
63
- @abc.abstractmethod
64
- def query_params(self) -> QueryParams: ...
65
-
66
- @property
67
- @abc.abstractmethod
68
- def method(self) -> HTTPMethod: ...
69
-
70
- @property
71
- @abc.abstractmethod
72
- def headers(self) -> Mapping[str, str]: ...
73
-
74
- @property
75
- @abc.abstractmethod
76
- def content_type(self) -> Optional[str]: ...
77
-
78
- @abc.abstractmethod
79
- async def get_body(self) -> Union[str, bytes]: ...
80
-
81
- @abc.abstractmethod
82
- async def get_form_data(self) -> FormData: ...
83
-
84
-
85
60
  class AsyncWebSocketAdapter(abc.ABC):
86
61
  def __init__(self, view: "AsyncBaseHTTPView") -> None:
87
62
  self.view = view
@@ -284,8 +259,9 @@ class AsyncBaseHTTPView(
284
259
  except ValueError as e:
285
260
  raise HTTPException(400, "Unable to parse the multipart body") from e
286
261
 
287
- operations = form_data["form"].get("operations", "{}")
288
- files_map = form_data["form"].get("map", "{}")
262
+ operations = form_data.form.get("operations", "{}")
263
+ files_map = form_data.form.get("map", "{}")
264
+ files = form_data.files
289
265
 
290
266
  if isinstance(operations, (bytes, str)):
291
267
  operations = self.parse_json(operations)
@@ -294,9 +270,7 @@ class AsyncBaseHTTPView(
294
270
  files_map = self.parse_json(files_map)
295
271
 
296
272
  try:
297
- return replace_placeholders_with_files(
298
- operations, files_map, form_data["files"]
299
- )
273
+ return replace_placeholders_with_files(operations, files_map, files)
300
274
  except KeyError as e:
301
275
  raise HTTPException(400, "File(s) missing in form data") from e
302
276
 
strawberry/http/base.py CHANGED
@@ -3,12 +3,13 @@ from collections.abc import Mapping
3
3
  from typing import Any, Generic, Optional, Union
4
4
  from typing_extensions import Protocol
5
5
 
6
+ from lia import HTTPException
7
+
6
8
  from strawberry.http import GraphQLRequestData
7
9
  from strawberry.http.ides import GraphQL_IDE, get_graphql_ide_html
8
10
  from strawberry.http.types import HTTPMethod, QueryParams
9
11
  from strawberry.schema.base import BaseSchema
10
12
 
11
- from .exceptions import HTTPException
12
13
  from .typevars import Request
13
14
 
14
15
 
@@ -1,9 +1,3 @@
1
- class HTTPException(Exception):
2
- def __init__(self, status_code: int, reason: str) -> None:
3
- self.status_code = status_code
4
- self.reason = reason
5
-
6
-
7
1
  class NonTextMessageReceived(Exception):
8
2
  pass
9
3
 
@@ -16,4 +10,8 @@ class WebSocketDisconnected(Exception):
16
10
  pass
17
11
 
18
12
 
19
- __all__ = ["HTTPException"]
13
+ __all__ = [
14
+ "NonJsonMessageReceived",
15
+ "NonTextMessageReceived",
16
+ "WebSocketDisconnected",
17
+ ]
@@ -1,8 +1,6 @@
1
1
  import abc
2
2
  import json
3
- from collections.abc import Mapping
4
3
  from typing import (
5
- Any,
6
4
  Callable,
7
5
  Generic,
8
6
  Literal,
@@ -11,6 +9,7 @@ from typing import (
11
9
  )
12
10
 
13
11
  from graphql import GraphQLError
12
+ from lia import HTTPException, SyncHTTPRequestAdapter
14
13
 
15
14
  from strawberry.exceptions import MissingQueryError
16
15
  from strawberry.file_uploads.utils import replace_placeholders_with_files
@@ -30,42 +29,10 @@ from strawberry.types.graphql import OperationType
30
29
  from strawberry.types.unset import UNSET
31
30
 
32
31
  from .base import BaseView
33
- from .exceptions import HTTPException
34
32
  from .parse_content_type import parse_content_type
35
- from .types import HTTPMethod, QueryParams
36
33
  from .typevars import Context, Request, Response, RootValue, SubResponse
37
34
 
38
35
 
39
- class SyncHTTPRequestAdapter(abc.ABC):
40
- @property
41
- @abc.abstractmethod
42
- def query_params(self) -> QueryParams: ...
43
-
44
- @property
45
- @abc.abstractmethod
46
- def body(self) -> Union[str, bytes]: ...
47
-
48
- @property
49
- @abc.abstractmethod
50
- def method(self) -> HTTPMethod: ...
51
-
52
- @property
53
- @abc.abstractmethod
54
- def headers(self) -> Mapping[str, str]: ...
55
-
56
- @property
57
- @abc.abstractmethod
58
- def content_type(self) -> Optional[str]: ...
59
-
60
- @property
61
- @abc.abstractmethod
62
- def post_data(self) -> Mapping[str, Union[str, bytes]]: ...
63
-
64
- @property
65
- @abc.abstractmethod
66
- def files(self) -> Mapping[str, Any]: ...
67
-
68
-
69
36
  class SyncBaseHTTPView(
70
37
  abc.ABC,
71
38
  BaseView[Request],
@@ -13,10 +13,10 @@ from typing import (
13
13
  Optional,
14
14
  TypedDict,
15
15
  Union,
16
- cast,
17
16
  )
18
17
  from typing_extensions import TypeGuard
19
18
 
19
+ from lia import HTTPException, LitestarRequestAdapter
20
20
  from msgspec import Struct
21
21
 
22
22
  from litestar import (
@@ -41,16 +41,13 @@ from litestar.status_codes import HTTP_200_OK
41
41
  from strawberry.exceptions import InvalidCustomContext
42
42
  from strawberry.http.async_base_view import (
43
43
  AsyncBaseHTTPView,
44
- AsyncHTTPRequestAdapter,
45
44
  AsyncWebSocketAdapter,
46
45
  )
47
46
  from strawberry.http.exceptions import (
48
- HTTPException,
49
47
  NonJsonMessageReceived,
50
48
  NonTextMessageReceived,
51
49
  WebSocketDisconnected,
52
50
  )
53
- from strawberry.http.types import FormData, HTTPMethod, QueryParams
54
51
  from strawberry.http.typevars import Context, RootValue
55
52
  from strawberry.subscriptions import GRAPHQL_TRANSPORT_WS_PROTOCOL, GRAPHQL_WS_PROTOCOL
56
53
 
@@ -153,41 +150,6 @@ class GraphQLResource(Struct):
153
150
  extensions: Optional[dict[str, object]]
154
151
 
155
152
 
156
- class LitestarRequestAdapter(AsyncHTTPRequestAdapter):
157
- def __init__(self, request: Request[Any, Any, Any]) -> None:
158
- self.request = request
159
-
160
- @property
161
- def query_params(self) -> QueryParams:
162
- return self.request.query_params
163
-
164
- @property
165
- def method(self) -> HTTPMethod:
166
- return cast("HTTPMethod", self.request.method.upper())
167
-
168
- @property
169
- def headers(self) -> Mapping[str, str]:
170
- return self.request.headers
171
-
172
- @property
173
- def content_type(self) -> Optional[str]:
174
- content_type, params = self.request.content_type
175
-
176
- # combine content type and params
177
- if params:
178
- content_type += "; " + "; ".join(f"{k}={v}" for k, v in params.items())
179
-
180
- return content_type
181
-
182
- async def get_body(self) -> bytes:
183
- return await self.request.body()
184
-
185
- async def get_form_data(self) -> FormData:
186
- multipart_data = await self.request.form()
187
-
188
- return FormData(form=multipart_data, files=multipart_data)
189
-
190
-
191
153
  class LitestarWebSocketAdapter(AsyncWebSocketAdapter):
192
154
  def __init__(
193
155
  self, view: AsyncBaseHTTPView, request: WebSocket, response: WebSocket
strawberry/quart/views.py CHANGED
@@ -3,25 +3,24 @@ import warnings
3
3
  from collections.abc import AsyncGenerator, Mapping, Sequence
4
4
  from datetime import timedelta
5
5
  from json.decoder import JSONDecodeError
6
- from typing import TYPE_CHECKING, Callable, ClassVar, Optional, Union, cast
6
+ from typing import TYPE_CHECKING, Callable, ClassVar, Optional, Union
7
7
  from typing_extensions import TypeGuard
8
8
 
9
+ from lia import HTTPException, QuartHTTPRequestAdapter
10
+
9
11
  from quart import Request, Response, Websocket, request, websocket
10
12
  from quart.ctx import has_websocket_context
11
13
  from quart.views import View
12
14
  from strawberry.http.async_base_view import (
13
15
  AsyncBaseHTTPView,
14
- AsyncHTTPRequestAdapter,
15
16
  AsyncWebSocketAdapter,
16
17
  )
17
18
  from strawberry.http.exceptions import (
18
- HTTPException,
19
19
  NonJsonMessageReceived,
20
20
  NonTextMessageReceived,
21
21
  WebSocketDisconnected,
22
22
  )
23
23
  from strawberry.http.ides import GraphQL_IDE
24
- from strawberry.http.types import FormData, HTTPMethod, QueryParams
25
24
  from strawberry.http.typevars import Context, RootValue
26
25
  from strawberry.subscriptions import GRAPHQL_TRANSPORT_WS_PROTOCOL, GRAPHQL_WS_PROTOCOL
27
26
 
@@ -31,35 +30,6 @@ if TYPE_CHECKING:
31
30
  from strawberry.schema.base import BaseSchema
32
31
 
33
32
 
34
- class QuartHTTPRequestAdapter(AsyncHTTPRequestAdapter):
35
- def __init__(self, request: Request) -> None:
36
- self.request = request
37
-
38
- @property
39
- def query_params(self) -> QueryParams:
40
- return self.request.args.to_dict()
41
-
42
- @property
43
- def method(self) -> HTTPMethod:
44
- return cast("HTTPMethod", self.request.method.upper())
45
-
46
- @property
47
- def content_type(self) -> Optional[str]:
48
- return self.request.content_type
49
-
50
- @property
51
- def headers(self) -> Mapping[str, str]:
52
- return self.request.headers # type: ignore
53
-
54
- async def get_body(self) -> str:
55
- return (await self.request.data).decode()
56
-
57
- async def get_form_data(self) -> FormData:
58
- files = await self.request.files
59
- form = await self.request.form
60
- return FormData(files=files, form=form)
61
-
62
-
63
33
  class QuartWebSocketAdapter(AsyncWebSocketAdapter):
64
34
  def __init__(
65
35
  self, view: AsyncBaseHTTPView, request: Websocket, response: Response
strawberry/sanic/views.py CHANGED
@@ -8,68 +8,29 @@ from typing import (
8
8
  Callable,
9
9
  Optional,
10
10
  Union,
11
- cast,
12
11
  )
13
12
  from typing_extensions import TypeGuard
14
13
 
14
+ from lia import HTTPException, SanicHTTPRequestAdapter
15
+
15
16
  from sanic.request import Request
16
17
  from sanic.response import HTTPResponse, html
17
18
  from sanic.views import HTTPMethodView
18
- from strawberry.http.async_base_view import AsyncBaseHTTPView, AsyncHTTPRequestAdapter
19
- from strawberry.http.exceptions import HTTPException
19
+ from strawberry.http.async_base_view import AsyncBaseHTTPView
20
20
  from strawberry.http.temporal_response import TemporalResponse
21
- from strawberry.http.types import FormData, HTTPMethod, QueryParams
22
21
  from strawberry.http.typevars import (
23
22
  Context,
24
23
  RootValue,
25
24
  )
26
- from strawberry.sanic.utils import convert_request_to_files_dict
27
25
 
28
26
  if TYPE_CHECKING:
29
- from collections.abc import AsyncGenerator, Mapping
27
+ from collections.abc import AsyncGenerator
30
28
 
31
29
  from strawberry.http import GraphQLHTTPResponse
32
30
  from strawberry.http.ides import GraphQL_IDE
33
31
  from strawberry.schema import BaseSchema
34
32
 
35
33
 
36
- class SanicHTTPRequestAdapter(AsyncHTTPRequestAdapter):
37
- def __init__(self, request: Request) -> None:
38
- self.request = request
39
-
40
- @property
41
- def query_params(self) -> QueryParams:
42
- # Just a heads up, Sanic's request.args uses urllib.parse.parse_qs
43
- # to parse query string parameters. This returns a dictionary where
44
- # the keys are the unique variable names and the values are lists
45
- # of values for each variable name. To ensure consistency, we're
46
- # enforcing the use of the first value in each list.
47
- args = self.request.get_args(keep_blank_values=True)
48
- return {k: args.get(k, None) for k in args}
49
-
50
- @property
51
- def method(self) -> HTTPMethod:
52
- return cast("HTTPMethod", self.request.method.upper())
53
-
54
- @property
55
- def headers(self) -> Mapping[str, str]:
56
- return self.request.headers
57
-
58
- @property
59
- def content_type(self) -> Optional[str]:
60
- return self.request.content_type
61
-
62
- async def get_body(self) -> str:
63
- return self.request.body.decode()
64
-
65
- async def get_form_data(self) -> FormData:
66
- assert self.request.form is not None
67
-
68
- files = convert_request_to_files_dict(self.request)
69
-
70
- return FormData(form=self.request.form, files=files)
71
-
72
-
73
34
  class GraphQLView(
74
35
  AsyncBaseHTTPView[
75
36
  Request,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: strawberry-graphql
3
- Version: 0.278.0
3
+ Version: 0.278.1
4
4
  Summary: A library for creating GraphQL APIs
5
5
  License: MIT
6
6
  Keywords: graphql,api,rest,starlette,async
@@ -37,6 +37,7 @@ Requires-Dist: channels (>=3.0.5) ; extra == "channels"
37
37
  Requires-Dist: fastapi (>=0.65.2) ; extra == "fastapi"
38
38
  Requires-Dist: flask (>=1.1) ; extra == "flask"
39
39
  Requires-Dist: graphql-core (>=3.2.0,<3.4.0)
40
+ Requires-Dist: lia-web (>=0.2.1)
40
41
  Requires-Dist: libcst ; extra == "cli"
41
42
  Requires-Dist: libcst ; extra == "debug"
42
43
  Requires-Dist: libcst ; extra == "debug-server"
@@ -3,17 +3,17 @@ strawberry/__main__.py,sha256=3U77Eu21mJ-LY27RG-JEnpbh6Z63wGOom4i-EoLtUcY,59
3
3
  strawberry/aiohttp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  strawberry/aiohttp/test/__init__.py,sha256=4xxdUZtIISSOwjrcnmox7AvT4WWjowCm5bUuPdQneMg,71
5
5
  strawberry/aiohttp/test/client.py,sha256=8FKZTnvawxYpgEICOri-34O3wHRHLhRpjH_Ktp2EupQ,1801
6
- strawberry/aiohttp/views.py,sha256=N0yOCrJpLffYQuUZFETBSXBXmHr41SXXuOhtCbvE_fE,8013
6
+ strawberry/aiohttp/views.py,sha256=95JdROO8LjCpAG1DvYyxDq96kYVfLzzuRJvDjiTqBZg,6656
7
7
  strawberry/annotation.py,sha256=68j7Sku1JT7pUTsUMxekWmQMyFdlV1D0jLFjukmmGpQ,15907
8
- strawberry/asgi/__init__.py,sha256=1mIr_kRP17uzg0YCSVv2MyjkHvGkH9z8H5Nqkxrc2-c,8220
8
+ strawberry/asgi/__init__.py,sha256=nX-YyE9I1t-np7sZ9CK02wBj8EYxZj1M4JAozQS9Rp4,7313
9
9
  strawberry/asgi/test/__init__.py,sha256=4xxdUZtIISSOwjrcnmox7AvT4WWjowCm5bUuPdQneMg,71
10
10
  strawberry/asgi/test/client.py,sha256=kp2O5znHWuAB5VVYO8p4XPSTEDDXBSjNz5WHqW0r6GM,1473
11
11
  strawberry/chalice/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
- strawberry/chalice/views.py,sha256=Uzn_B0He6ngnjO66iZeJyaBYIqaZvFyHTNfpgJdL_WU,4870
12
+ strawberry/chalice/views.py,sha256=bsi8P7Ljl0eJaerpuisKrcJZXNK4-Z4YeG32uwhACGs,3868
13
13
  strawberry/channels/__init__.py,sha256=AVmEwhzGHcTycMCnZYcZFFqZV8tKw9FJN4YXws-vWFA,433
14
14
  strawberry/channels/handlers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
15
  strawberry/channels/handlers/base.py,sha256=3mSvT2HMlOoWr0Y_8y1wwSmvCmB8osy2pEK1Kc5zJ5M,7841
16
- strawberry/channels/handlers/http_handler.py,sha256=NmuA6nrY0RF29sqZVL0Bfy65O0tobvsdAXISEyJNS6s,11663
16
+ strawberry/channels/handlers/http_handler.py,sha256=EmRVgn0AHG9-dNUOU_rgKf0Ppsh8aiVYpXsVWMJKbNE,12461
17
17
  strawberry/channels/handlers/ws_handler.py,sha256=lf6nzr0HR9IQ5CEq-GoVCixUmMZO1uLlhdOoBVasyOA,6228
18
18
  strawberry/channels/router.py,sha256=DKIbl4zuRBhfvViUVpyu0Rf_WRT41E6uZC-Yic9Ltvo,2024
19
19
  strawberry/channels/testing.py,sha256=dc9mvSm9YdNOUgQk5ou5K4iE2h6TP5quKnk4Xdtn-IY,6558
@@ -50,7 +50,7 @@ strawberry/django/apps.py,sha256=ZWw3Mzv1Cgy0T9xT8Jr2_dkCTZjT5WQABb34iqnu5pc,135
50
50
  strawberry/django/context.py,sha256=XL85jDGAVnb2pwgm5uRUvIXwlGia3i-8ZVfKihf0T24,655
51
51
  strawberry/django/test/__init__.py,sha256=4xxdUZtIISSOwjrcnmox7AvT4WWjowCm5bUuPdQneMg,71
52
52
  strawberry/django/test/client.py,sha256=5sAZhCyNiydnQtauI_7H_TRnPfHV3V5d-FKxxDxvTAs,620
53
- strawberry/django/views.py,sha256=0CXqvediso9fxaQCOmUqqJRf91cHWGF49dyXvMzHbCg,9737
53
+ strawberry/django/views.py,sha256=jMqy4kb1JJMZbaxutRy9ZMLrqaR2jBzgfkpksE3u0lo,7892
54
54
  strawberry/exceptions/__init__.py,sha256=frr0FLykBb8saILFg4pyvhPN0CY3DdSahBUFwK4Hqf0,6628
55
55
  strawberry/exceptions/conflicting_arguments.py,sha256=FJ5ZlZ_C9O7XS0H9hB0KGRRix0mcB4P6WwIccTJeh-g,1581
56
56
  strawberry/exceptions/duplicated_type_name.py,sha256=Yc8UKO_pTtuXZmkEWp1onBdQitkMSMrfvWfeauLQ-ZI,2204
@@ -114,7 +114,7 @@ strawberry/extensions/utils.py,sha256=sjhxItHzbDhqHtnR63WbE35qzHhTyf9NSffidet79H
114
114
  strawberry/extensions/validation_cache.py,sha256=Fp0bz0HfbMVjaOVfTyetR7Knhic0tthkzB_0kOOyJY0,1447
115
115
  strawberry/fastapi/__init__.py,sha256=p5qg9AlkYjNOWKcT4uRiebIpR6pIb1HqDMiDfF5O3tg,147
116
116
  strawberry/fastapi/context.py,sha256=O_cDNppfUJJecM0ZU_RJ-dhdF0o1x39JfYvYg-7uob4,684
117
- strawberry/fastapi/router.py,sha256=nidOBDeDi6z6kJ__ZUKG6KXjiS5KUWY1AvuvqQwDO_g,12069
117
+ strawberry/fastapi/router.py,sha256=ssH9VnWfYNjYQ9Ldbxk1dPO3u59NBVe_XEEcX64AQDk,12089
118
118
  strawberry/federation/__init__.py,sha256=Pw01N0rG9o0NaUxXLMNGeW5oLENeWVx_d8Kuef1ES4s,549
119
119
  strawberry/federation/argument.py,sha256=rs71S1utiNUd4XOLRa9KVtSMA3yqvKJnR_qdJqX6PPM,860
120
120
  strawberry/federation/enum.py,sha256=geyNA00IjUBroBc6EFrTK0n6DGIVyKOeSE_3aqiwUaQ,3151
@@ -133,19 +133,19 @@ strawberry/file_uploads/__init__.py,sha256=v2-6FGBqnTnMPSUTFOiXpIutDMl-ga0PFtw5t
133
133
  strawberry/file_uploads/scalars.py,sha256=NRDeB7j8aotqIkz9r62ISTf4DrxQxEZYUuHsX5K16aU,161
134
134
  strawberry/file_uploads/utils.py,sha256=-c6TbqUI-Dkb96hWCrZabh6TL2OabBuQNkCarOqgDm4,1181
135
135
  strawberry/flask/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
136
- strawberry/flask/views.py,sha256=8BeCL-Itc7oFNPDBLu74mg2M8CjFftSUUd2m97nQQZ8,6406
136
+ strawberry/flask/views.py,sha256=eFB9s-gVNw8xEmHlxAkiMRlK2CCojQlDrPTf7aVsZvY,4579
137
137
  strawberry/http/__init__.py,sha256=8UWXKZ2IG6_nInp9liUj0qMquDNRR-9o--0EMBL-gnQ,1482
138
- strawberry/http/async_base_view.py,sha256=AYKoAsz1ttfshkuIcT6sv3iz1R0OpLn5aF6ZFAq3_-Q,26278
139
- strawberry/http/base.py,sha256=wO-TzB6Vw5-ATy0WjfOvcnmPycJ1XxO-fysSI1CzsZ4,3222
140
- strawberry/http/exceptions.py,sha256=9E2dreS1crRoJVUEPuHyx23NcDELDHNzkAOa-rGv-8I,348
138
+ strawberry/http/async_base_view.py,sha256=-n_gD2Wa8wAZcms89qDGX3jMrMNhwdEPZatS4bXIbiM,25688
139
+ strawberry/http/base.py,sha256=TxvzTtHPrRTCQfJK5pbSXCE2AezT2gpKBRrN58a5Mmc,3215
140
+ strawberry/http/exceptions.py,sha256=5uud0ZijcMC7TS9iiqMTre9DVIe04judh8E8nSbwxy8,258
141
141
  strawberry/http/ides.py,sha256=WjU0nsMDgr3Bd1ebWkUEkO2d1hk0dI16mLqXyCHqklA,613
142
142
  strawberry/http/parse_content_type.py,sha256=CYHO8F9b9DP1gJ1xxPjc9L2GkBwsyC1O_GCEp1QOuG0,381
143
- strawberry/http/sync_base_view.py,sha256=U_5WMil6j6smGSao_T_96VWrBDEorbT3uPnlrS3BYpQ,10991
143
+ strawberry/http/sync_base_view.py,sha256=FfufahmBBrRHRVTCGNymcLUAbPxmSqCyIS94pPNebBs,10267
144
144
  strawberry/http/temporal_response.py,sha256=HTt65g-YxqlPGxjqvH5bzGoU1b3CctVR-9cmCRo5dUo,196
145
145
  strawberry/http/types.py,sha256=H0wGOdCO-5tNKZM_6cAtNRwZAjoEXnAC5N0Q7b70AtU,398
146
146
  strawberry/http/typevars.py,sha256=Uu6NkKe3h7o29ZWwldq6sJy4ioSSeXODTCDRvY2hUpE,489
147
147
  strawberry/litestar/__init__.py,sha256=zsXzg-mglCGUVO9iNXLm-yadoDSCK7k-zuyRqyvAh1w,237
148
- strawberry/litestar/controller.py,sha256=Go4zGAjnhm3aI8Ty2k3eE5ekZm163kXn-3xUuMaqsNQ,14181
148
+ strawberry/litestar/controller.py,sha256=s5vQUy9Xs43gwZU5DAu6jklHocgcEOnbiBj_aPakZsM,13108
149
149
  strawberry/parent.py,sha256=JYFp-HGCgwbH2oB4uLSiIO4cVsoPaxX6lfYmxOKPkSg,1362
150
150
  strawberry/permission.py,sha256=dSRJMjSCmTlXfvfC24kCSrAk0txTjYKTJ5ZVU5IW91Y,7537
151
151
  strawberry/printer/__init__.py,sha256=DmepjmgtkdF5RxK_7yC6qUyRWn56U-9qeZMbkztYB9w,62
@@ -153,7 +153,7 @@ strawberry/printer/ast_from_value.py,sha256=Tkme60qlykbN2m3dNPNMOe65X-wj6EmcDQwg
153
153
  strawberry/printer/printer.py,sha256=5E9w0wDsUv1hvkeXof12277NLMiCVy5MgJ6gSo_NJhQ,19177
154
154
  strawberry/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
155
155
  strawberry/quart/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
156
- strawberry/quart/views.py,sha256=bl9NKLS8731Vv2FYD1rky0gpKNbgMSTrscgduLh59R4,7514
156
+ strawberry/quart/views.py,sha256=otrWlDdbgHooxAjD7Sf-E82B-PmOaNwCN07oF7Bjhsg,6618
157
157
  strawberry/relay/__init__.py,sha256=Vi4btvA_g6Cj9Tk_F9GCSegapIf2WqkOWV8y3P0cTCs,553
158
158
  strawberry/relay/exceptions.py,sha256=Za0iXLBGZtd1HkesGm4xTr3QOeuyiCAe1hiCCQ2HHvE,4036
159
159
  strawberry/relay/fields.py,sha256=eqQOH8JAWZUP52nwaYCZ_z5Jvp69_T_gx1pxjrdgV1k,18284
@@ -163,7 +163,7 @@ strawberry/resolvers.py,sha256=Vdidc3YFc4-olSQZD_xQ1icyAFbyzqs_8I3eSpMFlA4,260
163
163
  strawberry/sanic/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
164
164
  strawberry/sanic/context.py,sha256=qN7I9K_qIqgdbG_FbDl8XMb9aM1PyjIxSo8IAg2Uq8o,844
165
165
  strawberry/sanic/utils.py,sha256=XjUVBFuBWfECBCZbx_YtrjQnFTUyIGTo7aISIeB22Gc,1007
166
- strawberry/sanic/views.py,sha256=FNMWT0kisAaVn6Q6ACDro1mlLru6YrvnIFhyFTxj-i4,7131
166
+ strawberry/sanic/views.py,sha256=8Tl5pMYnbaju7WYxJImtJTwVi2XZBKWEwnSB-tYbZGw,5682
167
167
  strawberry/scalars.py,sha256=CGkG8CIfurXiYhidmW3qwy6M5BF_Mhih3wAEcWx_iBU,2278
168
168
  strawberry/schema/__init__.py,sha256=u1QCyDVQExUVDA20kyosKPz3TS5HMCN2NrXclhiFAL4,92
169
169
  strawberry/schema/_graphql_core.py,sha256=_ubCP_4ZZ1KwZGLlHTPPcUVPk_hDh6EOp2FxjCfyKxM,1642
@@ -236,8 +236,8 @@ strawberry/utils/logging.py,sha256=U1cseHGquN09YFhFmRkiphfASKCyK0HUZREImPgVb0c,7
236
236
  strawberry/utils/operation.py,sha256=ZgVOw3K2jQuLjNOYUHauF7itJD0QDNoPw9PBi0IYf6k,1234
237
237
  strawberry/utils/str_converters.py,sha256=-eH1Cl16IO_wrBlsGM-km4IY0IKsjhjnSNGRGOwQjVM,897
238
238
  strawberry/utils/typing.py,sha256=SDvX-Du-9HAV3-XXjqi7Q5f5qPDDFd_gASIITiwBQT4,14073
239
- strawberry_graphql-0.278.0.dist-info/LICENSE,sha256=m-XnIVUKqlG_AWnfi9NReh9JfKhYOB-gJfKE45WM1W8,1072
240
- strawberry_graphql-0.278.0.dist-info/METADATA,sha256=HI66cOb-CIEHhYh3SOalc50DnguVnVlAnmMQRhi2BF0,7393
241
- strawberry_graphql-0.278.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
242
- strawberry_graphql-0.278.0.dist-info/entry_points.txt,sha256=Nk7-aT3_uEwCgyqtHESV9H6Mc31cK-VAvhnQNTzTb4k,49
243
- strawberry_graphql-0.278.0.dist-info/RECORD,,
239
+ strawberry_graphql-0.278.1.dist-info/LICENSE,sha256=m-XnIVUKqlG_AWnfi9NReh9JfKhYOB-gJfKE45WM1W8,1072
240
+ strawberry_graphql-0.278.1.dist-info/METADATA,sha256=r90Q-i1R-Ulf5SsQvJZoNUoW-N3TZkK-jMmj8od9ZGs,7426
241
+ strawberry_graphql-0.278.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
242
+ strawberry_graphql-0.278.1.dist-info/entry_points.txt,sha256=Nk7-aT3_uEwCgyqtHESV9H6Mc31cK-VAvhnQNTzTb4k,49
243
+ strawberry_graphql-0.278.1.dist-info/RECORD,,