graphenebase.objects module¶
-
class
graphenebase.objects.Asset(*args, **kwargs)¶ Bases:
graphenebase.objects.GrapheneObject-
detail(*args, **kwargs)¶
-
-
class
graphenebase.objects.GrapheneObject(*args, **kwargs)¶ Bases:
collections.OrderedDictCore abstraction class
This class is used for any JSON reflected object in Graphene.
instance.__json__(): encodes data into json formatbytes(instance): encodes data into wire formatstr(instances): dumps json object as string
-
data¶ Read data explicitly (backwards compatibility)
-
json()¶
-
toJson()¶
-
class
graphenebase.objects.Operation(op, **kwargs)¶ Bases:
listThe superclass for an operation. This class i used to instanciate an operation, identify the operationid/name and serialize the operation into bytes.
-
fromlist= ['operations']¶
-
getOperationIdForName(name)¶
-
getOperationNameForId(i)¶ Convert an operation id into the corresponding string
-
id¶
-
json()¶
-
klass()¶
-
klass_name¶
-
module= 'graphenebase.operations'¶
-
op¶
-
opId¶
-
operation¶
-
operations= {'account_create': 5, 'demooepration': 0, 'newdemooepration': 1, 'newdemooepration2': 2, 'nonexisting2': 3, 'nonexisting3': 4}¶
-
ops¶
-
set(**data)¶
-
toJson()¶
-
-
graphenebase.objects.isArgsThisClass(self, args)¶