dyaml.representer

YAML node representer. Prepares YAML nodes for output. A tutorial can be found here.

Code based on PyYAML.

Members

Classes

Representer
class Representer

Represents YAML nodes as scalar, sequence and mapping nodes ready for output.

RepresenterException
class RepresenterException

Exception thrown on Representer errors.

Functions

representBool
Node representBool(Node node, Representer representer)

Represent a bool _node as a bool scalar.

representBytes
Node representBytes(Node node, Representer representer)

Represent a bytes _node as a binary scalar.

representLong
Node representLong(Node node, Representer representer)

Represent a long _node as an integer scalar.

representNodes
Node representNodes(Node node, Representer representer)

Represent a sequence _node as sequence/set.

representNull
Node representNull(Node node, Representer representer)

Represent a _null _node as a _null YAML value.

representPairs
Node representPairs(Node node, Representer representer)

Represent a mapping _node as map/ordered map/pairs.

representReal
Node representReal(Node node, Representer representer)

Represent a real _node as a floating point scalar.

representString
Node representString(Node node, Representer representer)

Represent a string _node as a string scalar.

representSysTime
Node representSysTime(Node node, Representer representer)

Represent a SysTime _node as a timestamp.

Meta