strawberry-graphql 0.261.0__py3-none-any.whl → 0.262.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.
@@ -18,6 +18,14 @@ def load_schema(schema: str, app_dir: str) -> Schema:
18
18
  rich.print(f"[red]Error: {message}")
19
19
  raise typer.Exit(2) # noqa: B904
20
20
 
21
+ if callable(schema_symbol):
22
+ try:
23
+ schema_symbol = schema_symbol()
24
+ except Exception as exc: # noqa: BLE001
25
+ message = f"Error invoking schema_symbol: {exc}"
26
+ rich.print(f"[red]Error: {message}")
27
+ raise typer.Exit(2) # noqa: B904
28
+
21
29
  if not isinstance(schema_symbol, Schema):
22
30
  message = "The `schema` must be an instance of strawberry.Schema"
23
31
  rich.print(f"[red]Error: {message}")
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: strawberry-graphql
3
- Version: 0.261.0
3
+ Version: 0.262.0
4
4
  Summary: A library for creating GraphQL APIs
5
5
  License: MIT
6
6
  Keywords: graphql,api,rest,starlette,async
7
7
  Author: Patrick Arminio
8
8
  Author-email: patrick.arminio@gmail.com
9
- Requires-Python: >=3.9,<4.0
9
+ Requires-Python: >=3.9
10
10
  Classifier: Development Status :: 5 - Production/Stable
11
11
  Classifier: Intended Audience :: Developers
12
12
  Classifier: License :: OSI Approved :: MIT License
@@ -41,9 +41,9 @@ Requires-Dist: chalice (>=1.22,<2.0) ; extra == "chalice"
41
41
  Requires-Dist: channels (>=3.0.5) ; extra == "channels"
42
42
  Requires-Dist: fastapi (>=0.65.2) ; extra == "fastapi"
43
43
  Requires-Dist: flask (>=1.1) ; extra == "flask"
44
- Requires-Dist: graphql-core (>=3.2.0,<3.4.0)
44
+ Requires-Dist: graphql-core (>=3.2.0,<3.4.0) ; python_version >= "3.9" and python_version < "4.0"
45
45
  Requires-Dist: libcst (>=0.4.7) ; extra == "debug" or extra == "debug-server" or extra == "cli"
46
- Requires-Dist: litestar (>=2) ; extra == "litestar"
46
+ Requires-Dist: litestar (>=2) ; (python_version >= "3.10" and python_version < "4.0") and (extra == "litestar")
47
47
  Requires-Dist: opentelemetry-api (<2) ; extra == "opentelemetry"
48
48
  Requires-Dist: opentelemetry-sdk (<2) ; extra == "opentelemetry"
49
49
  Requires-Dist: pydantic (>1.6.1) ; extra == "pydantic"
@@ -29,7 +29,7 @@ strawberry/cli/commands/upgrade/_fake_progress.py,sha256=fefLgJwTXe4kG9RntdEJdzk
29
29
  strawberry/cli/commands/upgrade/_run_codemod.py,sha256=5xGGaqQZZagiKGyO3mrM1jKaVeTBojW8ktAlpEI4Dfw,2497
30
30
  strawberry/cli/constants.py,sha256=GhhDZOl9lN4glq50OI1oSbPSGqQXEarZ6r_Grq8pcpI,138
31
31
  strawberry/cli/debug_server.py,sha256=mKxJZf_-SbWWusoFMzT8-E5qTshIx3IuciG6xlC21kI,999
32
- strawberry/cli/utils/__init__.py,sha256=LhkVAD8Wnc5tUZMV64CoVBwAGsiDSk5Bw6bwDI6GlQU,692
32
+ strawberry/cli/utils/__init__.py,sha256=5h6QMXbY4zbWVGg8xpsKlgWSEsNgn1fcjbRrJjgzdEc,987
33
33
  strawberry/cli/utils/load_schema.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
34
34
  strawberry/codegen/__init__.py,sha256=qVfUJXv_2HqZTzi02An2V9auAseT9efi1f5APDG5DjA,250
35
35
  strawberry/codegen/exceptions.py,sha256=x8Wrc3zdmgrvoMtB3U4c-mek7JEP-KGkbGC27kO6caE,365
@@ -228,8 +228,8 @@ strawberry/utils/logging.py,sha256=U1cseHGquN09YFhFmRkiphfASKCyK0HUZREImPgVb0c,7
228
228
  strawberry/utils/operation.py,sha256=SSXxN-vMqdHO6W2OZtip-1z7y4_A-eTVFdhDvhKeLCk,1193
229
229
  strawberry/utils/str_converters.py,sha256=-eH1Cl16IO_wrBlsGM-km4IY0IKsjhjnSNGRGOwQjVM,897
230
230
  strawberry/utils/typing.py,sha256=Ux0Hl46lhuXvOKK-C5hj6nlz3zDn8P4CUGH2nUVD2vU,13373
231
- strawberry_graphql-0.261.0.dist-info/LICENSE,sha256=m-XnIVUKqlG_AWnfi9NReh9JfKhYOB-gJfKE45WM1W8,1072
232
- strawberry_graphql-0.261.0.dist-info/METADATA,sha256=wuaqSJXHQI3vcoZbTurmjmuT_ZAL_nl7sPwEgTN7Jxc,7539
233
- strawberry_graphql-0.261.0.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
234
- strawberry_graphql-0.261.0.dist-info/entry_points.txt,sha256=Nk7-aT3_uEwCgyqtHESV9H6Mc31cK-VAvhnQNTzTb4k,49
235
- strawberry_graphql-0.261.0.dist-info/RECORD,,
231
+ strawberry_graphql-0.262.0.dist-info/LICENSE,sha256=m-XnIVUKqlG_AWnfi9NReh9JfKhYOB-gJfKE45WM1W8,1072
232
+ strawberry_graphql-0.262.0.dist-info/METADATA,sha256=b0Z0XwrPYzKQt6TBIzRdALl07a9hjDbzahWWoeo0dzw,7647
233
+ strawberry_graphql-0.262.0.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
234
+ strawberry_graphql-0.262.0.dist-info/entry_points.txt,sha256=Nk7-aT3_uEwCgyqtHESV9H6Mc31cK-VAvhnQNTzTb4k,49
235
+ strawberry_graphql-0.262.0.dist-info/RECORD,,