Structural Bioinformatics Library
Template C++ / Python API for developping structural bioinformatics applications.
Python_dico_vs_XML_Etree Class Reference

Internal Methods

def elem_to_dict (node)
 Recursive function that converts an etree node tree into a dict. More...
 
def dict_to_elem (dic)
 Recursive function that convert a dict of dict into an element tree. More...
 

Dictionnary vs ETree

def convert_python3_dictionary_to_XML_Etree (dic)
 Function that convert< a dict of dict into an element tree. More...
 
def convert_XML_Etree_to_python3_dictionary (my_tree)
 Function that converts an etree element tree into a dict. More...
 

Detailed Description

Manipulations between python3 dictionaries and XML Etrees. Manipulations (from python3 dico to ETRee, and vice versa) between python dictionaries and XML Etrees.

Member Function Documentation

◆ convert_python3_dictionary_to_XML_Etree()

def convert_python3_dictionary_to_XML_Etree (   dic)
static

Function that convert< a dict of dict into an element tree.

◆ convert_XML_Etree_to_python3_dictionary()

def convert_XML_Etree_to_python3_dictionary (   my_tree)
static

Function that converts an etree element tree into a dict.

◆ dict_to_elem()

def dict_to_elem (   dic)
static

Recursive function that convert a dict of dict into an element tree.

Should not be called directly !

◆ elem_to_dict()

def elem_to_dict (   node)
static

Recursive function that converts an etree node tree into a dict.

Should not be called directly !