ncs.util Module
Last updated
Was this helpful?
Utility module, low level abstrations
get_callpoint_model()Get configured callpoint model
get_self_assign_warning()Return current self assign warning type.
get_setattr_fun(obj, parent)Return setattr fun to use for setting attributes, will use return a wrapped setattr function with sanity checks if enabled.
is_multiprocessing()Return True if the configured callpoint model is multiprocessing
Create a timezone aware datetime object in ISO8601 string format.
This method is used to convert a datetime object to its timezone aware counterpart and return a string useful for a 'yang:date-and-time' leaf. If 'dt' is None the current time will be used.
Arguments: dt -- a datetime object to be converted (optional)
Update environment with provided callpoint model
Multi OS variant of _ncs.set_kill_child_on_parent_exit falling back to kqueue if the OS supports it.
Set self assign warning type.
Use as context manager enabling set attribute check for the current thread while in the manager.
Last updated
Was this helpful?
Was this helpful?
mk_yang_date_and_time(dt=None)set_callpoint_model(model)set_kill_child_on_parent_exit()set_self_assign_warning(warning)with_setattr_check(path)
