graphenebase.objects module

class graphenebase.objects.Asset(*args, **kwargs)

Bases: graphenebase.objects.GrapheneObject

class graphenebase.objects.GrapheneObject(*args, **kwargs)

Bases: collections.OrderedDict

Core abstraction class

This class is used for any JSON reflected object in Graphene.

  • instance.__json__(): encodes data into json format
  • bytes(instance): encodes data into wire format
  • str(instances): dumps json object as string
data

Read data explicitly (backwards compatibility)

json()
toJson()
class graphenebase.objects.Operation(op, **kwargs)

Bases: list

The 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)