Serialization
Classes used to support string serialization of Parameters and
Parameterized objects.
-
param.serializer.JSONNullable(json_type)[source]
Express a JSON schema type as nullable to easily support Parameters that allow_None
-
class param.serializer.JSONSerialization[source]
Class responsible for specifying JSON serialization, deserialization
and JSON schemas for Parameters and Parameterized classes and
objects.
-
classmethod array_schema(p, safe=False)[source]
-
classmethod calendardate_schema(p, safe=False)[source]
-
classmethod class__schema(class_, safe=False)[source]
-
classmethod classselector_schema(p, safe=False)[source]
-
classmethod dataframe_schema(p, safe=False)[source]
-
classmethod date_schema(p, safe=False)[source]
-
classmethod declare_numeric_bounds(schema, bounds, inclusive_bounds)[source]
Given an applicable numeric schema, augment with bounds information
-
classmethod deserialize_parameter_value(pobj, pname, value)[source]
Deserialize a single parameter value.
-
classmethod deserialize_parameters(pobj, serialization, subset=None)[source]
Deserialize a serialized object representing one or
more Parameters into a dictionary of parameter values.
-
classmethod dict_schema(p, safe=False)[source]
-
classmethod dumps(obj)[source]
-
classmethod integer_schema(p, safe=False)[source]
-
json_schema_literal_types = {<class 'NoneType'>: 'null', <class 'float'>: 'number', <class 'int'>: 'integer', <class 'str'>: 'string'}
-
classmethod list_schema(p, safe=False)[source]
-
classmethod listselector_schema(p, safe=False)[source]
-
classmethod loads(serialized)[source]
-
classmethod number_schema(p, safe=False)[source]
-
classmethod numerictuple_schema(p, safe=False)[source]
-
classmethod objectselector_schema(p, safe=False)[source]
-
classmethod param_schema(ptype, p, safe=False, subset=None)[source]
-
classmethod range_schema(p, safe=False)[source]
-
classmethod schema(pobj, safe=False, subset=None)[source]
-
classmethod selector_schema(p, safe=False)[source]
-
classmethod serialize_parameter_value(pobj, pname)[source]
Serialize a single parameter value.
-
classmethod serialize_parameters(pobj, subset=None)[source]
Serialize the parameters on a Parameterized object into a
single serialized object, e.g. a JSON string.
-
classmethod tuple_schema(p, safe=False)[source]
-
unserializable_parameter_types = ['Callable']
-
classmethod xycoordinates_schema(p, safe=False)[source]
-
class param.serializer.Serialization[source]
Base class used to implement different types of serialization.
-
classmethod deserialize_parameter_value(pobj, pname, value)[source]
Deserialize a single parameter value.
-
classmethod deserialize_parameters(pobj, serialized, subset=None)[source]
Deserialize a serialized object representing one or
more Parameters into a dictionary of parameter values.
-
classmethod schema(pobj, subset=None)[source]
-
classmethod serialize_parameter_value(pobj, pname)[source]
Serialize a single parameter value.
-
classmethod serialize_parameters(pobj, subset=None)[source]
Serialize the parameters on a Parameterized object into a
single serialized object, e.g. a JSON string.
-
exception param.serializer.UnsafeserializableException[source]
-
exception param.serializer.UnserializableException[source]