@classmethod
def from_py_package(cls, package_name: str, config_path: str=None,
    darty_profile: str=None):
    """Creates an instance of DependencyManager by Python package name.
        It automatically finds a path to dependency file within a Python package.

        :param package_name:
        :param config_path:
        :param darty_profile:
        :return:
        """
    import pkg_resources
    if not config_path:
        config_path = cls.DEFAULT_CONFIG_FILE
    return cls(pkg_resources.resource_filename(package_name, config_path),
        darty_profile)
