Utilities
This part of the module provides a collection of generic utilities which are largely for internal use.
The various utilities are typically imported like so:
from mosromgr.utils import s3
Warning
This part of the module should not be considered part of the stable API and is subject to backwards-incompatible changes.
S3
AWS S3 utilities
get_mos_files
get_file_contents
XML
XML helper functions
remove_node
replace_node
insert_node
find_child
- mosromgr.utils.xml.find_child(parent: Element, child_tag: str, id: Optional[str] = None) Tuple[Optional[Element], Optional[int]] [source]
Find an element with child_tag in parent and return
(child, index)
or(None, None)
if not found. If id is provided, it will be searched for, otherwise the first child will be returned.