traitlets

Functions

as_dict(traited_instance) Returns a dictionary from the traited class, with keys equal to trait names and values the corresponding values.
set_traits_from_dict(traited_instance, d) Given a class with traitlets and a dictionary with keys corresponding to the traitlet names, set the traitlets to the associated dict values.


remoteappmanager.traitlets.as_dict(traited_instance)[source]

Returns a dictionary from the traited class, with keys equal to trait names and values the corresponding values.

remoteappmanager.traitlets.set_traits_from_dict(traited_instance, d)[source]

Given a class with traitlets and a dictionary with keys corresponding to the traitlet names, set the traitlets to the associated dict values.

Note: if a set operation fails, the appropriate traitlet exception is raised. Traitlets that were already set won’t be rolled back.