Coverage for src/lexigram/graphql/core/__init__.py: 100%

9 statements  

« prev     ^ index     » next       coverage.py v7.15.4, created at 2026-08-25 04:37 +0800

1"""Core GraphQL module. 

2 

3This module provides the core GraphQL execution engine, 

4schema validation, and introspection capabilities. 

5""" 

6 

7from __future__ import annotations 

8 

9from strawberry import Info 

10 

11from lexigram.graphql.core.context import ( 

12 GraphQLContext, 

13 GraphQLRequest, 

14 GraphQLResponse, 

15) 

16from lexigram.graphql.core.error_formatter import ( 

17 ErrorFormatter, 

18 create_error_formatter, 

19) 

20from lexigram.graphql.core.execution import ( 

21 ExecutionContextProtocol, 

22 GraphQLExecutorProtocol, 

23 execute_query, 

24) 

25from lexigram.graphql.core.introspection import ( 

26 IntrospectionHandler, 

27 get_introspection_query, 

28) 

29from lexigram.graphql.core.validation import ( 

30 SchemaValidator, 

31 ValidationResult, 

32 validate_query, 

33) 

34from lexigram.graphql.events import ( 

35 AfterExecuteEvent, 

36 BeforeExecuteEvent, 

37 OnErrorEvent, 

38) 

39 

40__all__ = [ 

41 "AfterExecuteEvent", 

42 "BeforeExecuteEvent", 

43 "ErrorFormatter", 

44 "ExecutionContextProtocol", 

45 # Context 

46 "GraphQLContext", 

47 # Execution 

48 "GraphQLExecutorProtocol", 

49 "GraphQLRequest", 

50 "GraphQLResponse", 

51 # Info (from strawberry) 

52 "Info", 

53 # Introspection 

54 "IntrospectionHandler", 

55 "OnErrorEvent", 

56 # Validation 

57 "SchemaValidator", 

58 "ValidationResult", 

59 "create_error_formatter", 

60 "execute_query", 

61 "get_introspection_query", 

62 "validate_query", 

63]