:py:mod:`GeoHealthCheck.factory` ================================ .. py:module:: GeoHealthCheck.factory Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: GeoHealthCheck.factory.Factory Attributes ~~~~~~~~~~ .. autoapisummary:: GeoHealthCheck.factory.LOGGER .. py:data:: LOGGER .. py:class:: Factory Object, Function class Factory (Pattern). Based on: http://stackoverflow.com/questions/2226330/ instantiate-a-python-class-from-a-name Also contains introspection util functions. .. py:method:: create_obj(class_string) :staticmethod: .. py:method:: create_class(class_string) :staticmethod: Returns class instance specified by a string. Args: class_string: The string representing a class. Raises: ValueError if module part of the class is not specified. .. py:method:: create_module(module_string) :staticmethod: Returns module instance specified by a string. Args: module_string: The string representing a module. Raises: ValueError if module can not be imported from string. .. py:method:: create_function(function_string) :staticmethod: .. py:method:: get_class_vars(clazz, candidates=[]) :staticmethod: Class method to get all (uppercase) class variables of a class as a dict .. py:method:: get_class_for_method(method) :staticmethod: .. py:method:: full_class_name_for_obj(o) :staticmethod: