strawberry-graphql 0.173.1__tar.gz → 0.174.0__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.
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/PKG-INFO +1 -1
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/pyproject.toml +3 -2
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/extensions/__init__.py +2 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/extensions/max_aliases.py +1 -1
- strawberry_graphql-0.174.0/strawberry/extensions/max_tokens.py +44 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/schema/execute.py +7 -4
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/types/execution.py +19 -1
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/LICENSE +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/README.md +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/__init__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/__main__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/aiohttp/__init__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/aiohttp/handlers/__init__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/aiohttp/handlers/graphql_transport_ws_handler.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/aiohttp/handlers/graphql_ws_handler.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/aiohttp/test/__init__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/aiohttp/test/client.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/aiohttp/views.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/annotation.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/arguments.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/asgi/__init__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/asgi/handlers/__init__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/asgi/handlers/graphql_transport_ws_handler.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/asgi/handlers/graphql_ws_handler.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/asgi/test/__init__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/asgi/test/client.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/auto.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/chalice/__init__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/chalice/views.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/channels/__init__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/channels/context.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/channels/handlers/base.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/channels/handlers/graphql_transport_ws_handler.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/channels/handlers/graphql_ws_handler.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/channels/handlers/http_handler.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/channels/handlers/ws_handler.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/channels/router.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/channels/testing.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/cli/__init__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/cli/commands/__init__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/cli/commands/codegen.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/cli/commands/export_schema.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/cli/commands/server.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/cli/constants.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/cli/debug_server.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/cli/utils/__init__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/cli/utils/load_schema.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/codegen/__init__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/codegen/exceptions.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/codegen/plugins/__init__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/codegen/plugins/print_operation.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/codegen/plugins/python.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/codegen/plugins/typescript.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/codegen/query_codegen.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/codegen/types.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/custom_scalar.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/dataloader.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/directive.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/django/__init__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/django/apps.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/django/context.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/django/test/__init__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/django/test/client.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/django/views.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/enum.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/exceptions/__init__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/exceptions/duplicated_type_name.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/exceptions/exception.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/exceptions/exception_source.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/exceptions/handler.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/exceptions/invalid_argument_type.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/exceptions/invalid_union_type.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/exceptions/missing_arguments_annotations.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/exceptions/missing_field_annotation.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/exceptions/missing_return_annotation.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/exceptions/not_a_strawberry_enum.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/exceptions/object_is_not_a_class.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/exceptions/object_is_not_an_enum.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/exceptions/private_strawberry_field.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/exceptions/scalar_already_registered.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/exceptions/syntax.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/exceptions/unresolved_field_type.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/exceptions/utils/__init__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/exceptions/utils/source_finder.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/experimental/__init__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/experimental/pydantic/__init__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/experimental/pydantic/conversion.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/experimental/pydantic/conversion_types.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/experimental/pydantic/error_type.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/experimental/pydantic/exceptions.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/experimental/pydantic/fields.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/experimental/pydantic/object_type.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/experimental/pydantic/utils.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/ext/LICENSE +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/ext/__init__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/ext/dataclasses/LICENSE +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/ext/dataclasses/__init__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/ext/dataclasses/dataclasses.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/ext/mypy_plugin.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/extensions/add_validation_rules.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/extensions/base_extension.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/extensions/context.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/extensions/directives.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/extensions/disable_validation.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/extensions/field_extension.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/extensions/mask_errors.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/extensions/parser_cache.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/extensions/pyinstrument.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/extensions/query_depth_limiter.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/extensions/runner.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/extensions/tracing/__init__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/extensions/tracing/apollo.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/extensions/tracing/datadog.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/extensions/tracing/opentelemetry.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/extensions/tracing/utils.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/extensions/utils.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/extensions/validation_cache.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/fastapi/__init__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/fastapi/context.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/fastapi/handlers/__init__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/fastapi/handlers/graphql_transport_ws_handler.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/fastapi/handlers/graphql_ws_handler.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/fastapi/router.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/federation/__init__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/federation/argument.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/federation/enum.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/federation/field.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/federation/mutation.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/federation/object_type.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/federation/scalar.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/federation/schema.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/federation/schema_directive.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/federation/schema_directives.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/federation/types.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/federation/union.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/field.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/file_uploads/__init__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/file_uploads/scalars.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/file_uploads/utils.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/flask/__init__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/flask/graphiql.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/flask/views.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/http/__init__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/http/async_base_view.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/http/base.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/http/exceptions.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/http/sync_base_view.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/http/temporal_response.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/http/types.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/http/typevars.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/lazy_type.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/mutation.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/object_type.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/permission.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/printer/__init__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/printer/ast_from_value.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/printer/printer.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/private.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/py.typed +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/resolvers.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/sanic/__init__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/sanic/context.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/sanic/graphiql.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/sanic/utils.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/sanic/views.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/scalars.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/schema/__init__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/schema/base.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/schema/compat.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/schema/config.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/schema/exceptions.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/schema/name_converter.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/schema/schema.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/schema/schema_converter.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/schema/types/__init__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/schema/types/base_scalars.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/schema/types/concrete_type.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/schema/types/scalar.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/schema_directive.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/starlite/__init__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/starlite/controller.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/starlite/handlers/graphql_transport_ws_handler.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/starlite/handlers/graphql_ws_handler.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/static/graphiql.html +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/subscriptions/__init__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/subscriptions/protocols/__init__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/subscriptions/protocols/graphql_transport_ws/__init__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/subscriptions/protocols/graphql_transport_ws/handlers.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/subscriptions/protocols/graphql_transport_ws/types.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/subscriptions/protocols/graphql_ws/__init__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/subscriptions/protocols/graphql_ws/handlers.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/subscriptions/protocols/graphql_ws/types.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/test/__init__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/test/client.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/tools/__init__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/tools/create_type.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/tools/merge_types.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/type.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/types/__init__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/types/fields/__init__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/types/fields/resolver.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/types/graphql.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/types/info.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/types/nodes.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/types/type_resolver.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/types/types.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/union.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/unset.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/utils/__init__.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/utils/await_maybe.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/utils/cached_property.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/utils/dataclasses.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/utils/debug.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/utils/graphiql.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/utils/graphql_lexer.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/utils/importer.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/utils/inspect.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/utils/logging.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/utils/operation.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/utils/str_converters.py +0 -0
- {strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/utils/typing.py +0 -0
@@ -1,7 +1,7 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "strawberry-graphql"
|
3
3
|
packages = [ { include = "strawberry" } ]
|
4
|
-
version = "0.
|
4
|
+
version = "0.174.0"
|
5
5
|
description = "A library for creating GraphQL APIs"
|
6
6
|
authors = ["Patrick Arminio <patrick.arminio@gmail.com>"]
|
7
7
|
license = "MIT"
|
@@ -154,7 +154,8 @@ markers = [
|
|
154
154
|
"fastapi",
|
155
155
|
"chalice",
|
156
156
|
"flask",
|
157
|
-
"starlite"
|
157
|
+
"starlite",
|
158
|
+
"flaky"
|
158
159
|
]
|
159
160
|
asyncio_mode = "auto"
|
160
161
|
filterwarnings = [
|
@@ -6,6 +6,7 @@ from .disable_validation import DisableValidation
|
|
6
6
|
from .field_extension import FieldExtension
|
7
7
|
from .mask_errors import MaskErrors
|
8
8
|
from .max_aliases import MaxAliasesLimiter
|
9
|
+
from .max_tokens import MaxTokensLimiter
|
9
10
|
from .parser_cache import ParserCache
|
10
11
|
from .query_depth_limiter import QueryDepthLimiter
|
11
12
|
from .validation_cache import ValidationCache
|
@@ -36,4 +37,5 @@ __all__ = [
|
|
36
37
|
"ValidationCache",
|
37
38
|
"MaskErrors",
|
38
39
|
"MaxAliasesLimiter",
|
40
|
+
"MaxTokensLimiter",
|
39
41
|
]
|
@@ -0,0 +1,44 @@
|
|
1
|
+
from typing import Iterator
|
2
|
+
|
3
|
+
from strawberry.extensions.base_extension import SchemaExtension
|
4
|
+
|
5
|
+
|
6
|
+
class MaxTokensLimiter(SchemaExtension):
|
7
|
+
"""
|
8
|
+
Add a validator to limit the number of tokens in a GraphQL document.
|
9
|
+
|
10
|
+
Example:
|
11
|
+
|
12
|
+
>>> import strawberry
|
13
|
+
>>> from strawberry.extensions import MaxTokensLimiter
|
14
|
+
>>>
|
15
|
+
>>> schema = strawberry.Schema(
|
16
|
+
... Query,
|
17
|
+
... extensions=[
|
18
|
+
... MaxTokensLimiter(max_token_count=1000)
|
19
|
+
... ]
|
20
|
+
... )
|
21
|
+
|
22
|
+
Arguments:
|
23
|
+
|
24
|
+
`max_token_count: int`
|
25
|
+
The maximum number of tokens allowed in a GraphQL document.
|
26
|
+
|
27
|
+
The following things are counted as tokens:
|
28
|
+
* various brackets: "{", "}", "(", ")"
|
29
|
+
* colon :
|
30
|
+
* words
|
31
|
+
|
32
|
+
Not counted:
|
33
|
+
* quotes
|
34
|
+
"""
|
35
|
+
|
36
|
+
def __init__(
|
37
|
+
self,
|
38
|
+
max_token_count: int,
|
39
|
+
):
|
40
|
+
self.max_token_count = max_token_count
|
41
|
+
|
42
|
+
def on_operation(self) -> Iterator[None]:
|
43
|
+
self.execution_context.parse_options["max_tokens"] = self.max_token_count
|
44
|
+
yield
|
@@ -27,6 +27,8 @@ from strawberry.types import ExecutionResult
|
|
27
27
|
from .exceptions import InvalidOperationTypeError
|
28
28
|
|
29
29
|
if TYPE_CHECKING:
|
30
|
+
from typing_extensions import Unpack
|
31
|
+
|
30
32
|
from graphql import ExecutionContext as GraphQLExecutionContext
|
31
33
|
from graphql import ExecutionResult as GraphQLExecutionResult
|
32
34
|
from graphql import GraphQLSchema
|
@@ -35,11 +37,12 @@ if TYPE_CHECKING:
|
|
35
37
|
|
36
38
|
from strawberry.extensions import SchemaExtension
|
37
39
|
from strawberry.types import ExecutionContext
|
40
|
+
from strawberry.types.execution import ParseOptions
|
38
41
|
from strawberry.types.graphql import OperationType
|
39
42
|
|
40
43
|
|
41
|
-
def parse_document(query: str) -> DocumentNode:
|
42
|
-
return parse(query)
|
44
|
+
def parse_document(query: str, **kwargs: Unpack[ParseOptions]) -> DocumentNode:
|
45
|
+
return parse(query, **kwargs)
|
43
46
|
|
44
47
|
|
45
48
|
def validate_document(
|
@@ -90,7 +93,7 @@ async def execute(
|
|
90
93
|
try:
|
91
94
|
if not execution_context.graphql_document:
|
92
95
|
execution_context.graphql_document = parse_document(
|
93
|
-
execution_context.query
|
96
|
+
execution_context.query, **execution_context.parse_options
|
94
97
|
)
|
95
98
|
|
96
99
|
except GraphQLError as error:
|
@@ -183,7 +186,7 @@ def execute_sync(
|
|
183
186
|
try:
|
184
187
|
if not execution_context.graphql_document:
|
185
188
|
execution_context.graphql_document = parse_document(
|
186
|
-
execution_context.query
|
189
|
+
execution_context.query, **execution_context.parse_options
|
187
190
|
)
|
188
191
|
|
189
192
|
except GraphQLError as error:
|
@@ -1,13 +1,24 @@
|
|
1
1
|
from __future__ import annotations
|
2
2
|
|
3
3
|
import dataclasses
|
4
|
-
from typing import
|
4
|
+
from typing import (
|
5
|
+
TYPE_CHECKING,
|
6
|
+
Any,
|
7
|
+
Dict,
|
8
|
+
List,
|
9
|
+
Optional,
|
10
|
+
Tuple,
|
11
|
+
Type,
|
12
|
+
)
|
13
|
+
from typing_extensions import TypedDict
|
5
14
|
|
6
15
|
from graphql import specified_rules
|
7
16
|
|
8
17
|
from strawberry.utils.operation import get_first_operation, get_operation_type
|
9
18
|
|
10
19
|
if TYPE_CHECKING:
|
20
|
+
from typing_extensions import NotRequired
|
21
|
+
|
11
22
|
from graphql import ASTValidationRule
|
12
23
|
from graphql import ExecutionResult as GraphQLExecutionResult
|
13
24
|
from graphql.error.graphql_error import GraphQLError
|
@@ -24,6 +35,9 @@ class ExecutionContext:
|
|
24
35
|
schema: Schema
|
25
36
|
context: Any = None
|
26
37
|
variables: Optional[Dict[str, Any]] = None
|
38
|
+
parse_options: ParseOptions = dataclasses.field(
|
39
|
+
default_factory=lambda: ParseOptions()
|
40
|
+
)
|
27
41
|
root_value: Optional[Any] = None
|
28
42
|
validation_rules: Tuple[Type[ASTValidationRule], ...] = dataclasses.field(
|
29
43
|
default_factory=lambda: tuple(specified_rules)
|
@@ -76,3 +90,7 @@ class ExecutionResult:
|
|
76
90
|
data: Optional[Dict[str, Any]]
|
77
91
|
errors: Optional[List[GraphQLError]]
|
78
92
|
extensions: Optional[Dict[str, Any]] = None
|
93
|
+
|
94
|
+
|
95
|
+
class ParseOptions(TypedDict):
|
96
|
+
max_tokens: NotRequired[int]
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/aiohttp/handlers/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/aiohttp/test/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/asgi/handlers/__init__.py
RENAMED
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
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/channels/handlers/base.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/channels/handlers/ws_handler.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/cli/commands/__init__.py
RENAMED
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/cli/commands/codegen.py
RENAMED
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/cli/commands/export_schema.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/cli/utils/load_schema.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/codegen/plugins/__init__.py
RENAMED
File without changes
|
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/codegen/plugins/python.py
RENAMED
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/codegen/plugins/typescript.py
RENAMED
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/codegen/query_codegen.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/django/test/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/exceptions/exception.py
RENAMED
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/exceptions/exception_source.py
RENAMED
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/exceptions/utils/__init__.py
RENAMED
File without changes
|
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/experimental/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/experimental/pydantic/fields.py
RENAMED
File without changes
|
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/experimental/pydantic/utils.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/ext/dataclasses/LICENSE
RENAMED
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/ext/dataclasses/__init__.py
RENAMED
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/ext/dataclasses/dataclasses.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/extensions/base_extension.py
RENAMED
File without changes
|
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/extensions/directives.py
RENAMED
File without changes
|
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/extensions/field_extension.py
RENAMED
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/extensions/mask_errors.py
RENAMED
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/extensions/parser_cache.py
RENAMED
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/extensions/pyinstrument.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/extensions/tracing/__init__.py
RENAMED
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/extensions/tracing/apollo.py
RENAMED
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/extensions/tracing/datadog.py
RENAMED
File without changes
|
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/extensions/tracing/utils.py
RENAMED
File without changes
|
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/extensions/validation_cache.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/fastapi/handlers/__init__.py
RENAMED
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
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/federation/object_type.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/federation/schema_directive.py
RENAMED
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/federation/schema_directives.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/file_uploads/__init__.py
RENAMED
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/file_uploads/scalars.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/http/async_base_view.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/http/temporal_response.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/printer/ast_from_value.py
RENAMED
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/schema/name_converter.py
RENAMED
File without changes
|
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/schema/schema_converter.py
RENAMED
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/schema/types/__init__.py
RENAMED
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/schema/types/base_scalars.py
RENAMED
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/schema/types/concrete_type.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/subscriptions/__init__.py
RENAMED
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/types/fields/__init__.py
RENAMED
File without changes
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/types/fields/resolver.py
RENAMED
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
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/utils/cached_property.py
RENAMED
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
|
{strawberry_graphql-0.173.1 → strawberry_graphql-0.174.0}/strawberry/utils/str_converters.py
RENAMED
File without changes
|
File without changes
|