apptools.naming.object_serializer module

The base class for all object serializers.

class apptools.naming.object_serializer.ObjectSerializer[source]

Bases: HasTraits

The base class for all object serializers.

can_load(path)[source]

Returns True if the serializer can load a file.

can_save(obj)[source]

Returns True if the serializer can save an object.

load(path)[source]

Loads an object from a file.

save(path, obj)[source]

Saves an object to a file.