crow.utils package

Subpackages

Submodules

crow.utils.ParseXML module

crow.utils.ParseXML.ParseXML(filename)

One line passthrough to xml element tree.

Parameters:

filename (string) – the absolute or relative path to an xml file

Returns:

root of tree

Return type:

etree

crow.utils.RequestFiles module

crow.utils.crow_globals module

class crow.utils.crow_globals.crow_globals(config='config.yaml')

Bases: object

Class which initializes itself using the config.yaml file, making variables which are used by all tabs of crow accesible in the ‘global’ namespace (but without using global variables).

__init__(config='config.yaml')

Opens the configuration file and reads the contents into attritbutes.

Parameters:

config (str, optional) – Configuration file. Defaults to “config.yaml”.

crow.utils.logger module

crow.utils.logger.mylog(e)

General purpose function for writing errors to an external .txt file.

Parameters:

e (exception) – exception raised by Crow

Module contents