graphene/graphene/__init__.py

76 lines
1.5 KiB
Python
Raw Normal View History

from .pyutils.version import get_version
try:
# This variable is injected in the __builtins__ by the build
# process. It used to enable importing subpackages when
# the required packages are not installed
__SETUP__
except NameError:
__SETUP__ = False
2016-12-02 08:10:55 +03:00
VERSION = (1, 1, 3, 'final', 0)
__version__ = get_version(VERSION)
if not __SETUP__:
from .types import (
AbstractType,
ObjectType,
InputObjectType,
Interface,
Mutation,
Field,
InputField,
Schema,
Scalar,
String, ID, Int, Float, Boolean,
List, NonNull,
Enum,
Argument,
2016-09-12 11:25:38 +03:00
Dynamic,
Union,
)
from .relay import (
Node,
is_node,
2016-09-12 11:31:22 +03:00
GlobalID,
ClientIDMutation,
Connection,
2016-09-09 06:14:25 +03:00
ConnectionField,
PageInfo
)
from .utils.resolve_only_args import resolve_only_args
__all__ = [
'AbstractType',
'ObjectType',
'InputObjectType',
'Interface',
'Mutation',
'Field',
'InputField',
'Schema',
'Scalar',
'String',
'ID',
'Int',
'Float',
'Enum',
'Boolean',
'List',
'NonNull',
'Argument',
'Dynamic',
2016-09-12 11:25:38 +03:00
'Union',
'resolve_only_args',
'Node',
'is_node',
2016-09-12 11:31:22 +03:00
'GlobalID',
'ClientIDMutation',
'Connection',
2016-09-09 07:35:18 +03:00
'ConnectionField',
2016-09-09 06:14:25 +03:00
'PageInfo']