:py:mod:`dissect.cim.utils` =========================== .. py:module:: dissect.cim.utils Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: :nosignatures: dissect.cim.utils.is_xp_mapping dissect.cim.utils.find_current_mapping dissect.cim.utils.parse_object_path Attributes ~~~~~~~~~~ .. autoapisummary:: dissect.cim.utils.ObjectPath .. py:data:: ObjectPath .. py:function:: is_xp_mapping(h) .. py:function:: find_current_mapping(mappings) .. py:function:: parse_object_path(object_path, ns=None) given a textual query string, parse it into an object path that we can query. supported schemas: cimv2 --> namespace //./root/cimv2 --> namespace //HOSTNAME/root/cimv2 --> namespace winmgmts://./root/cimv2 --> namespace Win32_Service --> class //./root/cimv2:Win32_Service --> class Win32_Service.Name='Beep' --> instance //./root/cimv2:Win32_Service.Name="Beep" --> instance we'd like to support this, but can't differentiate this from a class: //./root/cimv2/Win32_Service --> class :param object_path: the textual query string. :type object_path: str :param ns: :returns: a path we can use to query. :rtype: ObjectPath