boss.helper
===========

.. py:module:: boss.helper


Attributes
----------

.. autoapisummary::

   boss.helper.log


Functions
---------

.. autoapisummary::

   boss.helper.get_module
   boss.helper.get_class_by_name
   boss.helper.file_from_url
   boss.helper.extend_none_allowed_list


Module Contents
---------------

.. py:data:: log

.. py:function:: get_module(path, relative_path=None)

.. py:function:: get_class_by_name(name, relative_path=None)

   Resolve class by name

   :param name: (str) "%s.%s" % (module.name, class.name)
   :return: (class)


.. py:function:: file_from_url(url: str) -> io.IOBase

   Load content from a file specified by a URL.

   This can be every type of URL supported by pythons urllib
   (e.g. http://, file://, etc ). Giving the basic auth credentials in the URL in the form
   http://user:password@hostname:port/path is supported.

   :returns: file handle on the file


.. py:function:: extend_none_allowed_list(list1: list | None, list2: list | None) -> list | None

   Extend a list with another list which both can be None.

   If one of the lists is None, the other list is returned. If both lists are None, None is returned.

   :param list1: list to extend
   :param list2: list to extend with


