fastcs.transports.rest.util#

Members

cast_from_rest_type

Casts from a rest value to an attribute datatype.

cast_to_rest_type

Casts from an attribute value to a rest value.

convert_datatype

Converts a datatype to a rest serialisable type.

fastcs.transports.rest.util.convert_datatype(datatype: DataType[DType_T]) type[DType_T][source]#

Converts a datatype to a rest serialisable type.

fastcs.transports.rest.util.cast_to_rest_type(datatype: DataType[DType_T], value: DType_T) object[source]#

Casts from an attribute value to a rest value.

fastcs.transports.rest.util.cast_from_rest_type(datatype: DataType[DType_T], value: object) DType_T[source]#

Casts from a rest value to an attribute datatype.