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.
Classes
UnicodeOrFalse ([default_value, allow_none, ...]) |
Declare a traitlet. |
-
class
remoteappmanager.traitlets.
UnicodeOrFalse
(default_value=traitlets.Undefined, allow_none=False, read_only=None, help=None, config=None, **kwargs)[source]¶ Bases:
traitlets.traitlets.Unicode
Declare a traitlet.
If allow_none is True, None is a valid value in addition to any values that are normally valid. The default is up to the subclass. For most trait types, the default value for
allow_none
is False.Extra metadata can be associated with the traitlet using the .tag() convenience method or by using the traitlet instance’s .metadata dictionary.
-
info_text
= 'a unicode string or False'¶
-