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(ref Node node, Representer representer)

Represent a bool _node as a bool scalar.

representBytes
Node representBytes(ref Node node, Representer representer)

Represent a bytes _node as a binary scalar.

representLong
Node representLong(ref Node node, Representer representer)

Represent a long _node as an integer scalar.

representNodes
Node representNodes(ref Node node, Representer representer)

Represent a sequence _node as sequence/set.

representNull
Node representNull(ref Node node, Representer representer)

Represent a _null _node as a _null YAML value.

representPairs
Node representPairs(ref Node node, Representer representer)

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

representReal
Node representReal(ref Node node, Representer representer)

Represent a real _node as a floating point scalar.

representString
Node representString(ref Node node, Representer representer)

Represent a string _node as a string scalar.

representSysTime
Node representSysTime(ref Node node, Representer representer)

Represent a SysTime _node as a timestamp.

Meta