pipeline.src.parsers.flux.utils

Attributes

NS_FLUX

Functions

get_element(→ xml.etree.ElementTree.Element)

Returns the first element of xml_element that matches the provided xml_path.

get_text(xml_element, xml_path)

make_datetime(date)

remove_none_values(→ dict)

Module Contents

pipeline.src.parsers.flux.utils.NS_FLUX[source]
pipeline.src.parsers.flux.utils.get_element(xml_element: xml.etree.ElementTree.Element, xml_path: str) xml.etree.ElementTree.Element[source]

Returns the first element of xml_element that matches the provided xml_path.

Parameters:
  • xml_element (ET.Element) – xml element in which to search

  • xml_path (str) – path describing the searched element

Returns:

first element of the input xml_element that matches xml_path

Return type:

ET.Element

pipeline.src.parsers.flux.utils.get_text(xml_element, xml_path)[source]
pipeline.src.parsers.flux.utils.make_datetime(date: str)[source]
pipeline.src.parsers.flux.utils.remove_none_values(d: dict) dict[source]