python-lottie  0.7.0+dev66cafb9
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.parsers.sif.xml.utils Namespace Reference

Classes

class  _tag
 

Functions

def str_to_bool (strval)
 
def value_from_xml_string (xml_str, type, registry)
 
def value_to_xml_string (value, type)
 
def value_isinstance (value, type)
 
def xml_text (node)
 
def xml_make_text (minidom.Document dom, tag_name, text)
 
def xml_element_matches (minidom.Node ch, tagname=None)
 
def xml_child_elements (minidom.Node xml, tagname=None)
 
def xml_first_element_child (minidom.Node xml, tagname=None, allow_none=False)
 

Variables

 bool_str = _tag(bool)
 

Function Documentation

◆ str_to_bool()

def lottie.parsers.sif.xml.utils.str_to_bool (   strval)

Definition at line 19 of file utils.py.

◆ value_from_xml_string()

def lottie.parsers.sif.xml.utils.value_from_xml_string (   xml_str,
  type,
  registry 
)

Definition at line 23 of file utils.py.

◆ value_isinstance()

def lottie.parsers.sif.xml.utils.value_isinstance (   value,
  type 
)

Definition at line 43 of file utils.py.

◆ value_to_xml_string()

def lottie.parsers.sif.xml.utils.value_to_xml_string (   value,
  type 
)

Definition at line 33 of file utils.py.

◆ xml_child_elements()

def lottie.parsers.sif.xml.utils.xml_child_elements ( minidom.Node  xml,
  tagname = None 
)

Definition at line 73 of file utils.py.

◆ xml_element_matches()

def lottie.parsers.sif.xml.utils.xml_element_matches ( minidom.Node  ch,
  tagname = None 
)

Definition at line 63 of file utils.py.

◆ xml_first_element_child()

def lottie.parsers.sif.xml.utils.xml_first_element_child ( minidom.Node  xml,
  tagname = None,
  allow_none = False 
)

Definition at line 79 of file utils.py.

◆ xml_make_text()

def lottie.parsers.sif.xml.utils.xml_make_text ( minidom.Document  dom,
  tag_name,
  text 
)

Definition at line 57 of file utils.py.

◆ xml_text()

def lottie.parsers.sif.xml.utils.xml_text (   node)

Definition at line 49 of file utils.py.

Variable Documentation

◆ bool_str

lottie.parsers.sif.xml.utils.bool_str = _tag(bool)

Definition at line 16 of file utils.py.