Value

A module for packing and unpacking values so that they can be transferred between languages and hosts.

Type and packaing and unpacking of data values

stencila.value.type(value)[source]

Get the type code for a value

Parameters:value – A Python value
Returns:Type code for value
stencila.value.pack(value)[source]

Pack an object into a value package

Parameters:value – A Python value
Returns:A value package
stencila.value.unpack(pkg)[source]

Unpack a value package into a Python value

Parameters:pkg – The value package
Returns:A Python value