helpers¶
- chango.helpers.change_uid_from_file(file)¶
Get the change note identifier from a file name or path.
- chango.helpers.ensure_uid(obj)¶
Extract the unique identifier of an object. Input of type
strandNoneis returned unchanged.- Parameters:
obj (
str|None| hasuid) – An object that either has a string attributeuid(e.g.ChangeNoteorVersion), is astror isNone.- Returns:
The extracted UID if available and
Noneelse.- Return type:
str|None