Resources

This is the base class for all resources in Graphbook. All Resources must inherit from this class.

See also

Decorator graphbook.resource() to create resources in a functional way.

class graphbook.resources.DictResource(val)

The list resource. This will parse the incoming value as a list of string.

class graphbook.resources.FunctionResource(val)

The function resource. This will parse the incoming value as a function.

class graphbook.resources.ListResource(val)

The list resource. This will parse the incoming value as a list of string.

class graphbook.resources.NumberResource(val)

The number resource. This will parse the incoming value as a float.

class graphbook.resources.Resource(val='')

The base class for all resources in Graphbook. All resources should be a descendant from this class. Also acts as the resource for string values.