qmi.core.util.is_valid_object_name
- qmi.core.util.is_valid_object_name(name: str) bool
Check that the specified name is an acceptable name for QMI.
This function is used to check names for QMI contexts, QMI RPC objects, QMI instruments and QMI signals.
Valid names contain at least 1 and at most 63 characters and consist of only letters, digits or the characters
- _ ( ).(Internally, QMI may use names which do not meet these criteria.)
- Parameters:
name – Name to be validated.
- Returns:
True if the named is valid, False if it is not valid.